Safe Haskell | None |
---|---|
Language | Haskell98 |
Lexer for Source Tetra tokens.
Documentation
lexModuleString :: String -> Int -> String -> [Token (Tok Name)] Source
Lex a string to tokens, using primitive names.
The first argument gives the starting source line number.
We're currently re-using the lexer for the core language, which has *mostly* the same lexical structure as Source Tetra. There are a few tokens accepted by one language but not the other, but it'll do for now.