Alex is a tool for generating lexical analysers, also known as "lexers" and "scanners", in Haskell. The lexical analysers implement a description of the tokens to be recognised in the form of regular expressions. It is similar to the tools "lex" and "flex" for C/C++.
Share and enjoy!
Documentation is hosted on Read the Docs:
For basic information of the sort typically found in a read-me, see the following sections of the docs: