Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- data Number
- data SourceRange = SourceRange {}
- data Lisp
- parseLisp :: String -> Text -> Either (ParseErrorBundle Text Void) [Lisp]
- parseLispFile :: String -> IO (Either (ParseErrorBundle Text Void) [Lisp])
- parseLispExpr :: String -> Text -> Either (ParseErrorBundle Text Void) Lisp
- showLispPos :: Lisp -> String
- type CharParser t a = (Stream t, Token t ~ Char) => Parsec Void t a
- lispParser :: CharParser t Lisp
Documentation
data SourceRange Source #
A position range in the Lisp source file or string.
Instances
Show SourceRange Source # | |
Defined in Data.Lisp showsPrec :: Int -> SourceRange -> ShowS # show :: SourceRange -> String # showList :: [SourceRange] -> ShowS # |
parseLisp :: String -> Text -> Either (ParseErrorBundle Text Void) [Lisp] Source #
parse source text
: parse the text into a list of lisp
expressions. Source is used for the error messages, and in the
SourceRanges
.
parseLispFile :: String -> IO (Either (ParseErrorBundle Text Void) [Lisp]) Source #
Parse a lisp file
parseLispExpr :: String -> Text -> Either (ParseErrorBundle Text Void) Lisp Source #
parse a single expression
showLispPos :: Lisp -> String Source #
show the lisp with position info
type CharParser t a = (Stream t, Token t ~ Char) => Parsec Void t a Source #
A megaparsec parser that has characters as tokens.
lispParser :: CharParser t Lisp Source #
A megaparsec parser for lisp expressions