How to convert javascript to ast xml?

I am creating an XML JavaScript serializer Abstract syntax trees with ANTLR. The generator is quite complete, but I would like to know if there are any agreements on some problems, such as:

  • like angle brackets in strings or regular expressions?
  • how to translate if-then-else (for example, will there be an else node inside an if or not)?

More generally: is there such a translator? Is there an existing XSD for this XML based language?

EDIT

I am currently interested in free tools.

+4
source share

All Articles