2007 · 33 citations · 7 references
Language StudiesComputer ScienceComputational LinguisticsProgramming LanguagesSyntaxGrammarParsingSyntactic AnalysisSyntactic ParsingSyntax AnalysisSyntax ParsingExpression ParsingLanguage ParsingLanguage SyntaxPackrat ParsingParsing AlgorithmsParsing Expression GrammarsParsing TheoryRecursive Descent Parsing
Two recent developments in the field of formal languages are Parsing Expression Grammar (PEG) and packrat parsing. The PEG formalism is similar to BNF, but defines syntax in terms of recognizing strings, rather than constructing them. It is, in fact, precise specification of a backtracking recursivedescent parser. Packrat parsing is a general method to handle backtracking in recursive-descent parsers. It ensures linear working time, at a huge memory cost. This paper reports an experiment that consisted of defining the syntax of Java 1.5 in PEG formalism, and literally transcribing the PEG definitions into parsing procedures (accidentally, also in Java). The resulting primitive parser shows an acceptable behavior, indicating that packrat parsing might be an overkill for practical languages. The exercise with defining the Java syntax suggests that more work is needed on PEG as a language specification tool. 1
7
Bryan Ford · 2004 · 409 citations
Computing, Computer Science, Natural Language Processing +16
Parsing algorithms with backtrack
Alexander Birman, Jeffrey D. Ullman · Information and Control · 1973 · 46 citations
A compiler-building system developed by Brooker and Morris
Saul Rosen · Communications of the ACM · 1964 · 20 citations · Full text
Alexander Birman · 1970 · 18 citations