Package technology.sola.script.parser


package technology.sola.script.parser
  • Class
    Description
    Expr 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 a SolaScriptCallable with desired arguments.
    Expression that gets a property from a SolaScriptMap and returns its.
    Expression that gets a property from a SolaScriptMap 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 a SolaScriptMap.
    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.
    Defines operations for the various Expr implementations.
    Parser takes a list of Tokens and parses them into Stmts that can be later interpreted.
    ParserConstants holds constants used while parsing a sola script.
    ParserResult holds the parsed Stmts and any ScriptErrors found while parsing.
    ParserResultPrinter serializes a ParserResult 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 of Stmts 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 the Interpreter to throw when a Stmt.Return is being interpreted so that the wrapping SolaScriptFunction can catch it and return the value as the result of the Expr.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.
    Defines operations for the various Stmt implementations.
    While statement is a conditional looping statement.