Moduleplutus-core-1.70.0.0
PlutusCore.Parser
Synopsis
- value parseProgram
- value parseTerm
- value parseType
- value program
- value builtinFunction
- value cachedBuiltin
- value con0xBS
- value conArray
- value conBLS12_381_G1_Element
- value conBLS12_381_G2_Element
- value conBS
- value conBool
- value conData
- value conDataNoParens
- value conInteger
- value conList
- value conPair
- value conText
- value conUnit
- value conValue
- value constant
- value constantOf
- value hexByte
- value getSourcePos'
- value getVersion
- value inBraces
- value inBrackets
- value inParens
- value initial
- value leadingWhitespace
- value lexeme
- value name
- value parse
- value parseGen
- value reachOffsetNoLine'
- value symbol
- value toErrorB
- value toSrcSpan
- value trailingWhitespace
- value version
- value whenVersion
- value whitespace
- value withSpan
- value withSpan'
- value withVersion
- value allType
- value appType
- value builtinType
- value defaultUni
- value defaultUniApplication
- value funType
- value ifixType
- value kind
- value lamType
- value pType
- value sopType
- value tyName
- value varType
- data SourcePos
- data ParserError
- data ExpectParens
- type Parser
- newtype ParserState
- type PType
- Packageplutus-core-1.70.0.0
- Exports64
- LicenceApache-2.0
- SourcePos.hs
The data type SourcePos represents source positions. It contains the name of the source file, a line number, and a column number. Source line and column positions change intensively during parsing, so we need to make them strict to avoid memory leaks.
Instances9Eq, Data, Ord, Read, Show, Generic, …
Eq SourcePosDefined in megaparsec-9.8.3 · Text.Megaparsec.PosData SourcePosDefined in megaparsec-9.8.3 · Text.Megaparsec.PosOrd SourcePosDefined in megaparsec-9.8.3 · Text.Megaparsec.PosRead SourcePosDefined in megaparsec-9.8.3 · Text.Megaparsec.PosShow SourcePosDefined in megaparsec-9.8.3 · Text.Megaparsec.PosGeneric SourcePosDefined in megaparsec-9.8.3 · Text.Megaparsec.PosNFData SourcePosDefined in megaparsec-9.8.3 · Text.Megaparsec.PosPretty SourcePosDefined in plutus-core-1.70.0.0 · PlutusCore.Error · orphantype Rep SourcePos = D1 ('MetaDataDefined in megaparsec-9.8.3 · Text.Megaparsec.Pos"SourcePos"
"Text.Megaparsec.Pos"
"megaparsec-9.8.3-F8Rg4R5CO7CMGRKYIuJ6D"
'False) (C1 ('MetaCons"SourcePos"
'PrefixI 'True) (S1 ('MetaSel ('Just"sourceName"
) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 FilePath) :*: (S1 ('MetaSel ('Just"sourceLine"
) 'NoSourceUnpackedness 'SourceStrict 'DecidedUnpack) (Rec0 Pos) :*: S1 ('MetaSel ('Just"sourceColumn"
) 'NoSourceUnpackedness 'SourceStrict 'DecidedUnpack) (Rec0 Pos))))
Constructors
Instances8Eq, Ord, Show, Generic, NFData, Pretty, …
Eq ParserErrorDefined in plutus-core-1.70.0.0 · PlutusCore.ErrorOrd ParserErrorDefined in plutus-core-1.70.0.0 · PlutusCore.ErrorShow ParserErrorDefined in plutus-core-1.70.0.0 · PlutusCore.ErrorGeneric ParserErrorDefined in plutus-core-1.70.0.0 · PlutusCore.ErrorNFData ParserErrorDefined in plutus-core-1.70.0.0 · PlutusCore.ErrorPretty ParserErrorDefined in plutus-core-1.70.0.0 · PlutusCore.ErrorShowErrorComponent ParserErrorDefined in plutus-core-1.70.0.0 · PlutusCore.Errortype Rep ParserError = D1 ('MetaDataDefined in plutus-core-1.70.0.0 · PlutusCore.Error"ParserError"
"PlutusCore.Error"
"plutus-core-1.70.0.0-Fm0UMMu3hPx1PFomOkuIYM"
'False) (C1 ('MetaCons"BuiltinTypeNotAStar"
'PrefixI 'False) (S1 ('MetaSel 'Nothing 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel 'Nothing 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 SourcePos)) :+: (C1 ('MetaCons"UnknownBuiltinFunction"
'PrefixI 'False) (S1 ('MetaSel 'Nothing 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Text) :*: (S1 ('MetaSel 'Nothing 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 SourcePos) :*: S1 ('MetaSel 'Nothing 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 [Text]))) :+: C1 ('MetaCons"InvalidBuiltinConstant"
'PrefixI 'False) (S1 ('MetaSel 'Nothing 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Text) :*: (S1 ('MetaSel 'Nothing 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel 'Nothing 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 SourcePos)))))
Constructors
Instances1Show
Show ParserStateDefined in plutus-core-1.70.0.0 · PlutusCore.Parser.ParserCommon