alchemist
alchemist
/
it.unibo.alchemist.expressions.parser
/
Token
Token
open
class
Token
:
Serializable
Content copied to clipboard
Describes the input token stream.
Constructors
Functions
Properties
Constructors
Token
Link copied to clipboard
open
fun
Token
(
)
Content copied to clipboard
No-argument constructor
Token
Link copied to clipboard
open
fun
Token
(
kind
:
Int
)
Content copied to clipboard
Constructs a new token for the specified Image.
Token
Link copied to clipboard
open
fun
Token
(
kind
:
Int
,
image
:
String
)
Content copied to clipboard
Constructs a new token for the specified Image and Kind.
Functions
get
Value
Link copied to clipboard
open
fun
getValue
(
)
:
Any
Content copied to clipboard
An optional attribute value of the Token.
new
Token
Link copied to clipboard
open
fun
newToken
(
ofKind
:
Int
)
:
Token
Content copied to clipboard
open
fun
newToken
(
ofKind
:
Int
,
image
:
String
)
:
Token
Content copied to clipboard
Returns a new Token object, by default.
to
String
Link copied to clipboard
open
fun
toString
(
)
:
String
Content copied to clipboard
Returns the image.
Properties
beginColumn
Link copied to clipboard
open
val
beginColumn
:
Int
Content copied to clipboard
The column number of the first character of this Token.
beginLine
Link copied to clipboard
open
val
beginLine
:
Int
Content copied to clipboard
The line number of the first character of this Token.
endColumn
Link copied to clipboard
open
val
endColumn
:
Int
Content copied to clipboard
The column number of the last character of this Token.
endLine
Link copied to clipboard
open
val
endLine
:
Int
Content copied to clipboard
The line number of the last character of this Token.
image
Link copied to clipboard
open
val
image
:
String
Content copied to clipboard
The string image of the token.
kind
Link copied to clipboard
open
val
kind
:
Int
Content copied to clipboard
An integer that describes the kind of this token.
next
Link copied to clipboard
open
val
next
:
Token
Content copied to clipboard
A reference to the next regular (non-special) token from the input stream.
specialToken
Link copied to clipboard
open
val
specialToken
:
Token
Content copied to clipboard
This field is used to access special tokens that occur prior to this token, but after the immediately preceding regular (non-special) token.