Parsing computer languages with an automaton compiled from a single regular expression

  • Authors:
  • Adrian D. Thurston

  • Affiliations:
  • Software Technology Laboratory, Queen’s University, Kingston, Canada

  • 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

When a programmer is faced with the task of producing a parser for a context-free language there are many tools to choose from. We find that programmers avoid such tools when making parsers for simpler, domain-specific computer languages, such as file formats, communication protocols and end-user inputs. Since these languages often meet the criteria for regular languages, the extra run-time effort required for supporting the recursive nature of context-free languages is wasted.