Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

Implements

Index

Constructors

constructor

  • This class is never meant to be initialized. The class hierarchy is used to organize Token metadata, not to create instances of Tokens. Tokens are simple JavaScript objects which are NOT created using the operator. To get the class of a Token "instance" use .

    Returns Token

Properties

Optional endColumn

endColumn: number

Optional endLine

endLine: number

Optional endOffset

endOffset: number

image

image: string

Optional isInsertedInRecovery

isInsertedInRecovery: boolean

Optional startColumn

startColumn: number

Optional startLine

startLine: number

startOffset

startOffset: number

Static LABEL

LABEL: string

A "human readable" Label for a Token. Subclasses of Token may define their own static LABEL property. This label will be used in error messages and drawing syntax diagrams.

For example a Token constructor may be called LCurly, which is short for LeftCurlyBrackets, These names are either too short or too unwieldy to be used in error messages.

Imagine : "expecting LCurly but found ')'" or "expecting LeftCurlyBrackets but found ')'"

However if a static property LABEL with the value '{' exists on LCurly class, that error message will be: "expecting '{' but found ')'"

Generated using TypeDoc