Article ID Journal Published Year Pages File Type
423942 Electronic Notes in Theoretical Computer Science 2006 26 Pages PDF
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.

Related Topics
Physical Sciences and Engineering Computer Science Computational Theory and Mathematics