Towards Efficient, Typed LR Parsers

François Pottier, Yann Régis-Gianas

Electronic Notes in Theoretical Computer Science · 2006 · 13 citations · 11 references

DOIFull text

Open access

Concepts

Abstract

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.

References

11