This enum is for literal value tokens that require special handling by the parser
The type of a token.
Returns true if the token is an assignment operator such as =, +=, or -=, etc.
Checks for a specific identifier
Returns true if a token is both a keyword and a specific keyword.
Returns a textual representation of the token as it was found in the original script source code.
Returns a string representing the type of the token and the optional text if present.
Used by the parser and compiler
Generates an invalid token at the given position. This is used by the Lexer to throw an exception that requires a token.
Optional flag for integer literals.
Position where token occurs
Optional text for keywords and identifiers
Type of token
This struct represents a token, a fundamental building block of all scripts. The code of a script is first separated by token so that the parser can analyze each token.