haskell/alex

A lexical analyser generator for Haskell

323

stars

584

commits

Haskell

primary language

Apr 15, 2026

updated

hackage.haskell.org/package/alex
lexer-generator

README

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:

Contributors

(top 30 of 58)

simonmar

260 commits

andreasabel

96 commits

Ericson2314

43 commits

sergv

18 commits

haskell/alex

A lexical analyser generator for Haskell

323

stars

584

commits

Haskell

primary language

Apr 15, 2026

updated

hackage.haskell.org/package/alex
lexer-generator

README

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:

Contributors

(top 30 of 58)

simonmar

260 commits

andreasabel

96 commits

Ericson2314

43 commits

sergv

18 commits

Languages

Haskell

64.6%

Logos

29.3%

Yacc

3.0%

Makefile

2.4%