Module technology.sola.script
Package technology.sola.script.parser
package technology.sola.script.parser
-
ClassDescriptionExpr represents code that evaluates to a value.Grouping expressions warps an expression to change when it is evaluated.Literal expressions hold a value such as string, number, boolean, map or null.Variable expressions hold a name of a variable to evaluate the value of.Expr.Visitor<R>Defines operations for the various
Expr
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 or method 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.