The Lexer for Haskell in Haskell
This is a list of modules that are part of the Lexer for Haskell in Haskell
i.e., the regular expression compiler, the lexical grammar from
section 9.2
of the revised Haskell 98 report
(Dec 2002) and some additional handwritten Haskell modules.
See also the talk
Lexer for Haskell
in Haskell, but note that the implementation has been updated more often
than the talk, so they are probably not completely in sync.
Handwritten lexer parts
- HsLexerPass1
- HsLayoutPre
- HsLexer
- HsLexUtils
Haskell Lexer specification and generator
The lexer generator was originally developed with HBC, so some library modules
from HBC are included.
- MUtils
- OpTypes
Directory ../tests/HbcLibraries
- OrdMap
- Trace
Directory Lexer
- HsTokens
Directory LexerGen
- CompileRegExp
- DetMachineToHaskell2
- DFA
- Main{-LexerGen/HsLexerGen.hs-}
- LexerGen2
- Minimalize
- PPrint
- RegExp
- RegExpOps
Directory LexerSpec
- HaskellChars
- HaskellLexicalSyntax
2009-01-04