Annotation with optional arguments, result is ignored.
Annotation with optional arguments, result is ignored.
Parses simple blocks { ... }
Parses a definition in a block val name = expr
Parses a definition in a block val name = expr
Parser of val name = expr
syntax.
Sequence of comma separated expressions.
Sequence of comma separated expressions.
Parses name[T1, ..., Tn](a1, ..., aM): R = expr
Parses name[T1, ..., Tn](a1, ..., aM): R = expr
Parses [T1,T2](a1: T, a2: S)
Parses [T1,T2](a1: T, a2: S)
Look ahead whitespaces, but not new line.
Look ahead whitespaces, but not new line.
Parses pattern, like in the expression val <pattern> = expr
Sketchy way to whitelist a few suffixes that come after a .
Sketchy way to whitelist a few suffixes that come after a . select; apart from these and IDs, everything else is illegal
Parses optional trailing comma.
Parses optional trailing comma.
Parser of typed expressions.
Parser of name = expr
syntax.
Parses whitespace, including newlines.
Parses whitespace, including newlines. This is the default for most things
Parses all whitespace, excluding newlines.
Parses all whitespace, excluding newlines. This is only really useful in e.g. {} blocks, where we want to avoid capturing newlines so semicolon-inference would work
Parse script
into ErgoTree expression.
Set the current source position (dynamic variable) and execute the given thunk.
Set the current source position (dynamic variable) and execute the given thunk.
A builder instance used by the parsers to create ErgoTree expressions.
A builder instance used by the parsers to create ErgoTree expressions.
Constructor of lambda nodes
Constructor of lambda nodes
Constructor of ErgoTree binary operation.
Constructor of ErgoTree binary operation.
Build expression tree from a list of operations respecting precedence.
Build expression tree from a list of operations respecting precedence. Example: a + b * c => a + (b * c)
Constructor of ErgoTree unary operation.
Constructor of ErgoTree unary operation.
Parse str
into SType.
Parse str
into SType.
string representation of type in ErgoScript syntax
This map should be in sync with SType.allPredefTypes
This map should be in sync with SType.allPredefTypes
Create SourceContext using current input string and the given index.
Create SourceContext using current input string and the given index.
Main facade to ErgoScript parser implementation.