[fpc-pascal] BNF grammar for fpc

Marc Santhoff M.Santhoff at web.de
Fri Oct 16 23:10:16 CEST 2009


Am Freitag, den 16.10.2009, 22:50 +0200 schrieb Graeme Geldenhuys:
> 2009/10/15 Marc Santhoff <M.Santhoff at web.de>:
> >
> > is a complete grammar for fpc written in some variant of BNF available
> > somewhere?
> 
> About 2 weeks ago, I had no clue what BNF was. Funny that you mention
> it, because I am working on a LaTeX converter to IPF. I was google'ing
> for a BNF for LaTeX, as a starting point.
> 
> Anyway, I found the following like to a BNF Compiler that supports 5+ languages.
>   http://code.haskell.org/bnfc/
> 
> Maybe this can be extended to Object Pascal - time permitting obviously.

There are too many compiler generation tools to know them all.

we all know:
- lex and yacc
- flex and bison
and the pascal generating mutant

more recent:
- antlr (former pccts)
- eli and DEViL
- JavaCC
- Jaccie and SIC

older things like twig, burg and the like
- Coco/R was named already
- Gold Parsing System was totally new to me

and so on.

If you have fun fiddling with those tools some good starting points are:

http://catalog.compilertools.net/
http://www.compilers.net/
http://www.thefreecountry.com/
http://cui.unige.ch/db-research/Enseignement/analyseinfo/BNFweb.html

Have a nice weekend,
Marc
-- 
Marc Santhoff <M.Santhoff at web.de>




More information about the fpc-pascal mailing list