Safe Haskell | None |
---|
Reference lexer for core langauge parser. Slow but Simple.
The lexers here all use String
in place of a real name type.
After applying these functions to the program text, we need
to use renameTok
tok convert the strings in TokNamed
tokens
into the name type specific to the langauge fragment to be parsed.
- module DDC.Core.Lexer.Tokens
- module DDC.Core.Lexer.Names
- lexModuleWithOffside :: FilePath -> Int -> String -> [Token (Tok String)]
- lexExp :: FilePath -> Int -> String -> [Token (Tok String)]
Documentation
module DDC.Core.Lexer.Tokens
module DDC.Core.Lexer.Names