enum class compiler::Token
sys::Obj sys::Enum compiler::Token
@Serializable { simple=true }
Token is the enum for all the token types.
- identifier
- strLiteral
- intLiteral
- floatLiteral
- decimalLiteral
- durationLiteral
- uriLiteral
- dsl
- localeLiteral
- dot
- semicolon
- comma
- colon
- doubleColon
- plus
- minus
- star
- slash
- percent
- pound
- increment
- decrement
- bang
- question
- tilde
- pipe
- amp
- caret
- at
- doublePipe
- doubleAmp
- same
- notSame
- eq
- notEq
- cmp
- lt
- ltEq
- gt
- gtEq
- lbrace
- rbrace
- lparen
- rparen
- lbracket
- rbracket
- dotDot
- dotDotLt
- defAssign
- assign
- assignPlus
- assignMinus
- assignStar
- assignSlash
- assignPercent
- arrow
- elvis
- safeDot
- safeArrow
- docComment
- dollar
- lparenSynthetic
- abstractKeyword
- asKeyword
- assertKeyword
- breakKeyword
- caseKeyword
- catchKeyword
- classKeyword
- constKeyword
- continueKeyword
- defaultKeyword
- doKeyword
- elseKeyword
- falseKeyword
- finalKeyword
- finallyKeyword
- forKeyword
- foreachKeyword
- ifKeyword
- internalKeyword
- isKeyword
- isnotKeyword
- itKeyword
- mixinKeyword
- nativeKeyword
- newKeyword
- nullKeyword
- onceKeyword
- overrideKeyword
- privateKeyword
- protectedKeyword
- publicKeyword
- readonlyKeyword
- returnKeyword
- staticKeyword
- superKeyword
- switchKeyword
- thisKeyword
- throwKeyword
- trueKeyword
- tryKeyword
- usingKeyword
- virtualKeyword
- volatileKeyword
- voidKeyword
- whileKeyword
- eof
- abstractKeyword
-
const static Token abstractKeyword := ...
- amp
-
const static Token amp := ...
- arrow
-
const static Token arrow := ...
- asKeyword
-
const static Token asKeyword := ...
- assertKeyword
-
const static Token assertKeyword := ...
- assign
-
const static Token assign := ...
- assignMinus
-
const static Token assignMinus := ...
- assignPercent
-
const static Token assignPercent := ...
- assignPlus
-
const static Token assignPlus := ...
- assignSlash
-
const static Token assignSlash := ...
- assignStar
-
const static Token assignStar := ...
- at
-
const static Token at := ...
- bang
-
const static Token bang := ...
- breakKeyword
-
const static Token breakKeyword := ...
- caret
-
const static Token caret := ...
- caseKeyword
-
const static Token caseKeyword := ...
- catchKeyword
-
const static Token catchKeyword := ...
- classKeyword
-
const static Token classKeyword := ...
- cmp
-
const static Token cmp := ...
- colon
-
const static Token colon := ...
- comma
-
const static Token comma := ...
- constKeyword
-
const static Token constKeyword := ...
- continueKeyword
-
const static Token continueKeyword := ...
- decimalLiteral
-
const static Token decimalLiteral := ...
- decrement
-
const static Token decrement := ...
- defAssign
-
const static Token defAssign := ...
- defaultKeyword
-
const static Token defaultKeyword := ...
- doKeyword
-
const static Token doKeyword := ...
- docComment
-
const static Token docComment := ...
- dollar
-
const static Token dollar := ...
- dot
-
const static Token dot := ...
- dotDot
-
const static Token dotDot := ...
- dotDotLt
-
const static Token dotDotLt := ...
- doubleAmp
-
const static Token doubleAmp := ...
- doubleColon
-
const static Token doubleColon := ...
- doublePipe
-
const static Token doublePipe := ...
- dsl
-
const static Token dsl := ...
- durationLiteral
-
const static Token durationLiteral := ...
- elseKeyword
-
const static Token elseKeyword := ...
- elvis
-
const static Token elvis := ...
- eof
-
const static Token eof := ...
- eq
-
const static Token eq := ...
- falseKeyword
-
const static Token falseKeyword := ...
- finalKeyword
-
const static Token finalKeyword := ...
- finallyKeyword
-
const static Token finallyKeyword := ...
- floatLiteral
-
const static Token floatLiteral := ...
- forKeyword
-
const static Token forKeyword := ...
- foreachKeyword
-
const static Token foreachKeyword := ...
- fromStr
-
static new fromStr(Str name, Bool checked := true)
Return the Token instance for the specified name. If not a valid name and checked is false return null, otherwise throw ParseErr.
- gt
-
const static Token gt := ...
- gtEq
-
const static Token gtEq := ...
- identifier
-
const static Token identifier := ...
- ifKeyword
-
const static Token ifKeyword := ...
- increment
-
const static Token increment := ...
- intLiteral
-
const static Token intLiteral := ...
- internalKeyword
-
const static Token internalKeyword := ...
- isAssign
-
const Bool isAssign
Is this an assignment token such as "=", etc "+=", etc
- isIncrementOrDecrement
-
Bool isIncrementOrDecrement()
Return if -- or ++
- isKeyword
-
const static Token isKeyword := ...
- isProtectionKeyword
-
Bool isProtectionKeyword()
Is one of: public, protected, internal, private
- isnotKeyword
-
const static Token isnotKeyword := ...
- itKeyword
-
const static Token itKeyword := ...
- keyword
-
const Bool keyword
Is this a keyword token such as "null"
- keywords
-
const static Str:Token keywords
Get a map of the keywords
- lbrace
-
const static Token lbrace := ...
- lbracket
-
const static Token lbracket := ...
- localeLiteral
-
const static Token localeLiteral := ...
- lparen
-
const static Token lparen := ...
- lparenSynthetic
-
const static Token lparenSynthetic := ...
- lt
-
const static Token lt := ...
- ltEq
-
const static Token ltEq := ...
- main
-
static Void main()
- minus
-
const static Token minus := ...
- mixinKeyword
-
const static Token mixinKeyword := ...
- nativeKeyword
-
const static Token nativeKeyword := ...
- newKeyword
-
const static Token newKeyword := ...
- notEq
-
const static Token notEq := ...
- notSame
-
const static Token notSame := ...
- nullKeyword
-
const static Token nullKeyword := ...
- onceKeyword
-
const static Token onceKeyword := ...
- overrideKeyword
-
const static Token overrideKeyword := ...
- percent
-
const static Token percent := ...
- pipe
-
const static Token pipe := ...
- plus
-
const static Token plus := ...
- pound
-
const static Token pound := ...
- privateKeyword
-
const static Token privateKeyword := ...
- protectedKeyword
-
const static Token protectedKeyword := ...
- publicKeyword
-
const static Token publicKeyword := ...
- question
-
const static Token question := ...
- rbrace
-
const static Token rbrace := ...
- rbracket
-
const static Token rbracket := ...
- readonlyKeyword
-
const static Token readonlyKeyword := ...
- returnKeyword
-
const static Token returnKeyword := ...
- rparen
-
const static Token rparen := ...
- safeArrow
-
const static Token safeArrow := ...
- safeDot
-
const static Token safeDot := ...
- same
-
const static Token same := ...
- semicolon
-
const static Token semicolon := ...
- slash
-
const static Token slash := ...
- star
-
const static Token star := ...
- staticKeyword
-
const static Token staticKeyword := ...
- strLiteral
-
const static Token strLiteral := ...
- superKeyword
-
const static Token superKeyword := ...
- switchKeyword
-
const static Token switchKeyword := ...
- symbol
-
const Str symbol
Get string used to display token to user in error messages
- thisKeyword
-
const static Token thisKeyword := ...
- throwKeyword
-
const static Token throwKeyword := ...
- tilde
-
const static Token tilde := ...
- toExprId
-
ExprId toExprId()
Get this Token as a ExprId or throw Err.
- toShortcutOp
-
ShortcutOp toShortcutOp(Int degree)
Map an operator token to it's shortcut operator enum. Degree is 1 for unary and 2 for binary.
- toStr
-
virtual override Str toStr()
- trueKeyword
-
const static Token trueKeyword := ...
- tryKeyword
-
const static Token tryKeyword := ...
- uriLiteral
-
const static Token uriLiteral := ...
- usingKeyword
-
const static Token usingKeyword := ...
- vals
-
const static Token[] vals := ...
List of Token values indexed by ordinal
- virtualKeyword
-
const static Token virtualKeyword := ...
- voidKeyword
-
const static Token voidKeyword := ...
- volatileKeyword
-
const static Token volatileKeyword := ...
- whileKeyword
-
const static Token whileKeyword := ...