The result of a code execution operation.
More...
|
readonly Token[] | Tokens |
| The tokens making up the executed script.
|
|
readonly? SyntaxError | LexerError |
| Any error that occurred during lexing.
|
|
readonly? Node | Ast |
| The Abstract Syntax Tree of the executed script.
|
|
readonly? SyntaxError | ParseError |
| Any error that occurred during parsing.
|
|
readonly? IEzrObject | Result |
| The result of the execution.
|
|
readonly bool | Success |
| Was the execution successful?
|
|
The result of a code execution operation.
◆ ExecutionResult() [1/3]
EzrSquared.Executor.ExecutionResult.ExecutionResult |
( |
Token[] | tokens, |
|
|
SyntaxError | error ) |
Creates a new execution result, which failed at lexing.
- Parameters
-
tokens | The tokens returned by the lexer. |
error | The error. |
◆ ExecutionResult() [2/3]
EzrSquared.Executor.ExecutionResult.ExecutionResult |
( |
Token[] | tokens, |
|
|
ParseResult | result ) |
Creates a new execution result, which failed at parsing.
- Parameters
-
tokens | The tokens returned by the lexer. |
result | The parse result carrying the error. |
◆ ExecutionResult() [3/3]
EzrSquared.Executor.ExecutionResult.ExecutionResult |
( |
Token[] | tokens, |
|
|
Node | ast, |
|
|
RuntimeResult | result ) |
Creates a new execution result.
- Parameters
-
tokens | The tokens returned by the lexer. |
ast | The executed AST node. |
result | The runtime result carrying the result or error. |
◆ GetErrorMessage()
string EzrSquared.Executor.ExecutionResult.GetErrorMessage |
( |
| ) |
|
Returns the error message of the execution, be it a lexing, parsing or interpretation error.
- Returns
- The error message.
The documentation for this class was generated from the following file:
- D:/Code/csharp/ezrSquared/src/Executor/ExecutionResult.cs