Search code examples
javascriptxmlparsingbnfebnf

(E)BNF Parsing to XML


Is there any (E)BNF parser out there which is able to generate XML trees of the AST?

Rephrasing: what is the quickest way to compile an (E)BNF defined language into some sort of XML?

Bonus: Using Javascript :-)


Solution

  • It seems my best bet so far is to use AntLR and the StringTemplate Interface. It also supports a JavaScript target.