Versions in this module Expand all Collapse all v1 v1.0.0 Jul 19, 2026 Changes in this version + func ParseErrorsToString(errors []ParserError, source string) string + func ParsePercentageRatio(source string) (*big.Int, uint16, error) + type AccountInterpLiteral struct + Parts []AccountNamePart + func (a AccountInterpLiteral) IsWorld() bool + func (expr AccountInterpLiteral) String() string + type AccountNamePart interface + type AccountTextPart struct + Name string + type AllotmentValue interface + type AssetLiteral struct + Asset string + type BinaryInfix struct + Left ValueExpr + Operator InfixOperator + Right ValueExpr + type CappedKeptOrDestination struct + Cap ValueExpr + To KeptOrDestination + type Comment struct + Content string + type Destination interface + type DestinationAccount struct + type DestinationAllotment struct + Items []DestinationAllotmentItem + type DestinationAllotmentItem struct + Allotment AllotmentValue + To KeptOrDestination + type DestinationInorder struct + Clauses []CappedKeptOrDestination + Remaining KeptOrDestination + type DestinationKept struct + type DestinationOneof struct + Clauses []CappedKeptOrDestination + Remaining KeptOrDestination + type DestinationTo struct + Destination Destination + type ErrorListener struct + Errors []ParserError + func (l *ErrorListener) SyntaxError(recognizer antlr.Recognizer, offendingSymbol interface{}, startL, startC int, ...) + type FnCall struct + Args []ValueExpr + Caller *FnCallIdentifier + type FnCallIdentifier struct + Name string + type InfixOperator string + const InfixOperatorDiv + const InfixOperatorMinus + const InfixOperatorPlus + type KeptOrDestination interface + type MonetaryLiteral struct + Amount ValueExpr + Asset ValueExpr + type NumberLiteral struct + Number *big.Int + type ParseResult struct + Errors []ParserError + Source string + Value Program + func Parse(input string) ParseResult + type ParserError struct + Msg string + func (e ParserError) Error() string + type PercentageLiteral struct + Amount *big.Int + FloatingDigits uint16 + func (r PercentageLiteral) ToRatio() *big.Rat + type Position struct + Character int + Line int + func PositionOf(src string, substr string) *Position + func PositionOfIndexed(src string, substr string, occurrence int) *Position + func (p *Position) AsRange() Range + func (p1 *Position) GtEq(p2 Position) bool + type Prefix struct + Expr ValueExpr + Operator PrefixOperator + type PrefixOperator string + const PrefixOperatorMinus + type Program struct + Comments []Comment + Flags []StringLiteral + Statements []Statement + Vars *VarDeclarations + func (p Program) GetFlags() map[string]struct{} + func (p Program) GetVersion() Version + type Range struct + End Position + Start Position + func RangeOfIndexed(src string, substr string, occurrence int) Range + func (r Range) Contains(position Position) bool + func (r Range) GetRange() Range + func (r Range) ShowOnSource(source string) string + type Ranged interface + GetRange func() Range + type RemainingAllotment struct + type SaveStatement struct + Amount ValueExpr + SentValue SentValue + type SendStatement struct + Destination Destination + SentValue SentValue + Source Source + type SentValue interface + type SentValueAll struct + Asset ValueExpr + type SentValueLiteral struct + Monetary ValueExpr + type Source interface + GetRange func() Range + type SourceAccount struct + Color ValueExpr + type SourceAllotment struct + Items []SourceAllotmentItem + type SourceAllotmentItem struct + Allotment AllotmentValue + From Source + type SourceCapped struct + Cap ValueExpr + From Source + type SourceInorder struct + Sources []Source + type SourceOneof struct + Sources []Source + type SourceOverdraft struct + Address ValueExpr + Bounded *ValueExpr + Color ValueExpr + type SourceWithScaling struct + Address ValueExpr + Color ValueExpr + Through ValueExpr + type Statement interface + type StringLiteral struct + String string + type TypeDecl struct + Name string + type ValueExpr interface + type ValueExprAllotment struct + Value ValueExpr + type VarDeclaration struct + Name *Variable + Origin *ValueExpr + Type *TypeDecl + type VarDeclarations struct + Declarations []VarDeclaration + type Variable struct + Name string + type Version interface + String func() string + type VersionInterpreter struct + Major uint16 + Minor uint16 + Patch uint16 + func NewVersionInterpreter(major uint16, minor uint16, patch uint16) VersionInterpreter + func (v VersionInterpreter) GtEq(other VersionInterpreter) bool + func (v VersionInterpreter) String() string + type VersionMachine struct + func (v VersionMachine) String() string