2008 · 56 citations · 11 references
ComputingComputer ScienceNatural Language ProcessingProgramming LanguagesSyntaxGrammarParsingSyntactic AnalysisSyntactic ParsingSyntax AnalysisSyntax ParsingLeft RecursionMemoizationPackrat ParsingParser DesignParsing AlgorithmsRecursionTree Grammars
Packrat parsing offers several advantages over other parsing techniques, such as the guarantee of linear parse times while supporting backtracking and unlimited look-ahead. Unfortunately, the limited support for left recursion in packrat parser implementations makes them difficult to use for a large class of grammars (Java's, for example). This paper presents a modification to the memoization mechanism used by packrat parser implementations that makes it possible for them to support (even indirectly or mutually) left-recursive rules. While it is possible for a packrat parser with our modification to yield super-linear parse times for some left-recursive grammars, our experimentsshow that this is not the case for typical uses of left recursion.
11
Bryan Ford · 2004 · 409 citations
Computing, Computer Science, Natural Language Processing +16
Scannerless Generalized-LR Parsing
Eelco Visser · 1997 · 137 citations
Better extensibility through modular syntax
Robert Grimm · ACM SIGPLAN Notices · 2006 · 128 citations
Computing, Computer Science, Natural Language Processing +16