TINMAN 3D / REALTIME TERRAIN
Software Development Kit - User Manual

class ParseResult in Tinman.Core.Parsing

Represents the result of a parsing process.

sealed class ParseResult  

Public / Attributes

Ast

The root AST node.

public readonly field Ast
type AstNode

Remarks:

Will be null if parsing has failed.

See also:

IsSuccess
IsFailure

CountLeftRecursion

Maximum depth of the left recursion detection stack.

public readonly field CountLeftRecursion
type int32

CountNonTerminal

The number of non-terminal rule invocations.

public readonly field CountNonTerminal
type int64

CountTerminal

The number of terminal rule invocations.

public readonly field CountTerminal
type int64

Errors

The syntax errors.

public readonly field Errors
type ValidateResult

See also:

IsSuccess
IsFailure

IsFailure

Has parsing failed?

public property IsFailure { get }
type bool
value true if parsing has failed, false if not.

See also:

Errors

IsSuccess

Has parsing succeeded?

public property IsSuccess { get }
type bool
value true if parsing has succeeded, false if not.

See also:

Ast

Public / Methods

ToString

public method ToString (string input, bool additionalInfo = true)
type string
params input
  additionalInfo

Validate

Validates that parsing has succeeded.

public method Validate ()