struct Ktistec::Token
- Ktistec::Token
- Struct
- Value
- Object
Overview
A token.
Defined in:
utils/lexer.crConstructors
-
.new(type : Type, value : String | Int64 | Float64 | Nil = nil)
Creates a new token.
Instance Method Summary
- #as_f
- #as_i
- #as_s
- #constant?
- #eoi?
- #error?
- #float?
- #identifier?
- #int?
- #operator?
- #string?
- #to_s(*args, **options)
- #to_s(*args, **options, &)
- #type : Ktistec::Token::Type
- #value : Float64 | Int64 | String | Nil
Constructor Detail
Creates a new token.