Re: Formal grammar & syntax of formal languages



SM Ryan wrote:
A formal grammar is a formal language to describe a formal language. ...

A "grammar" (formal) is one, of many (formal and informal), precise
(formal) description of a language (syntax not semantic).

A "syntax of a formal language" defines exactly what symbols (language
symbols) sequences are correct expressions (words or sentences) of the
language, and associates a concrete syntax tree, containing all the
language terminals, to them. So, a "grammar" is one (of many) way of
description "syntax of a formal language". Thats mens, in many
situations both meanings can are equivalent bat not always.

Theodosios CHIMONIDIS.
.



Relevant Pages

  • Re: Misplaced parenthesis
    ... The entire purpose of the parser component of a compiler is syntax ... Now the language, accepted by the compiler, is a subset of the ... grammar that describes an superset of the OPL language. ...
    (comp.lang.pascal.delphi.misc)
  • Re: Killing VB softly with his song, Killing VB softly...with a song.............
    ... much less a preference for a compiled language. ... The topic is about syntax and grammar and only ... If you want to limit the discussion to the fact the Java, JavaScript, C#, J# ...
    (microsoft.public.dotnet.languages.vb)
  • Re: What is this code doing?
    ... Using the same syntax for most statements helps make the ... add, ebx); ... Instruction composition readability is another reason ... Jim Neil's Terse language). ...
    (alt.lang.asm)
  • Re: Formal grammar & syntax of formal languages
    ... The situation is something like to an algorithm definition. ... The syntax of the language is ... implemets some algorithm, not generative grammar, but recognizing one. ...
    (comp.compilers)
  • Re: New bytecode assembly language to play with
    ... language that looks familiar, something I could probably figure out quite ... about a bit of superficial syntax here. ... The wheel has been reinvented several times. ... one that introduces new functionality, i.e. it's not just another way ...
    (comp.lang.misc)