Enum TokenKind
Namespace: OceanApocalypse.RSML.Language.Lexing.Tokens
Assembly: RSML.Language.Lexing.dll
Represents a specific kind of token.
public enum TokenKind
Fields
Unknown = 0
An unknown token kind.
Eof = 1
The EOF token kind. Represents the end of a source.
Identifier = 2
The name of a variable, constant, function or type.
Number = 3
A numeric literal.
StringLiteral = 4
A string literal.
SystemConstant = 5
A built-in constant.
Return = 6
The return keyword. Stops execution of the current scope with a given value.
If = 7
The if keyword. Conditionalizes a statement into running only if the condition is met.
Requires = 8
The requires keyword. Indicates extensions the file depends on.
End = 9
The end keyword. Ends the file.
PreviousModifier = 10
The previous keyword. Modifies end into closing the previous region instead.
Region = 11
The region keyword. Creates a conditionalized region.
Let = 12
The let keyword. Declares and assigns a constant.
MutableModifier = 13
The mut keyword. Modifies let into creating a variable instead.
FunctionModifier = 14
The fn keyword. Modifies let into creating a function instead.
Type = 15
The type keyword. Creates a type.
As = 16
The as keyword.
Struct = 17
The struct keyword. Used with type and as to create a struct type.
Assignment = 18
The assignment operator (=).
Equality = 19
The equality operator (==).
Inequality = 20
The inequality operator (!=).
GreaterThan = 21
The greater-than operator (>).
LessThan = 22
The less-than operator (<).
GreaterThanOrEqualTo = 23
The greater-than-or-equal-to operator (>=).
LessThanOrEqualTo = 24
The less-than-or-equal-to operator (<=).
Colon = 25
The colon (:).
Comma = 26
The comma (,).
Semicolon = 27
The semicolon (;).
Plus = 28
The plus sign, used for sum (+).
Minus = 29
The hyphen (minus sign), used for subtraction (-).
Star = 30
The star, used for multiplication (*).
Slash = 31
The slash used for division (/).
OpenBrace = 32
The open brace ({).
CloseBrace = 33
The closed brace (}).
OpenParenthesis = 34
The open parenthesis.
CloseParenthesis = 35
The closed parenthesis.