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
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 .