antlr-haskell: A Haskell implementation of the ANTLR top-down parser generator

This is a package candidate release! Here you can preview how this package release will appear once published to the main package index (which can be accomplished via the 'maintain' link below). Please note that once a package has been published to the main package index it cannot be undone! Please consult the package uploading documentation for more information.

[maintain] [Publish]

Please see the README on Github at and

[Skip to Readme]


Change log
Dependencies base (>=4.11 && <5), containers (==0.6.*), deepseq (==1.4.*), hashable (>=1.2 && <1.4), haskell-src-meta (==0.8.*), mtl (==2.2.*), template-haskell (>=2.14 && <2.16), text (==1.2.*), th-lift (>=0.7.11 && <0.9), transformers (==0.5.*), unordered-containers (==0.2.*) [details]
License BSD-3-Clause
Copyright MIT
Author Karl Cronburg & Matthew Ahrens
Category Library
Home page
Bug tracker
Source repo head: git clone
Uploaded by KarlCronburg at 2020-09-25T04:34:24Z




Maintainer's Corner

For package maintainers and hackage trustees

Readme for antlr-haskell-

[back to package description]


A Haskell implementation of ANTLR.

In implementing ANTLR we referenced the behavior of the original Java version (ANTLR4): The definitive ANTLR4 Reference. However we have taken much liberty in the design of this library compared to the workflow of the original Java version. In particular in implementing ANTLR for Haskell we have followed the following principles:

More info can be found here:

Build instructions

The library can be built with:

stack build # stack version 2.3.3
stack test :simple

Or with cabal- like:

cabal configure
cabal install --only-dependencies --enable-tests
cabal build
cabal test sexpression

Here's a good one to run when making changes to the library, and you're unsure of what may become affected by those changes:

stack test :simple :atn :ll :lr :sexpression :allstar :c

And then compare the results with that of this upstream branch. Some of the GLR features (incremental and partial tokenization, notably) are still experimental, and so there are known test cases which currently fail.

Version History