alex

Alex is a tool for generating lexical analysers in Haskell. It takes a description of tokens based on regular expressions and generates a Haskell module containing code for scanning text efficiently. It is similar to the tool lex or flex for C/C++.


Keywords
Development, lexer-generator
License
BSD-3-Clause
Install
cabal install alex-3.5.1.0

Documentation

Alex: A Lexical Analyser Generator

CI

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

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: