Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Synopsis
- cf2AntlrLex :: String -> CF -> (Doc, KeywordEnv)
Documentation
cf2AntlrLex :: String -> CF -> (Doc, KeywordEnv) Source #
Creates a lexer grammar. Since antlr token identifiers must start with an uppercase symbol, I prepend Surrogate_id_SYMB_ to the identifier. This introduces risks of clashes if somebody uses the same identifier for user defined tokens. This is not handled. returns the environment because the parser uses it.