Title
Experience of XML-Based Source Code Representation with Parsing Actions
Abstract
This paper describes PALEX, a new source code representation in XML which contains parsing actions and lexical formatting information. Once a compiler finishes analyzing source code, it can record a list of parsing actions (shift, reduce and reading a token) during a compiling process. PALEX contains the recorded parsing actions and also lexical formatting information, white spaces and comments. It has two features as a source code representation in XML. The first is that it is independent of programming languages. The second is that the original source code can be restored from the PALEX code. For a prototype implementation, the Java compiler GCJ was modified. Syntax rules and lexical definitions are prepared for development of software tools which read the PALEX code and play back the parsing actions. An experiment was designed and the result shows that the size of the generated PALEX code is very large. However, the XML-based source code representation together with parsing actions offsets the cost of the large storage space.
Year
Venue
Keywords
2007
SoMeT
parsing actions offset,new source code representation,parsing action,parsing actions,code representation,source code representation,xml-based source,recorded parsing action,original source code,xml-based source code representation,palex code,source code,lexical formatting information,syntax analysis,xml,java,parser generator
Field
DocType
Volume
Unreachable code,S-attributed grammar,Programming language,Source code,Computer science,Theoretical computer science,Bottom-up parsing,Redundant code,Code generation,Parsing,Dead code
Conference
161
ISSN
Citations 
PageRank 
0922-6389
1
0.34
References 
Authors
4
1
Name
Order
Citations
PageRank
Kazuaki Maeda113834.69