[fpc-pascal] machine readable grammar of object pascal?
Marco van de Voort
marcov at stack.nl
Wed May 3 09:26:50 CEST 2017
In our previous episode, Marc Santhoff said:
> for playing around I would need a grammar of Object Pascal. I do not
> care for which tool it is written or at best if it is plain EBNF.
>
> 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.
More information about the fpc-pascal
mailing list