Pascal/Delphi parsers and grammars
Posted by jpluimers on 2013/04/09
A few interesting links for my archive:
- fcl-passrc – Free Pascal wiki.
(some classes for parsing Free Pascal, which is a lot like Delphi) - Syntax sample.
(Delphi 2009 grammar) - Looking for a Complete Delphi (object pascal) syntax – Stack Overflow.
- Identification of a Delphi 2009 level grammar to convert to GoldParser – Stack Overflow.
–jeroen






Felix COLIBRI (@FelixCOLIBRI) said
Hi Jeroen
– back in 2004 we published a Delphi 5 EBNF grammar.
http://www.felix-colibri.com/papers/compilers/delphi_5_grammar/delphi_5_grammar.html
This grammar was used to generate a Delphi 5 parser (the parser generator and
the parser itself were not published though)
– for parsing, you should add Martin WALDENBURG’s parser
http://www.torry.net/vcl/vcltools/sorters/mwdelpar.zip
which was used by tons of tools, like the ESSMODEL UML reverse engineering tool
http://essmodel.sourceforge.net
and IRC was once included in some Delphi releases
– since Delphi Web Scrip obviously interprets Delphi-like code, it could also be used
as a parser example
http://code.google.com/p/dwscript/
HTH – Felix
jpluimers said
Thanks!
ObjectMethodology.com said
More good links. I still haven’t heard back from you about your contracting rates.