module Data.TPTP.Parse.Text.Lazy (
parseUnit,
parseTPTP,
parseTSTP
) where
import Data.Attoparsec.Text.Lazy (Result, parse)
import Data.Text.Lazy (Text)
import Data.TPTP (Unit, TPTP, TSTP)
import Data.TPTP.Parse.Combinators (input, unit, tptp, tstp)
parseUnit :: Text -> Result Unit
parseUnit :: Text -> Result Unit
parseUnit = Parser Unit -> Text -> Result Unit
forall a. Parser a -> Text -> Result a
parse (Parser Unit -> Parser Unit
forall a. Parser a -> Parser a
input Parser Unit
unit)
parseTPTP :: Text -> Result TPTP
parseTPTP :: Text -> Result TPTP
parseTPTP = Parser TPTP -> Text -> Result TPTP
forall a. Parser a -> Text -> Result a
parse (Parser TPTP -> Parser TPTP
forall a. Parser a -> Parser a
input Parser TPTP
tptp)
parseTSTP :: Text -> Result TSTP
parseTSTP :: Text -> Result TSTP
parseTSTP = Parser TSTP -> Text -> Result TSTP
forall a. Parser a -> Text -> Result a
parse Parser TSTP
tstp