plutus-core-1.0.0.1: Language library for Plutus Core
Safe Haskell None
Language Haskell2010

PlutusCore.Parser

Description

Parsers for PLC terms in DefaultUni.

Synopsis

Documentation

parseProgram :: ByteString -> Either ( ParseErrorBundle Text ParseError ) ( Program TyName Name DefaultUni DefaultFun SourcePos ) Source #

Parse a PLC program. The resulting program will have fresh names. The underlying monad must be capable of handling any parse errors.

parseTerm :: ByteString -> Either ( ParseErrorBundle Text ParseError ) ( Term TyName Name DefaultUni DefaultFun SourcePos ) Source #

Parse a PLC term. The resulting program will have fresh names. The underlying monad must be capable of handling any parse errors.

parseType :: ByteString -> Either ( ParseErrorBundle Text ParseError ) ( Type TyName DefaultUni SourcePos ) Source #

Parse a PLC type. The resulting program will have fresh names. The underlying monad must be capable of handling any parse errors.

data ParseError Source #

An error encountered during parsing.

Instances

Instances details
Eq ParseError Source #
Instance details

Defined in PlutusCore.Error

Ord ParseError Source #
Instance details

Defined in PlutusCore.Error

Show ParseError Source #
Instance details

Defined in PlutusCore.Error

Generic ParseError Source #
Instance details

Defined in PlutusCore.Error

NFData ParseError Source #
Instance details

Defined in PlutusCore.Error

ShowErrorComponent ParseError Source #
Instance details

Defined in PlutusCore.Error

Pretty ParseError Source #
Instance details

Defined in PlutusCore.Error

HasErrorCode ParseError Source #
Instance details

Defined in PlutusCore.Error

AsParseError ParseError Source #
Instance details

Defined in PlutusCore.Error

type Rep ParseError Source #
Instance details

Defined in PlutusCore.Error