Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Synopsis
- data SnailAst
- = Lexeme (SourcePos, Text)
- | TextLiteral (SourcePos, Text)
- | SExpression (Maybe Char) [SnailAst]
- sExpression :: Parser SnailAst
- snailAst :: Parser [SnailAst]
- nonQuoteCharacter :: Parser Text
- textLiteral :: Parser SnailAst
The parsers you should use
Lexeme (SourcePos, Text) | |
TextLiteral (SourcePos, Text) | |
SExpression (Maybe Char) [SnailAst] |
sExpression :: Parser SnailAst Source #
Parse an SExpression
Exported for testing
nonQuoteCharacter :: Parser Text Source #
Matches any non-quote character
textLiteral :: Parser SnailAst Source #
Matches a literal text and supports nested quotes, e.g.
("hello"")