Electronic Notes in Theoretical Computer Science · 2010 · 90 citations · 9 references
ComputingComputer ScienceAlgorithmsComputational LinguisticsNatural Language ProcessingGrammarParsingSyntactic AnalysisSyntactic ParsingSyntax AnalysisSyntax ParsingGlr ParsingLanguage ParsingLeft RecursionLr ParsingParsing AlgorithmsRecursionRecursive Descent Parsing
Recursive Descent (RD) parsers are popular because their control flow follows the structure of the grammar and hence they are easy to write and to debug. However, the class of grammars which admit RD parsers is very limited. Backtracking techniques may be used to extend this class, but can have explosive runtimes and cannot deal with grammars with left recursion. Tomita-style RNGLR parsers are fully general but are based on LR techniques and do not have the direct relationship with the grammar that an RD parser has. We develop the fully general GLL parsing technique which is recursive descent-like, and has the property that the parse follows closely the structure of the grammar rules, but uses RNGLR-like machinery to handle non-determinism. The resulting recognisers run in worst-case cubic time and can be built even for left recursive grammars.
9
An efficient context-free parsing algorithm
Jay Earley · Communications of the ACM · 1970 · 817 citations · Full text
Compiling language definitions
Mark van den Brand, Jan Heering, Paul Klint et al. · ACM Transactions on Programming Languages and Systems · 2002 · 200 citations · Full text
Elizabeth Scott, Adrian Johnstone · ACM Transactions on Programming Languages and Systems · 2006 · 51 citations · Full text