https://github.com/haskell/alex
A lexical analyser generator for Haskell
https://github.com/haskell/alex
lexer-generator
Last synced: 12 days ago
JSON representation
A lexical analyser generator for Haskell
- Host: GitHub
- URL: https://github.com/haskell/alex
- Owner: haskell
- License: bsd-3-clause
- Created: 2011-07-11T20:13:56.000Z (over 14 years ago)
- Default Branch: master
- Last Pushed: 2026-02-04T07:01:26.000Z (about 2 months ago)
- Last Synced: 2026-03-01T11:06:46.310Z (21 days ago)
- Topics: lexer-generator
- Language: Haskell
- Homepage: https://hackage.haskell.org/package/alex
- Size: 4.5 MB
- Stars: 320
- Watchers: 10
- Forks: 88
- Open Issues: 31
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Contributing: CONTRIBUTING.rst
- License: LICENSE
Awesome Lists containing this project
README
# Alex: A Lexical Analyser Generator
[](https://github.com/haskell/alex/actions/workflows/ci.yml)
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](https://haskell-alex.readthedocs.io):
- [Online (HTML)](https://haskell-alex.readthedocs.io)
- [PDF](https://haskell-alex.readthedocs.io/_/downloads/en/latest/pdf/)
- [Downloadable HTML](https://haskell-alex.readthedocs.io/_/downloads/en/latest/htmlzip/)
For basic information of the sort typically found in a read-me, see the following sections of the docs:
- [About Alex](https://haskell-alex.readthedocs.io/en/latest/about.html)
- [Obtaining Alex](https://haskell-alex.readthedocs.io/en/latest/obtaining.html)
- [Contributing](https://haskell-alex.readthedocs.io/en/latest/contributing.html)