Safe Haskell | None |
---|---|
Language | Haskell2010 |
This module parses the Relapse Grammar using the Parsec Library.
- parseGrammar :: String -> Either ParseError Refs
- grammar :: CharParser () Refs
- pattern :: CharParser () Pattern
- nameExpr :: CharParser () (Expr Bool)
- expr :: CharParser () (Expr Bool)
- idLit :: CharParser () String
- bytesCastLit :: CharParser () String
- stringLit :: CharParser () String
- doubleCastLit :: CharParser () Double
- uintCastLit :: CharParser () Int
- intLit :: CharParser () Int
- ws :: CharParser () ()
Parse Grammar
parseGrammar :: String -> Either ParseError Refs Source #
parseGrammar parses the Relapse Grammar.
Internal functions
These functions are exposed for testing purposes.
grammar :: CharParser () Refs Source #
pattern :: CharParser () Pattern Source #
idLit :: CharParser () String Source #
bytesCastLit :: CharParser () String Source #
stringLit :: CharParser () String Source #
doubleCastLit :: CharParser () Double Source #
uintCastLit :: CharParser () Int Source #
intLit :: CharParser () Int Source #
ws :: CharParser () () Source #