TokenType
Represents the different types of tokens that can be produced by the lexer.
Constructors
KwImport
KwImport
Import statement keyword
KwState
KwState
State declaration keyword
KwBeat
KwBeat
Beat declaration keyword
KwCharacter
KwCharacter
Character declaration keyword
KwChoice
KwChoice
Choice block keyword
KwIf
KwIf
If statement keyword
KwElse
KwElse
Else statement keyword
KwNew
KwNew
New state keyword
Function
Function(name: Null<String>, args: Array<String>, code: String, external: Bool)
Parameters:
| Name | Type |
|---|---|
name |
Null<String> |
args |
Array<String> |
code |
String |
external |
Bool |
Function code
LString
LString(quotes: loreline.Quotes, s: String, ?attachments: Array<Anonymous>)
Parameters:
| Name | Type |
|---|---|
quotes |
loreline.Quotes |
s |
String |
?attachments |
Array |
String literal with optional attachments
LNumber
LNumber(n: Float)
Parameters:
| Name | Type |
|---|---|
n |
Float |
Numeric literal
LBoolean
LBoolean(b: Bool)
Parameters:
| Name | Type |
|---|---|
b |
Bool |
Boolean literal
LNull
LNull
Null literal
Identifier
Identifier(name: String)
Parameters:
| Name | Type |
|---|---|
name |
String |
Identifier token
OpAssign
OpAssign
Assignment operator (=)
OpPlusAssign
OpPlusAssign
Plus-assignment operator (+=)
OpMinusAssign
OpMinusAssign
Minus-assignment operator (-=)
OpMultiplyAssign
OpMultiplyAssign
Multiply-assignment operator (*=)
OpDivideAssign
OpDivideAssign
Divide-assignment operator (/=)
OpPlus
OpPlus
Addition operator (+)
OpMinus
OpMinus
Subtraction operator (-)
OpMultiply
OpMultiply
Multiplication operator (*)
OpDivide
OpDivide
Division operator (/)
OpModulo
OpModulo
Modulo operator (%)
OpEquals
OpEquals
Equality operator (==)
OpNotEquals
OpNotEquals
Inequality operator (!=)
OpGreater
OpGreater
Greater than operator (>)
OpLess
OpLess
Less than operator (<)
OpGreaterEq
OpGreaterEq
Greater than or equal operator (>=)
OpLessEq
OpLessEq
Less than or equal operator (<=)
OpAnd
OpAnd(word: Bool)
Parameters:
| Name | Type |
|---|---|
word |
Bool |
Logical AND operator (&& / and)
OpOr
OpOr(word: Bool)
Parameters:
| Name | Type |
|---|---|
word |
Bool |
Logical OR operator (|| / or)
OpNot
OpNot
Logical NOT operator (!)
Arrow
Arrow
Transition arrow (->)
Colon
Colon
Colon (:)
Comma
Comma
Comma (,)
Dot
Dot
Dot (.)
LBrace
LBrace
Left brace ({)
RBrace
RBrace
Right brace (})
LParen
LParen
Left parenthesis (()
RParen
RParen
Right parenthesis ())
LBracket
LBracket
Left bracket ([)
RBracket
RBracket
Right bracket (])
CommentLine
CommentLine(content: String)
Parameters:
| Name | Type |
|---|---|
content |
String |
Single-line comment
CommentMultiLine
CommentMultiLine(content: String)
Parameters:
| Name | Type |
|---|---|
content |
String |
Multi-line comment
Indent
Indent
Increase indentation level
Unindent
Unindent
Decrease indentation level
LineBreak
LineBreak
Line break token
Eof
Eof
End of file token
Metadata
| Name | Parameters |
|---|---|
:hxGen |
- |
:using |
loreline.Lexer.TokenTypeHelpers |