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 条
  • [1] Designing an XML-based representation for CaesarJ source code
    Salinas-Mendoza, Alberto
    Juarez-Martinez, Ulises
    Alor-Hernandez, Giner
    Olivares-Zepahua, Beatriz A.
    2011 IEEE ELECTRONICS, ROBOTICS AND AUTOMOTIVE MECHANICS CONFERENCE (CERMA 2011), 2011, : 427 - 432
  • [2] XML-based representation
    Kelsey, RL
    IC-AI'2001: PROCEEDINGS OF THE INTERNATIONAL CONFERENCE ON ARTIFICIAL INTELLIGENCE, VOLS I-III, 2001, : 1254 - 1258
  • [3] XML-based data preparation for robust deep parsing
    Grover, C
    Lascarides, A
    39TH ANNUAL MEETING OF THE ASSOCIATION FOR COMPUTATIONAL LINGUISTICS, PROCEEDINGS OF THE CONFERENCE, 2001, : 252 - 259
  • [4] XML-based knowledge representation method
    Jin, Bo
    Wang, Xingyu
    Huadong Ligong Daxue Xuebao /Journal of East China University of Science and Technology, 2000, 26 (01): : 74 - 76
  • [5] XML-based representation of haptic information
    Zhou, JL
    Shen, XJ
    Shakra, I
    El Saddik, A
    Georganas, ND
    2005 IEEE INTERNATIONAL WORKSHOP ON HAPTIC AUDIO VISUAL ENVIRONMENTS AND THEIR APPLICATIONS, 2005, : 116 - 120
  • [6] Towards an XML-based representation of collabortation action
    Martínez, A
    de la Fuente, P
    Dimitriadis, Y
    DESIGNING FOR CHANGE IN NETWORKED LEARNING ENVIRONMENTS, 2003, 2 : 379 - 383
  • [7] Representation and generation of XML-based electronic mail
    Qian, Longhua
    Qian, Peide
    Jisuanji Gongcheng/Computer Engineering, 2006, 32 (08): : 76 - 78
  • [8] Xevdriver: A software system supporting XML-based source-to-source code transformations on Fortran programs
    Suda, Reiji
    Takizawa, Hiroyuki
    2016 FOURTH INTERNATIONAL SYMPOSIUM ON COMPUTING AND NETWORKING (CANDAR), 2016, : 522 - 528
  • [9] BAT(2)XML: XML-based Java']Java Bytecode Representation
    Eichberg, Michael
    ELECTRONIC NOTES IN THEORETICAL COMPUTER SCIENCE, 2005, 141 (01) : 93 - 107
  • [10] An XML-based representation for generic bill of materials(GBOM)
    Qiu, Fusheng
    Liu, Wenjian
    SNPD 2007: EIGHTH ACIS INTERNATIONAL CONFERENCE ON SOFTWARE ENGINEERING, ARTIFICIAL INTELLIGENCE, NETWORKING, AND PARALLEL/DISTRIBUTED COMPUTING, VOL 2, PROCEEDINGS, 2007, : 832 - +