| Copyright | (c) 2017 Patrick Champion |
|---|---|
| License | see LICENSE file |
| Maintainer | chlablak@gmail.com |
| Stability | provisional |
| Portability | portable |
| Safe Haskell | Safe |
| Language | Haskell2010 |
PP.Grammars.LexicalHelper
Description
AST helper for other grammars
data LexicalRule Source #
Defines a lexical rule represented by a identifier
Constructors
| LexicalRule String LexicalDefinitionList |
Instances
newtype LexicalDefinitionList Source #
Defines the definition list for a lexical rule
Constructors
| LexicalDefinitionList [LexicalDefinition] |
data LexicalDefinition Source #
Lexical rule definition component
Constructors
| 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