Token is the enum for all the token types.
Slots
- abstractKeyword
-
static const Token abstractKeyword
- amp
-
static const Token amp
- arrow
-
static const Token arrow
- asKeyword
-
static const Token asKeyword
- assertKeyword
-
static const Token assertKeyword
- assign
-
static const Token assign
- assignAmp
-
static const Token assignAmp
- assignCaret
-
static const Token assignCaret
- assignLshift
-
static const Token assignLshift
- assignMinus
-
static const Token assignMinus
- assignPercent
-
static const Token assignPercent
- assignPipe
-
static const Token assignPipe
- assignPlus
-
static const Token assignPlus
- assignRshift
-
static const Token assignRshift
- assignSlash
-
static const Token assignSlash
- assignStar
-
static const Token assignStar
- at
-
static const Token at
- bang
-
static const Token bang
- booleanKeyword
-
static const Token booleanKeyword
- breakKeyword
-
static const Token breakKeyword
- caret
-
static const Token caret
- caseKeyword
-
static const Token caseKeyword
- catchKeyword
-
static const Token catchKeyword
- classKeyword
-
static const Token classKeyword
- cmp
-
static const Token cmp
- colon
-
static const Token colon
- comma
-
static const Token comma
- constKeyword
-
static const Token constKeyword
- continueKeyword
-
static const Token continueKeyword
- decrement
-
static const Token decrement
- defAssign
-
static const Token defAssign
- defaultKeyword
-
static const Token defaultKeyword
- delegateKeyword
-
static const Token delegateKeyword
- doKeyword
-
static const Token doKeyword
- docComment
-
static const Token docComment
- dot
-
static const Token dot
- dotDot
-
static const Token dotDot
- dotDotDot
-
static const Token dotDotDot
- doubleAmp
-
static const Token doubleAmp
- doubleColon
-
static const Token doubleColon
- doublePipe
-
static const Token doublePipe
- durationLiteral
-
static const Token durationLiteral
- elseKeyword
-
static const Token elseKeyword
- enumKeyword
-
static const Token enumKeyword
- eof
-
static const Token eof
- eq
-
static const Token eq
- eventKeyword
-
static const Token eventKeyword
- explicitKeyword
-
static const Token explicitKeyword
- externKeyword
-
static const Token externKeyword
- falseKeyword
-
static const Token falseKeyword
- finalKeyword
-
static const Token finalKeyword
- finallyKeyword
-
static const Token finallyKeyword
- fixedKeyword
-
static const Token fixedKeyword
- floatLiteral
-
static const Token floatLiteral
- forKeyword
-
static const Token forKeyword
- foreachKeyword
-
static const Token foreachKeyword
- fromStr
-
static const Token fromStr(Str name, Bool checked := def)
Return the Token instance for the specified name. If not a valid name and checked is false return null, otherwise throw ParseErr.
- gotoKeyword
-
static const Token gotoKeyword
- gt
-
static const Token gt
- gtEq
-
static const Token gtEq
- identifier
-
static const Token identifier
- ifKeyword
-
static const Token ifKeyword
- implementsKeyword
-
static const Token implementsKeyword
- implicitKeyword
-
static const Token implicitKeyword
- increment
-
static const Token increment
- instanceofKeyword
-
static const Token instanceofKeyword
- intLiteral
-
static const Token intLiteral
- interfaceKeyword
-
static const Token interfaceKeyword
- internalKeyword
-
static const Token internalKeyword
- isAssign
-
const Bool isAssign
Is this an assignment token such as "=", etc "+=", etc
- isKeyword
-
static const Token isKeyword
- keyword
-
const Bool keyword
Is this a keyword token such as "null"
- keywords
-
static const Str:Token keywords
Get a map of the keywords
- lbrace
-
static const Token lbrace
- lbracket
-
static const Token lbracket
- lockKeyword
-
static const Token lockKeyword
- lparen
-
static const Token lparen
- lshift
-
static const Token lshift
- lt
-
static const Token lt
- ltEq
-
static const Token ltEq
- main
-
static const Void main()
-
new make(Int $ordinal, Str $name, Str symbol := def)
Construct with symbol str, or null symbol for keyword.
- minus
-
static const Token minus
- mixinKeyword
-
static const Token mixinKeyword
- nativeKeyword
-
static const Token nativeKeyword
- newKeyword
-
static const Token newKeyword
- notEq
-
static const Token notEq
- notSame
-
static const Token notSame
- nullKeyword
-
static const Token nullKeyword
- objectKeyword
-
static const Token objectKeyword
- operatorKeyword
-
static const Token operatorKeyword
- overrideKeyword
-
static const Token overrideKeyword
- packageKeyword
-
static const Token packageKeyword
- percent
-
static const Token percent
- pipe
-
static const Token pipe
- plus
-
static const Token plus
- pound
-
static const Token pound
- privateKeyword
-
static const Token privateKeyword
- protectedKeyword
-
static const Token protectedKeyword
- publicKeyword
-
static const Token publicKeyword
- question
-
static const Token question
- rbrace
-
static const Token rbrace
- rbracket
-
static const Token rbracket
- readonlyKeyword
-
static const Token readonlyKeyword
- refKeyword
-
static const Token refKeyword
- returnKeyword
-
static const Token returnKeyword
- rparen
-
static const Token rparen
- rshift
-
static const Token rshift
- same
-
static const Token same
- sealedKeyword
-
static const Token sealedKeyword
- semicolon
-
static const Token semicolon
- sizeofKeyword
-
static const Token sizeofKeyword
- slash
-
static const Token slash
- stackallocKeyword
-
static const Token stackallocKeyword
- star
-
static const Token star
- staticKeyword
-
static const Token staticKeyword
- strLiteral
-
static const Token strLiteral
- strictfpKeyword
-
static const Token strictfpKeyword
- structKeyword
-
static const Token structKeyword
- superKeyword
-
static const Token superKeyword
- switchKeyword
-
static const Token switchKeyword
- symbol
-
const Str symbol
Get string used to display token to user in error messages
- synchronizedKeyword
-
static const Token synchronizedKeyword
- thisKeyword
-
static const Token thisKeyword
- throwKeyword
-
static const Token throwKeyword
- throwsKeyword
-
static const Token throwsKeyword
- tilde
-
static const Token tilde
- toExprId
-
ExprId toExprId()
Get this Token as a ExprId or throw Err.
- toShortcutOp
-
ShortcutOp toShortcutOp(Int degree)
- transientKeyword
-
static const Token transientKeyword
- trueKeyword
-
static const Token trueKeyword
- tryKeyword
-
static const Token tryKeyword
- typeofKeyword
-
static const Token typeofKeyword
- uncheckedKeyword
-
static const Token uncheckedKeyword
- unsafeKeyword
-
static const Token unsafeKeyword
- uriLiteral
-
static const Token uriLiteral
- usingKeyword
-
static const Token usingKeyword
- values
-
static const Token[] values
List of Token values indexed by ordinal
- virtualKeyword
-
static const Token virtualKeyword
- voidKeyword
-
static const Token voidKeyword
- volatileKeyword
-
static const Token volatileKeyword
- whileKeyword
-
static const Token whileKeyword
More Info
Slots
- abstractKeyword
- amp
- arrow
- asKeyword
- assertKeyword
- assign
- assignAmp
- assignCaret
- assignLshift
- assignMinus
- assignPercent
- assignPipe
- assignPlus
- assignRshift
- assignSlash
- assignStar
- at
- bang
- booleanKeyword
- breakKeyword
- caret
- caseKeyword
- catchKeyword
- classKeyword
- cmp
- colon
- comma
- constKeyword
- continueKeyword
- decrement
- defAssign
- defaultKeyword
- delegateKeyword
- doKeyword
- docComment
- dot
- dotDot
- dotDotDot
- doubleAmp
- doubleColon
- doublePipe
- durationLiteral
- elseKeyword
- enumKeyword
- eof
- eq
- eventKeyword
- explicitKeyword
- externKeyword
- falseKeyword
- finalKeyword
- finallyKeyword
- fixedKeyword
- floatLiteral
- forKeyword
- foreachKeyword
- fromStr
- gotoKeyword
- gt
- gtEq
- identifier
- ifKeyword
- implementsKeyword
- implicitKeyword
- increment
- instanceofKeyword
- intLiteral
- interfaceKeyword
- internalKeyword
- isAssign
- isKeyword
- keyword
- keywords
- lbrace
- lbracket
- lockKeyword
- lparen
- lshift
- lt
- ltEq
- main
- make
- minus
- mixinKeyword
- nativeKeyword
- newKeyword
- notEq
- notSame
- nullKeyword
- objectKeyword
- operatorKeyword
- overrideKeyword
- packageKeyword
- percent
- pipe
- plus
- pound
- privateKeyword
- protectedKeyword
- publicKeyword
- question
- rbrace
- rbracket
- readonlyKeyword
- refKeyword
- returnKeyword
- rparen
- rshift
- same
- sealedKeyword
- semicolon
- sizeofKeyword
- slash
- stackallocKeyword
- star
- staticKeyword
- strLiteral
- strictfpKeyword
- structKeyword
- superKeyword
- switchKeyword
- symbol
- synchronizedKeyword
- thisKeyword
- throwKeyword
- throwsKeyword
- tilde
- toExprId
- toShortcutOp
- transientKeyword
- trueKeyword
- tryKeyword
- typeofKeyword
- uncheckedKeyword
- unsafeKeyword
- uriLiteral
- usingKeyword
- values
- virtualKeyword
- voidKeyword
- volatileKeyword
- whileKeyword