YAXX: YAcc eXtension to XML, version 0.12 released
The YAXX tool is an XML extension to YACC (Bison), a well-known
compiler-compiler. Given a program and its YACC grammar, YAXX outputs the
internal parse tree of the program as an XML document. The generated XML
conforms to the DTD that is also generated from the YACC grammar and it can be
transformed back to a valid program through a very simple XSLT.
The YAXX project is hosted at Google Code. Example grammars include ANSIC,
GCC 3.4.0,
Java 1.1,
Fortran 77,
SQL,
Embedded SQL,
XML,
Ada 95,
C#,
PHP,
Javascript,
Telos,
NFR,
BibTeX,
etc. We are also working on the BISON grammar.
Applications
The tool has been applied
Related work
- G. McArthur, J.
Mylopoulos, S.K.K. Ng.
An Extensible Tool for source Code Representation Using XML, Ninth Working
Conference on Reverse Engineering (WCRE'02) October 29 - November 01, 2002
Richmond, Virginia.
- B. A. Malloy and J. F. Power. Program
Annotation in XML: a Parser-Based Approach, Proceedings of WCRE 2002,
Working Conference on Reverse Engineering, Richmond, Virginia, USA, pages
190--198, October 28 - November 1, 2002.
-
JavaML:
A Markup Language for Java Source Code
-
Jezix
-
Mamas' and Kontogiannis'
JavaML
Resources