XML Externalization Built into Compiler Front-Ends Using a Parser Generator
Kazuaki Mæda · 2007
tion built into compiler front-ends and its applica-tion to quick reverse engineering tool development. A parser generator MoJay was developed to build XML externalization functionality into compiler front-ends. After replacing the original parser generator with MoJay, generating a parser using it, and modifying a few lines of source code in the compiler, we were able to obtain a special compiler that externalizes three types of information in the form of XML docu-ments, namely, lexical information, syntactic informa-tion, and parse tree. The syntactic information was applied to develop a reverse engineering tool for C#. The tool shows a performance penalty from the view-point of the generated XML document size. However, even with a storage penalty, the quick development is a far superior option. Index Terms — parser generator, reverse engineer-ing tool, XML, C# 1