Module technology.sola.script
Package technology.sola.script.parser
package technology.sola.script.parser
-
ClassDescriptionExpr represents code that evaluates to a value.Expression that assigns a value to a variable.Expression for binary operators that operate on two expression (such as "+" to sum numbers).Expression that calls a
SolaScriptCallable
with desired arguments.Expression that calls aSolaScriptCallable
with desired arguments.Expression that gets a property from aSolaScriptMap
and returns its.Expression that gets a property from aSolaScriptMap
and returns its.Grouping expressions warps an expression to change when it is evaluated.Literal expressions hold a value such as string, number, boolean, map or null.Expression for logical operators that operate on two expression (such as "||" to evaluate a logical or).Expression for nullish coalescence operator that evaluates to the right side expression if the left side expression evaluates to null.Expression that sets a property on aSolaScriptMap
.Expression for a ternary operation.Expression for unary operators that operate on one expression (such as "!" to invert a boolean).Variable expressions hold a name of a variable to evaluate the value of.Expr.Visitor<R>Defines operations for the variousExpr
implementations.ParserConstants holds constants used while parsing a sola script.ParserResult holds the parsedStmt
s and anyScriptError
s found while parsing.ParserResultPrinter serializes aParserResult
in a human-readable way.Stmt represents a piece of code that performs an action or controls the flow of the program.Block contains a list ofStmt
s that are executed in their own scope.Expression statement evaluates an expression.Function statement declares a function in the current scope with desired parameters and body.If statement is a conditional branching statement.Return statement exits a function while optionally returning a value for the caller to use.Return is an exception utilized by theInterpreter
to throw when aStmt.Return
is being interpreted so that the wrappingSolaScriptFunction
can catch it and return the value as the result of theExpr.Call
.Val statement declares a constant in the current scope with an initializer.Var statement declares a variable in the current scope with an optional initializer.Stmt.Visitor<R>Defines operations for the variousStmt
implementations.While statement is a conditional looping statement.