Experience of XML-Based Source Code Representation with Parsing Actions

被引:0
|
作者
Maeda, Kazuaki [1 ]
机构
[1] Chubu Univ, Dept Business Adm & Informat Sci, Aichi 4878501, Japan
来源
NEW TRENDS IN SOFTWARE METHODOLOGIES, TOOLS AND TECHNIQUES | 2007年 / 161卷
关键词
XML; source code representation; !text type='Java']Java[!/text; syntax analysis; parser generator;
D O I
暂无
中图分类号
TP18 [人工智能理论];
学科分类号
081104 ; 0812 ; 0835 ; 1405 ;
摘要
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 feature, 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.
引用
收藏
页码:330 / 339
页数:10
相关论文
共 50 条
  • [11] Generalized selective XML markup of source code using agile parsing
    Cordy, JR
    IWPC 2003: 11TH IEEE INTERNATIONAL WORKSHOP ON PROGRAM COMPREHENSION, 2003, : 144 - 153
  • [12] An extensible tool for source code representation using XML
    McArthur, G
    Mylopoulos, J
    Ng, SKK
    NINTH WORKING CONFERENCE ON REVERSE ENGINEERING, PROCEEDINGS, 2002, : 199 - 208
  • [13] XML-based process representation for e-government serviceflows
    Klischewski, R
    Wetzel, I
    TOWARDS THE E-SOCIETY: E-COMMERCE, E-BUSINESS, AND E-GOVERNMENT, 2001, 74 : 789 - 802
  • [14] XML-based intrusion detection unified representation and secure transportation
    Qian, Quan
    Zhang, Chun-Yang
    Zhang, Shu-Guang
    Cai, Qing-Sheng
    Xiaoxing Weixing Jisuanji Xitong/Mini-Micro Systems, 2003, 24 (09):
  • [15] XML-based programming
    Pelegri-Llopart, E
    DR DOBBS JOURNAL, 2003, 28 (06): : 10 - 10
  • [16] A tool platform using an XML representation of source code information
    Maruyama, Katsuhisa
    Yamamoto, Shinichiro
    IEICE TRANSACTIONS ON INFORMATION AND SYSTEMS, 2006, E89D (07): : 2214 - 2222
  • [17] XML-based MPEG-4 video representation and error resilience
    Sun, XM
    Shi, Z
    Kuo, CCJ
    2002 IEEE INTERNATIONAL SYMPOSIUM ON CIRCUITS AND SYSTEMS, VOL II, PROCEEDINGS, 2002, : 676 - 679
  • [18] XML-based representation and application of collaborative design knowledge for mold and die
    State Key Laboratory of Material Processing and Die and Mould Technology, Huazhong University of Science and Technology, Wuhan 430074, China
    Zhongguo Jixie Gongcheng, 2007, 14 (1694-1696):
  • [19] XML-based representation methods for graphic-structured data and their comparison
    Chen, Enhong
    Xu, Dou
    Qian, Hai
    2002, Shanghai Computer Society (28):
  • [20] An XML-based framework for language neutral program representation and generic analysis
    Al-Ekram, R
    Kontogiannis, K
    Ninth European Conference on Software Maintenance and Reengineering, Proceedings, 2005, : 42 - 51