English

Structured Grammars are Effective

Formal Languages and Automata Theory 2012-05-10 v1

Abstract

Top-down parsing has received much attention recently. Parsing expression grammars (PEG) allows construction of linear time parsers using packrat algorithm. These techniques however suffer from problem of prefix hiding. We use alternative formalism of relativized regular expressions REGREG for which top-down backtracking parser runs in linear time. This formalism allows to construct fast parsers with modest memory requirements for practical grammars. We show that our formalism is equivalent to PEG.

Keywords

Cite

@article{arxiv.1205.1877,
  title  = {Structured Grammars are Effective},
  author = {Ondřej Bílka},
  journal= {arXiv preprint arXiv:1205.1877},
  year   = {2012}
}
R2 v1 2026-06-21T21:00:35.884Z