Represents the result of a parsing process.
sealed class
|
ParseResult
|
The root AST node.
public
readonly
field
|
Ast
|
||
type
|
AstNode
|
Remarks:
Will
be
null
if
parsing
has
failed.
See also:
IsSuccessMaximum depth of the left recursion detection stack.
public
readonly
field
|
CountLeftRecursion
|
||
type
|
int32
|
The number of non-terminal rule invocations.
public
readonly
field
|
CountNonTerminal
|
||
type
|
int64
|
The number of terminal rule invocations.
public
readonly
field
|
CountTerminal
|
||
type
|
int64
|
The syntax errors.
public
readonly
field
|
Errors
|
||
type
|
ValidateResult
|
See also:
IsSuccessHas parsing failed?
public
property
|
IsFailure
{
get
}
|
||
type
|
bool
|
||
value
|
true
if
parsing
has
failed,
false
if
not. |
See also:
ErrorsHas parsing succeeded?
public
property
|
IsSuccess
{
get
}
|
||
type
|
bool
|
||
value
|
true
if
parsing
has
succeeded,
false
if
not. |
See also:
Ast
public
method
|
ToString
(string input,
bool additionalInfo = true)
|
||
type
|
string
|
||
params
|
input
|
||
additionalInfo
|
Validates that parsing has succeeded.
public
method
|
Validate
()
|