[fpc-pascal] machine readable grammar of object pascal?
Marco van de Voort
marcov at stack.nl
Wed May 3 14:30:14 CEST 2017
In our previous episode, Marco van de Voort said:
> > Does such grammar exist?
>
> Not within FPC/Lazarus project, since those use handcrafted recursive
> descent parsers. So that means websearch, and then your search is as good as
> mine.
>
> The manual of older Delphi versions had a grammar for documentation (not
> use!) purposes, and many only Object Pascal grammars will be based on that,
> so check licensing of what you find thoroughly if you need it for a
> commercial setting.
When I searched I saw a new entry, reportedly for XE7:
https://github.com/fabriciocolombo/sonar-delphi/blob/master/src/main/antlr3/org/sonar/plugins/delphi/antlr/Delphi.g
More information about the fpc-pascal
mailing list