How to convert JavaScript code to a xml representation of the ast? -


i building xml serializer of javascript abstract syntax trees antlr. generator quite complete know if there conventions issues such as:

  • how handle angle brackets in strings or regular expressions?
  • how translate if-then-else (e.g. else node inside if 1 or not)?

more generally: such translator exist? there existing xsd xml-based language?

edit

i interested in free tools only.

parsers perform code generation xml , generate xml code readily available:

you ask, "does such translator exist?". if question is, "does exist in antlr?" suspect you'll find answer @ antlr.org site. company has such translator issues resolved; if you'd see output sample answer here i'll produce 1 javascript.

here's link xml output java: what ast (abstract syntax tree) object-oriented programming language like?

references


Comments

Popular posts from this blog

linux - Using a Cron Job to check if my mod_wsgi / apache server is running and restart -

actionscript 3 - TweenLite does not work with object -

jQuery Ajax Render Fragments OR Whole Page -