Copyright | (c) Karl Cronburg 2018 |
---|---|
License | BSD3 |
Maintainer | karl@cs.tufts.edu |
Stability | experimental |
Portability | POSIX |
Safe Haskell | None |
Language | Haskell2010 |
Until better haddock integration is developed, you'll need to look at the source for this module to see the G4 grammar for G4.
Documentation
prodNoAlphas :: Directive -> PRHS Source #
prodNothing :: PRHS Source #
maybeGTerm :: String -> ProdElem Source #
maybeGNonTerm :: String -> ProdElem Source #
starGNonTerm :: String -> ProdElem Source #
plusGNonTerm :: String -> ProdElem Source #
regexAnyChar :: Regex s Source #
data G4NTSymbol Source #
NT_decls | |
NT_decl1 | |
NT_prods | |
NT_lexemeRHS | |
NT_prodRHS | |
NT_regexes1 | |
NT_directive | |
NT_alphas | |
NT_qDirective | |
NT_qDot | |
NT_alpha | |
NT_regexes | |
NT_regex | |
NT_regex1 | |
NT_charSet | |
NT_unionR | |
NT_charSet1 |
Instances
T_0 | |
T_1 | |
T_2 | |
T_3 | |
T_4 | |
T_5 | |
T_6 | |
T_7 | |
T_8 | |
T_9 | |
T_10 | |
T_11 | |
T_12 | |
T_13 | |
T_14 | |
T_15 | |
T_16 | |
T_17 | |
T_UpperID | |
T_LowerID | |
T_Literal | |
T_LineComment | |
T_HaskellExp | |
T_SetChar | |
T_WS | |
T_EscapedChar |
Instances
data TokenValue Source #
Instances
g4Grammar' :: Prettify s => Grammar s G4NTSymbol G4TSymbol Directive Source #
lexeme2value :: String -> G4TSymbol -> TokenValue Source #
lookupToken :: [Char] -> Token G4TSymbol TokenValue Source #
prettifyValue :: TokenValue -> Pretty Source #