2003 · 23 citations · 7 references
ComputingComputer ScienceCompilersComputational LinguisticsNatural Language ProcessingGrammarParsingSyntactic AnalysisSyntactic ParsingSyntax AnalysisSyntax ParsingAmbiguous GrammarsBreadth-first SearchDepth-first SearchLanguage ParsingParser CombinatorsParser DesignParsing Algorithms
We present the derivation of a space efficient parser combinator library: the constructed parsers do not keep unnecessary references to the input, produce online results and efficiently handle ambiguous grammars. The underlying techniques can be applied in many contexts where traditionally backtracking is used.We present two data types, one for keeping track of the progress of the search process, and one for representing the final result in a linear way. Once these data types are combined into a single type, we can perform a breadth-first search, while returning parts of the result as early as possible.
7
Graham Hutton, Erik Meijer · Journal of Functional Programming · 1998 · 181 citations · Full text
Scannerless Generalized-LR Parsing
Eelco Visser · 1997 · 137 citations
How to replace failure by a list of successes
Philip Wadler · 1985 · 110 citations
Graham Hutton, Erik Meijer · Nottingham ePrints (University of Nottingham) · 1996 · 100 citations · Full text