[fpc-pascal] BNF grammar for fpc

Marco van de Voort marcov at stack.nl
Fri Oct 16 14:13:32 CEST 2009


In our previous episode, Florian Klaempfl said:
> >> these compilers due to the c-style extensions.
> > 
> > Odd that there are grammers for C and C++ then, and they have no problem :-)
> > Please don't grab any random other thread to make your point.
> > 
> > The reason is probably more because Wirthian languages traditionally use
> > recursive descent parsers.
> 
> gcc as well for several years simply because a recursive descent parser
> is faster than one generated automatically from a BNF grammar.

Afaik most C/C++ production compilers are nowadays, gcc was about the last.
It doesn't preclude BNF grammars from existing though, which was the point.

On Pascal, not even the startup compilers are parser generator (grammar)
based.



More information about the fpc-pascal mailing list