SyntaxError

Description

static class Tinman.Core.Parsing.SyntaxError

Helper class for creating ValidateMessage objects that represent syntax errors.

See also

SemanticError

Public / Constructors

Mismatched​Rule

2 overloads


public static method MismatchedRule1 → (2)

inputPosition in : int32

Input position of the syntax error.

rule in : string

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

returns → ValidateMessage

The error object.

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


public static method MismatchedRule2 → (3)

inputPosition in : int32

Input position of the syntax error.

rule in : string

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

tokens in : string [ ]

The expected tokens at the input position.

returns → ValidateMessage

The error object.

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