A specialization of GError for the use of the Gobstones parser.

Hierarchy (view full)

Constructors

Properties

Accessors

Constructors

  • The constructor for Gobstones Parser errors.

    Parameters

    • tokenFound: Token

      The token found in the SourceInput when the error was discovered.

    • key: string

      A string indicating where to locate the concrete error message. Its value is expected to be one of the error fields corresponding to the field Parser.error of the the translator | Locale of the component.

    • Optional interpolations: Record<string, any>

      A record indicating values for interpolations used in the value associated with the key given. Its value is expected to match with the arguments of the corresponding key in the translator | Locale of the component. It may be undefined if there are none, in which case the empty record is used.

    Returns ParserGError

Properties

_tokenFound: Token

The token that was found when expecting another one.

Accessors

  • get token(): Token
  • The token that was found when expecting another one.

    Returns Token