struct Hollicode::Token

Overview

Token struct

Defined in:

core/scanner.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(type : Hollicode::TokenType = TokenType::Undefined, lexeme : String = "", line : Int32 = 0) #

[View source]

Instance Method Detail

def clone #

[View source]
def copy_with(type _type = @type, lexeme _lexeme = @lexeme, line _line = @line) #

[View source]
def lexeme : String #

def line : Int32 #

def type : Hollicode::TokenType #