@Serializable {
simple=true
collection=false
}
Token is the enum for all the token types.
- identifier
- Str literal
- Int literal
- Float literal
- Decimal literal
- Duration literal
- Uri literal
- DSL
- .
- ;
- ,
- :
- ::
- +
- -
- *
- /
- %
- #
- ++
- --
- !
- ?
- ~
- |
- &
- ^
- @
- ||
- &&
- ===
- !==
- ==
- !=
- <=>
- <
- <=
- >
- >=
- {
- }
- (
- )
- [
- ]
- ..
- ..<
- :=
- =
- +=
- -=
- *=
- /=
- %=
- ->
- ?:
- ?.
- ?->
- **
- $
- (
- abstract
- as
- assert
- break
- case
- catch
- class
- const
- continue
- default
- do
- else
- false
- final
- finally
- for
- foreach
- if
- internal
- is
- isnot
- it
- mixin
- native
- new
- null
- once
- override
- private
- protected
- public
- readonly
- return
- static
- super
- switch
- this
- throw
- true
- try
- using
- virtual
- volatile
- void
- while
- eof
Slots
- abstractKeywordSource
-
const static Token abstractKeyword
- ampSource
-
const static Token amp
- arrowSource
-
const static Token arrow
- asKeywordSource
-
const static Token asKeyword
- assertKeywordSource
-
const static Token assertKeyword
- assignSource
-
const static Token assign
- assignMinusSource
-
const static Token assignMinus
- assignPercentSource
-
const static Token assignPercent
- assignPlusSource
-
const static Token assignPlus
- assignSlashSource
-
const static Token assignSlash
- assignStarSource
-
const static Token assignStar
- atSource
-
const static Token at
- bangSource
-
const static Token bang
- breakKeywordSource
-
const static Token breakKeyword
- caretSource
-
const static Token caret
- caseKeywordSource
-
const static Token caseKeyword
- catchKeywordSource
-
const static Token catchKeyword
- classKeywordSource
-
const static Token classKeyword
- cmpSource
-
const static Token cmp
- colonSource
-
const static Token colon
- commaSource
-
const static Token comma
- constKeywordSource
-
const static Token constKeyword
- continueKeywordSource
-
const static Token continueKeyword
- decimalLiteralSource
-
const static Token decimalLiteral
- decrementSource
-
const static Token decrement
- defAssignSource
-
const static Token defAssign
- defaultKeywordSource
-
const static Token defaultKeyword
- doKeywordSource
-
const static Token doKeyword
- docCommentSource
-
const static Token docComment
- dollarSource
-
const static Token dollar
- dotSource
-
const static Token dot
- dotDotSource
-
const static Token dotDot
- dotDotLtSource
-
const static Token dotDotLt
- doubleAmpSource
-
const static Token doubleAmp
- doubleColonSource
-
const static Token doubleColon
- doublePipeSource
-
const static Token doublePipe
- dslSource
-
const static Token dsl
- durationLiteralSource
-
const static Token durationLiteral
- elseKeywordSource
-
const static Token elseKeyword
- elvisSource
-
const static Token elvis
- eofSource
-
const static Token eof
- eqSource
-
const static Token eq
- falseKeywordSource
-
const static Token falseKeyword
- finalKeywordSource
-
const static Token finalKeyword
- finallyKeywordSource
-
const static Token finallyKeyword
- floatLiteralSource
-
const static Token floatLiteral
- forKeywordSource
-
const static Token forKeyword
- foreachKeywordSource
-
const static Token foreachKeyword
- fromStrSource
-
static Token? 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.
- gtSource
-
const static Token gt
- gtEqSource
-
const static Token gtEq
- identifierSource
-
const static Token identifier
- ifKeywordSource
-
const static Token ifKeyword
- incrementSource
-
const static Token increment
- intLiteralSource
-
const static Token intLiteral
- internalKeywordSource
-
const static Token internalKeyword
- isAssignSource
-
const Bool isAssign
Is this an assignment token such as "=", etc "+=", etc
- isIncrementOrDecrementSource
-
Bool isIncrementOrDecrement()
Return if -- or ++
- isKeywordSource
-
const static Token isKeyword
- isProtectionKeywordSource
-
Bool isProtectionKeyword()
Is one of: public, protected, internal, private
- isnotKeywordSource
-
const static Token isnotKeyword
- itKeywordSource
-
const static Token itKeyword
- keywordSource
-
const Bool keyword
Is this a keyword token such as "null"
- keywordsSource
-
const static Str:Token keywords
Get a map of the keywords
- lbraceSource
-
const static Token lbrace
- lbracketSource
-
const static Token lbracket
- lparenSource
-
const static Token lparen
- lparenSyntheticSource
-
const static Token lparenSynthetic
- ltSource
-
const static Token lt
- ltEqSource
-
const static Token ltEq
- mainSource
-
static Void main()
-
new make(Int $ordinal, Str $name, Str? symbol := null)
Construct with symbol str, or null symbol for keyword.
- minusSource
-
const static Token minus
- mixinKeywordSource
-
const static Token mixinKeyword
- nativeKeywordSource
-
const static Token nativeKeyword
- newKeywordSource
-
const static Token newKeyword
- notEqSource
-
const static Token notEq
- notSameSource
-
const static Token notSame
- nullKeywordSource
-
const static Token nullKeyword
- onceKeywordSource
-
const static Token onceKeyword
- overrideKeywordSource
-
const static Token overrideKeyword
- percentSource
-
const static Token percent
- pipeSource
-
const static Token pipe
- plusSource
-
const static Token plus
- poundSource
-
const static Token pound
- privateKeywordSource
-
const static Token privateKeyword
- protectedKeywordSource
-
const static Token protectedKeyword
- publicKeywordSource
-
const static Token publicKeyword
- questionSource
-
const static Token question
- rbraceSource
-
const static Token rbrace
- rbracketSource
-
const static Token rbracket
- readonlyKeywordSource
-
const static Token readonlyKeyword
- returnKeywordSource
-
const static Token returnKeyword
- rparenSource
-
const static Token rparen
- safeArrowSource
-
const static Token safeArrow
- safeDotSource
-
const static Token safeDot
- sameSource
-
const static Token same
- semicolonSource
-
const static Token semicolon
- slashSource
-
const static Token slash
- starSource
-
const static Token star
- staticKeywordSource
-
const static Token staticKeyword
- strLiteralSource
-
const static Token strLiteral
- superKeywordSource
-
const static Token superKeyword
- switchKeywordSource
-
const static Token switchKeyword
- symbolSource
-
const Str symbol
Get string used to display token to user in error messages
- thisKeywordSource
-
const static Token thisKeyword
- throwKeywordSource
-
const static Token throwKeyword
- tildeSource
-
const static Token tilde
- toExprIdSource
-
ExprId toExprId()
Get this Token as a ExprId or throw Err.
- toShortcutOpSource
-
ShortcutOp toShortcutOp(Int degree)
Map an operator token to it's shortcut operator enum. Degree is 1 for unary and 2 for binary.
- toStrSource
-
override Str toStr()
Overrides sys::Enum.toStr
Doc inherited from sys::Enum.toStr
Always returns name().
- trueKeywordSource
-
const static Token trueKeyword
- tryKeywordSource
-
const static Token tryKeyword
- uriLiteralSource
-
const static Token uriLiteral
- usingKeywordSource
-
const static Token usingKeyword
- valsSource
-
const static Token[] vals := ...
List of Token values indexed by ordinal
- virtualKeywordSource
-
const static Token virtualKeyword
- voidKeywordSource
-
const static Token voidKeyword
- volatileKeywordSource
-
const static Token volatileKeyword
- whileKeywordSource
-
const static Token whileKeyword