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. _______________________________________________ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal