On 4/01/2013 7:10 AM, Andrzej Borucki wrote:
2013/1/3 Jonas Maebe <[email protected] <mailto:[email protected]>>

    The parser is a manually written recursive-descent parser. There
    is no formal grammar.


Thanks. It is possible restore EBNF grammar from this sources? It is difficult, is anywhere definitions?
I found:
http://www.geocities.ws/robertzierer/Grammar.html
http://bernhard.userweb.mwn.de/Pascal-EBNF.html
http://www.felix-colibri.com/papers/compilers/pascal_grammar/pascal_grammar.html

I have also found the following:
http://dgrok.excastle.com/Grammar.html
http://goldparser.org/grammars/index.htm

But nothing that does generics.
There is also: https://github.com/jacobthurman/Castalia-Delphi-Parser but I don't know how compatible it is with FreePascal and from I last heard, doesn't handle generics..

Cheers,
Nick

_______________________________________________
fpc-devel maillist  -  [email protected]
http://lists.freepascal.org/mailman/listinfo/fpc-devel

Reply via email to