Building XML-Driven Application Generators with Compiler Construction Tools

Antonio Sarasa-Cabezuelo1, Bryan Temprado-Battad1, Daniel Rodríguez Cerezo1 and José-Luis Sierra1

  1. Computer Science School, Complutense University of Madrid
    Calle Profesor José García Santesmases, s/n, 28040 Madrid, Spain
    {asarasa, bryan, drcerezo, jlsierra}


This paper describes how to use conventional compiler construction tools, and parser generators in particular, to build XML-driven application generators. In our approach, the document interface is provided by a standard stream-oriented XML processing framework (e.g., SAX or StAX). This framework is used to program a generic, customizable XML scanner that transforms documents into streams of suitable tokens (opening and closing tags, character data, etc.). The next step is to characterize the syntactic structure of these streams in terms of generation-specific context-free grammars. By adding suitable semantic attributes and semantic actions to these grammars, developers obtain generation-oriented translation schemes: high-level specifications of the generation tasks. These specifications are then turned into working application generators by using standard parser generation technology. We illustrate the approach with , an XML-driven generator of shortest-route search applications in subway networks.

Key words

Application Generators, Compiler Construction Tools, XML Processing, Software Development Approach

Digital Object Identifier (DOI)

Publication information

Volume 9, Issue 2 (June 2012)
Year of Publication: 2012
ISSN: 1820-0214 (Print) 2406-1018 (Online)
Publisher: ComSIS Consortium

Full text

DownloadAvailable in PDF
Portable Document Format

How to cite

Sarasa-Cabezuelo, A., Temprado-Battad, B., Cerezo, D. R., Sierra, J.: Building XML-Driven Application Generators with Compiler Construction Tools. Computer Science and Information Systems, Vol. 9, No. 2, 485-504. (2012)