SyntaxError

Description

sealed class Tinman.Core.Parsing.SyntaxError

Derived from

ParsingError abstract

Describes a syntax error at a specific input position.

A syntax error occurs if a grammar rule cannot be matched.

Public / Methods

Mismatched​Rule


public static method MismatchedRule → (2)

inputPosition in : int32

Input position of syntax error.

rule in : string

[not-null]
The grammar rule that has mismatched.

returns → SyntaxError

The error object.

A grammar rule cannot be matched, leading to a syntax error.

Public / Attributes

Expected​Tokens


public readonly attribute ExpectedTokens → (IVectorConst<string>)

The string tokens that the parser was expecting at the start of ICodeRange.Range.

If no information about expected string tokens is available, this list will be null.

Grammar​Rule


public readonly attribute GrammarRule → (string)

The grammar rule that contains the rule that has mismatched.

See also

Grammar.GetRule2