Electronic Notes in Theoretical Computer Science · 2006 · 13 citations · 11 references
ComputingComputer ScienceAlgebraCompilersProgramming LanguagesCompiler ConstructionData TypesFunctional ProgrammingParsingSyntax ParsingType SystemsAbstract Data TypesAlgebraic Data TypesComputational ExpressivenessExpressivenessLr ParsingParser DesignParser GeneratorsParsing Algorithms
The LR parser generators that are bundled with many functional programming language implementations produce code that is untyped, needlessly inefficient, or both. We show that, using generalized algebraic data types, it is possible to produce parsers that are well-typed (so they cannot unexpectedly crash or fail) and nevertheless efficient. This is a pleasing result as well as an illustration of the new expressiveness offered by generalized algebraic data types.
11
Yacc : Yet Another Compiler Compiler
S. C. Johnson, Murray Hill · 1978 · 1.2K citations
Guarded recursive datatype constructors
Hongwei Xi, Chiyan Chen, Gang Chen · 2003 · 329 citations
Tim Sheard · 2004 · 106 citations