toggle menu
metis-lang
jvm
switch theme
search in API
metis-lang
/
io.github.seggan.metis.parsing
/
Token
Token
data
class
Token
(
val
type
:
Token.Type
,
val
text
:
String
,
val
span
:
Span
)
Represents a token.
Members
Constructors
Token
Link copied to clipboard
constructor
(
type
:
Token.Type
,
text
:
String
,
span
:
Span
)
Types
Type
Link copied to clipboard
enum
Type
:
Enum
<
Token.Type
>
Properties
span
Link copied to clipboard
val
span
:
Span
The
Span
of the token.
text
Link copied to clipboard
val
text
:
String
The text of the token.
type
Link copied to clipboard
val
type
:
Token.Type
The type of the token.