All Classes and Interfaces
Class
Description
EnvironmentHandle holds an internal reference to environment state information where variable values are stored.
ErrorContainer contains a list of
ScriptError
s found for a particular script.Expr 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.
Defines operations for the various
Expr
implementations.Interpreter handles interpreting a list of
Stmt
for a given ScriptRuntime
state.ParserConstants holds constants used while parsing a sola script.
ParserResult holds the parsed
Stmt
s and any ScriptError
s found while parsing.ParserResultPrinter serializes a
ParserResult
in a human-readable way.ScopeTable holds variable resolutions at various depths of scope.
ScriptError holds information about what kind of error happened, where it happened, and a longer description for a
user to resolve it.
ScriptErrorStage holds the various stages where errors can occur while parsing and executing a sola script.
ScriptErrorType contains various expected errors that may occur while parsing and executing a sola script.
ScriptErrorException is a runtime exception that is thrown while trying to interpret a sola script containing
information about the
ScriptErrorType
cause and the Token
it was found at.ScriptModule defines the api for a module to be imported into a
ScriptRuntime
.ScriptRuntime contains environment state information as well as a
ScopeTable
to keep track of nested scope
variable resolutions.SolaScript is a runtime container for executing sola scripts.
SolaScriptCallable specifies the contract for something that is callable in a sola script.
SolaScriptFunction is a runtime definition of a function declaration that is callable (implements
SolaScriptCallable
interface).SolaScriptMain contains the entry point for running sola scripts from the command line.
SolaScriptMap is the runtime representation of the sola-script map type.
StandardLibraryScriptModule contains some standard functionality for making useful programs using sola-script.
Stmt represents a piece of code that performs an action or controls the flow of the program.
Block contains a list of
Stmt
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 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.
Token holds information about a recognized token that sola script understands.
Tokenizer provides functionality for tokenizing a source string into
Token
s to be parsed and interpreted.TokenType contains all recognized token types for sola script.
ValueUtils contains various utility methods for sola-script values.