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!
Warning
This repository is a WIP. The plan is to reuse the generators from the Haskell language, but generate Koka code. Eventually we might transition to a more optimized workflow for Koka, without all of the extras we don't need. Documentation is from the Haskell project Every once in a while we should sync from the upstream Haskell project, the methodology for doing so is still being determined.
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: