Shift-Resolve parsing: simple, unbounded lookahead, linear time

  • Authors:
  • José Fortes Gálvez;Sylvain Schmitz;Jacques Farré

  • Affiliations:
  • Universidad de Las Palmas de Gran Canaria, Spain;Laboratoire I3S, Université de Nice, Sophia Antipolis, France;Laboratoire I3S, Université de Nice, Sophia Antipolis, France

  • Venue:
  • CIAA'06 Proceedings of the 11th international conference on Implementation and Application of Automata
  • Year:
  • 2006

Quantified Score

Hi-index 0.00

Visualization

Abstract

This paper introduces a mechanism for combining unbounded lookahead exploration with linear time complexity in a deterministic parser. The idea is to use a resolve parsing action in place of the classical reduce. The construction of shift-resolve parsers is presented as a two-step algorithm, from the grammar to a finite nondeterministic automaton, and from this automaton to the deterministic parser. Grammar classes comparisons are provided.