Skip to content

Token

[Source]

class val Token

Constructors

create

[Source]

new val create(
  label': Label val,
  source': Source val,
  offset': USize val,
  length': USize val)
: Token val^

Parameters

Returns


Public fields

let source: Source val

[Source]


let offset: USize val

[Source]


let length: USize val

[Source]


Public Functions

label

[Source]

fun box label()
: Label val

Returns


string

[Source]

fun box string()
: String iso^

Returns


substring

[Source]

fun box substring(
  from: ISize val,
  to: ISize val)
: String iso^

Parameters

Returns


offset_to_index

[Source]

fun box offset_to_index(
  i: ISize val)
: USize val

Parameters

Returns