[antlr-interest] EBNF - XML representations
Hiran Chaudhuri
Hiran.Chaudhuri at web.de
Mon Apr 25 04:13:49 PDT 2011
A grammar for parsing grammars is what ANTLR has builtin. How else would you define a grammar and make ANTLR generate the code?
Once such a grammar is parsed an AST should be available.
And since an AST is a tree structure, a simple TreeWalker could serialize it to XML.
I do not see the big difficulty here. But as I have not followed the full discussion I may have missed a bit...
Hiran
-----Ursprüngliche Nachricht-----
Von: "Ben Senior" <ben at autonomic.net>
Gesendet: 24.04.2011 13:57:14
An: antlr-interest at antlr.org
Betreff: Re: [antlr-interest] EBNF - XML representations
[...]
>I'm not sure it is difficult at all to build a grammar for parsing
>grammars, I am just less convinced as time goes by whether that's a
>really useful thing to do.
[...]
___________________________________________________________
Schon gehört? WEB.DE hat einen genialen Phishing-Filter in die
Toolbar eingebaut! http://produkte.web.de/go/toolbar
More information about the antlr-interest
mailing list