A tale of three LR(1) syntax analyzers

  • Authors:
  • Evtim Papushev;Stoyan Bonev

  • Affiliations:
  • The American University in Bulgaria;The American University in Bulgaria

  • Venue:
  • CompSysTech '07 Proceedings of the 2007 international conference on Computer systems and technologies
  • Year:
  • 2007

Quantified Score

Hi-index 0.00

Visualization

Abstract

The chronicle and evolution of authors' experience in building LR(1) syntax analyzers is described in the paper. The theory background includes classic and modified interpretation of LR(1) parsing algorithms, Three versions of implemented parsers are to be discussed: parser with fixed control table, flexible table driven LR(1) parser and parser with built-in control table generator. The first version is classified as the most primitive. The second version is more flexible but it requires configuration file and manual construction of the control table. The third version is categorized the most flexible, powerful and user friendly parser implementation. It is much easier job to specify the grammar rules in a suitable format than to construct manually the control table and specify it within the source text of the parser or as contents of a configuration file.