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 条
  • [21] An XML-based framework for language neutral program representation and generic analysis
    Al-Ekram, R
    Kontogiannis, K
    PROCEEDINGS OF THE 28TH ANNUAL INTERNATIONAL COMPUTER SOFTWARE AND APPLICATION CONFERENCE, WORKSHOP AND FAST ABSTRACTS, 2004, : 10 - 11
  • [22] Contribution to an XML-based Representation of Information Related to Artificial Neural Networks
    Bartz, Rainer
    IECON 2008: 34TH ANNUAL CONFERENCE OF THE IEEE INDUSTRIAL ELECTRONICS SOCIETY, VOLS 1-5, PROCEEDINGS, 2008, : 1799 - 1804
  • [23] XML-based applications using XML Schema
    Kempa, M
    Linnemann, V
    XML-BASED DATA MANAGEMENT AND MULTIMEDIA ENGINEERING-EDBT 2002 WORKSHOPS, 2002, 2490 : 67 - 90
  • [24] BRILLANT: An open source and XML-based platform for rigourous software development
    Colin, S
    Petit, D
    Rocheteau, M
    Marcano, R
    Mariano, G
    Poirriez, V
    SEFM 2005: THIRD IEEE INTERNATIONAL CONFERENCE ON SOFTWARE ENGINEERING AND FORMAL METHODS, PROCEEDINGS, 2005, : 373 - 382
  • [25] Xevolver: An XML-based Code Translation Framework for Supporting HPC Application Migration
    Takizawa, Hiroyuki
    Hirasawa, Shoichi
    Hayashi, Yasuharu
    Egawa, Ryusuke
    Kobayashi, Hiroaki
    2014 21ST INTERNATIONAL CONFERENCE ON HIGH PERFORMANCE COMPUTING (HIPC), 2014,
  • [26] A CASE tool platform using an XML representation of java source code
    Department of Computer Science, Ritsumeikan University, 1-1-1 Noji-higashi, Kusatsu Shiga 525-8577, Japan
    不详
    不详
    Proc. Fourth IEEE Int. Workshop Source Code Anal. Manipulation, (158-167):
  • [27] XML-based data cube
    Wang, XL
    Dong, YS
    2001 INTERNATIONAL CONFERENCES ON INFO-TECH AND INFO-NET PROCEEDINGS, CONFERENCE A-G: INFO-TECH & INFO-NET: A KEY TO BETTER LIFE, 2001, : E48 - E53
  • [28] New XML-based Files
    Garfinkel, Simson L.
    Migletz, James J.
    IEEE SECURITY & PRIVACY, 2009, 7 (02) : 38 - 44
  • [29] XML-based resources for simulation
    Kelsey, RL
    Riese, JM
    Young, GA
    ENABLING TECHNOLOGIES FOR SIMULATION SCIENCE VIII, 2004, 5423 : 215 - 222
  • [30] XML-based feature modelling
    Cechticky, V
    Pasetti, A
    Rohlik, O
    Schaufelberger, W
    SOFTWARE REUSE: METHODS, TECHNIQUES, AND TOOLS: PROCEEDINGS, 2004, 3107 : 101 - 114