|
Packit |
2cbdf3 |
# Alex: A Lexical Analyser Generator
|
|
Packit |
2cbdf3 |
|
|
Packit |
2cbdf3 |
[![Build Status](https://secure.travis-ci.org/simonmar/alex.png?branch=master)](http://travis-ci.org/simonmar/alex)
|
|
Packit |
2cbdf3 |
|
|
Packit |
2cbdf3 |
Alex is a Lex-like tool for generating Haskell scanners. For complete
|
|
Packit |
2cbdf3 |
documentation, see the doc directory.
|
|
Packit |
2cbdf3 |
|
|
Packit |
2cbdf3 |
http://www.haskell.org/alex/
|
|
Packit |
2cbdf3 |
|
|
Packit |
2cbdf3 |
http://hackage.haskell.org/package/alex
|
|
Packit |
2cbdf3 |
|
|
Packit |
2cbdf3 |
Alex is built using Cabal. First install GHC and cabal-install, then:
|
|
Packit |
2cbdf3 |
|
|
Packit |
2cbdf3 |
$ cabal configure
|
|
Packit |
2cbdf3 |
$ cabal build
|
|
Packit |
2cbdf3 |
$ cabal install
|
|
Packit |
2cbdf3 |
|
|
Packit |
2cbdf3 |
Alex version 2.0 has changed fairly considerably since version 1.x,
|
|
Packit |
2cbdf3 |
and the syntax is almost completely different. For a detailed list of
|
|
Packit |
2cbdf3 |
changes, see the release notes in the documentation.
|
|
Packit |
2cbdf3 |
|
|
Packit |
2cbdf3 |
Alex is now covered by a BSD-Style licence; see the licence file in
|
|
Packit |
2cbdf3 |
the 'doc' directory for details.
|
|
Packit |
2cbdf3 |
|
|
Packit |
2cbdf3 |
The sources are in the 'src' directory and the documentation in the 'doc'
|
|
Packit |
2cbdf3 |
directory; various examples are in the 'examples' subdirectory.
|
|
Packit |
2cbdf3 |
|
|
Packit |
2cbdf3 |
The source code in the 'src' and 'examples' directories is intended
|
|
Packit |
2cbdf3 |
for a Haskell 98 compiler with hierarchical modules. It should work
|
|
Packit |
2cbdf3 |
with GHC >= 5.04.
|
|
Packit |
2cbdf3 |
|
|
Packit |
2cbdf3 |
Please report any bugs or comments at https://github.com/simonmar/alex/issues
|
|
Packit |
2cbdf3 |
|
|
Packit |
2cbdf3 |
Share and enjoy,
|
|
Packit |
2cbdf3 |
|
|
Packit |
2cbdf3 |
Chris Dornan: cdornan@arm.com
|
|
Packit |
2cbdf3 |
|
|
Packit |
2cbdf3 |
Isaac Jones: ijones@syntaxpolice.org
|
|
Packit |
2cbdf3 |
|
|
Packit |
2cbdf3 |
Simon Marlow: simonmar@microsoft.com
|