Towards Efficient, Typed LR Parsers

François Pottier, Yann Régis-Gianas · Electronic Notes in Theoretical Computer Science · 2006

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.

Read the paper · More papers on PaperTik