The type of the object that is returned as the result of parsing done by the Parser.
More...
|
| void | Success (Node node) |
| | Sets Node as the result of successful parsing.
|
| |
| void | Failure (int priority, SyntaxError error) |
| | Sets Error as the result of failed parsing.
|
| |
|
|
SyntaxError? | Error = null |
| | The SyntaxError that occurred while parsing, if any.
|
| |
|
Node | Node = InvalidNode.s_invalidNode |
| | The Runtime.Nodes.Node which is the result of the parsing.
|
| |
|
int | AdvanceCount = 0 |
| | The amount of times the Parser advanced.
|
| |
|
|
int | _errorPriority = 0 |
| | The priority of the error held in the ParseResult.
|
| |
The type of the object that is returned as the result of parsing done by the Parser.
◆ Failure()
| void EzrSquared.Syntax.ParseResult.Failure |
( |
int | priority, |
|
|
SyntaxError | error ) |
Sets Error as the result of failed parsing.
If priority is greater than or equal to the _errorPriority then error will override Error.
- Parameters
-
| priority | The priority/fatality of the failure. |
| error | The SyntaxError that occurred in parsing. |
- Returns
- The same ParseResult object.
◆ Success()
| void EzrSquared.Syntax.ParseResult.Success |
( |
Node | node | ) |
|
Sets Node as the result of successful parsing.
- Parameters
-
- Returns
- The same ParseResult object.
The documentation for this class was generated from the following file:
- D:/Code/csharp/ezrSquared/src/Syntax/Parser/ParseResult.cs