Quick parser development using modified compilers and generated syntax rules

  • Authors:
  • Kazuaki Maeda

  • Affiliations:
  • Department of Business Administration and Information Science, Chubu University, Kasugai, Aichi, Japan

  • Venue:
  • CIS'09 Proceedings of the international conference on Computational and information science 2009
  • Year:
  • 2009

Quantified Score

Hi-index 0.00

Visualization

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.