Quick parser development using modified compilers and generated syntax rules

Kazuaki Mæda · 2009

Abstract: This paper describes some ideas about quick parser development from source code of popular free and libre open source (called FLOSS) compilers using modified parser generator. Parser development is time-consuming and laborious according to traditional approaches. In this paper’s approach, a specialized scanner is built using FLOSS compilers. The scanner reads source code, analyzes it, and writes a sequence of tokens in XML. The parser generator is modified so that it generates a specialized parser and syntax rules with code to read the tokens in XML for quick parser development. In the author’s experiences, it takes within one hour to implement a simple recognizer which reads C # source code, writes a sequence of tokens in XML and analyzes it.

Read the paper · More papers on PaperTik