Mello.Parse
type OffsetSpan = Span Int Source #
type OffsetSexp = Memo SexpF OffsetSpan Source #
data Loc Source #
Constructors
Fields
Defined in Mello.Parse
Methods
showsPrec :: Int -> Loc -> ShowS #
show :: Loc -> String #
showList :: [Loc] -> ShowS #
(==) :: Loc -> Loc -> Bool #
(/=) :: Loc -> Loc -> Bool #
compare :: Loc -> Loc -> Ordering #
(<) :: Loc -> Loc -> Bool #
(<=) :: Loc -> Loc -> Bool #
(>) :: Loc -> Loc -> Bool #
(>=) :: Loc -> Loc -> Bool #
max :: Loc -> Loc -> Loc #
min :: Loc -> Loc -> Loc #
type LocSpan = Span Loc Source #
type LocSexp = Memo SexpF LocSpan Source #
sexpParser :: Monad m => ParserT e m OffsetSexp Source #
A parser for S-expressions
parseSexp :: Text -> Either (Err Void) LocSexp Source #
parseSexpI :: Text -> IO (Either (Err Void) LocSexp) Source #