Copyright | (c) 2017 Patrick Champion |
---|---|
License | see LICENSE file |
Maintainer | chlablak@gmail.com |
Stability | provisional |
Portability | portable |
Safe Haskell | Safe |
Language | Haskell2010 |
AST helper for other grammars
data LexicalRule Source #
Defines a lexical rule represented by a identifier
newtype LexicalDefinitionList Source #
Defines the definition list for a lexical rule
data LexicalDefinition Source #
Lexical rule definition component
LexicalRegEx String | Regular expression as a terminal string |
LexicalString String | |
LexicalIdentifier String | Other lexical rule identifier |
Helpers
lexicalString :: String -> String -> LexicalRule Source #
Construct a simple lexical rule