GrammarRuleFlags

Description

[Flags]
enum Tinman.Core.Parsing.GrammarRuleFlags

Enumeration of behaviour flags of grammar rules.

See also

IGrammarRule

Public / Constants

None

public constant None → (0:int32)

No flags.

ReportErrorRoot

public constant ReportErrorRoot → (1:int32)

The top-most grammar rule on the current grammar rule stack (i.e. the inner-most rule in the current parsing context) with this flag set will be used during error reporting.

ReportErrorTerminal

public constant ReportErrorTerminal → (2:int32)

The grammar rule is treated as a terminal rule during error reporting.

ReportErrorMask

public constant ReportErrorMask → (3:int32)

Bitmask of all error reporting flags.

NotReferenced

public constant NotReferenced → (4:int32)

The grammar rule is not referenced by other grammar rules and it is not the default rule and not the special skip rule (#).

All

public constant All → (7:int32)

All flags.