struct Ktistec::Token

Overview

A token.

Defined in:

utils/lexer.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(type : Type, value : String | Int64 | Float64 | Nil = nil) #

Creates a new token.


[View source]

Instance Method Detail

def as_f #

[View source]
def as_i #

[View source]
def as_s #

[View source]
def constant? #

[View source]
def eoi? #

[View source]
def error? #

[View source]
def float? #

[View source]
def identifier? #

[View source]
def int? #

[View source]
def operator? #

[View source]
def string? #

[View source]
def to_s(*args, **options) #

[View source]
def to_s(*args, **options, &) #

[View source]
def type : Ktistec::Token::Type #

[View source]
def value : Float64 | Int64 | String | Nil #

[View source]