Options
All
  • Public
  • Public/Protected
  • All
Menu

Class NoViableAltException

An exception of this type will be saved in {@link Parser.errors} when {@link Parser.OR} was called yet none of the possible alternatives could be matched.

Hierarchy

  • Error
    • NoViableAltException

Implements

Index

Constructors

constructor

Properties

context

previousToken

previousToken: IToken

resyncedTokens

resyncedTokens: IToken[]

Additional tokens which have been re-synced in error recovery due to the original error. This information can be used the calculate the whole text area which has been skipped due to an error. For example for displaying with a red underline in a text editor.

token

token: IToken

The token which caused the parser error.

Generated using TypeDoc