tartar
/
com.github.adriantodt.tartar.api.parser
/
Token
common
Token
data class
Token
<
T
>(type:
T
, value:
String
, section:
Section
) :
Sectional
Content copied to clipboard
A
Parser
token.
Author
An Tran
Constructors
Functions
Properties
Parameters
Parameters
T
The type of the token.
type
The type of the token.
value
The value of this token.
section
The section of this token.
Constructors
Token
Link copied to clipboard
common
fun <
T
>
Token
(type:
T
, value:
String
, section:
Section
)
Content copied to clipboard
The type of the token.
Functions
span
Link copied to clipboard
common
open fun
span
(other:
Sectional
):
Section
Content copied to clipboard
Creates a section which spans across this and another section.
toString
Link copied to clipboard
common
open override fun
toString
():
String
Content copied to clipboard
Returns a string representation of the token.
Properties
section
Link copied to clipboard
common
open override val
section
:
Section
Content copied to clipboard
The section of this token.
type
Link copied to clipboard
common
val
type
:
T
Content copied to clipboard
The type of the token.
value
Link copied to clipboard
common
val
value
:
String
Content copied to clipboard
The value of this token.