A flexible table driven LR(1) parser

  • Authors:
  • Stoyan Bonev

  • Affiliations:
  • The American University in Bulgaria

  • Venue:
  • CompSysTech '04 Proceedings of the 5th international conference on Computer systems and technologies
  • Year:
  • 2004

Quantified Score

Hi-index 0.00

Visualization

Abstract

The implementation of a flexible table driven LR(1) parser is presented in this paper. The LR(1) parsing algorithm is based on modified bottom up strategy described in [1] and it stays the same for all grammars. A parser with control tables that are initialized within the source text has no flexibility because each new LR(1) parser implementation needs to recompile the source text in order to adjust its data control structures like terminal symbols, non terminal symbols, grammar rules and control table. To avoid this drawback a configuration text edited file is to be created and read as input to adapt the parser before the syntax analysis process starts execution.