kgraphql
/
com.apurebase.kgraphql.request
/
Lexer
Lexer
data class
Lexer
(source:
Source
, options:
Any
?, lastToken:
Token
, token:
Token
, line:
Int
, lineStart:
Int
)
Content copied to clipboard
Constructors
Functions
Properties
Constructors
Lexer
Link copied to clipboard
fun
Lexer
(source:
String
)
Content copied to clipboard
Functions
advance
Link copied to clipboard
fun
advance
():
Token
Content copied to clipboard
Advances the token stream to the next non-ignored token.
lookahead
Link copied to clipboard
fun
lookahead
():
Token
Content copied to clipboard
Looks ahead and returns the next non-ignored token, but does not change the Lexer's state.
Properties
lastToken
Link copied to clipboard
var
lastToken
:
Token
Content copied to clipboard
The previously focused non-ignored token.
line
Link copied to clipboard
var
line
:
Int
= 1
Content copied to clipboard
The (1-indexed) line containing the current token.
lineStart
Link copied to clipboard
var
lineStart
:
Int
= 0
Content copied to clipboard
The character offset at which the current line begins.
options
Link copied to clipboard
val
options
:
Any
? = null
Content copied to clipboard
source
Link copied to clipboard
val
source
:
Source
Content copied to clipboard
token
Link copied to clipboard
var
token
:
Token
Content copied to clipboard
The currently focused non-ignored token.