struct Fexpr::Token

Overview

Represents a single token in the input stream with its type and literal value.

Defined in:

fexpr/scanner.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(type : TokenType, literal : String) #

[View source]

Instance Method Detail

def literal : String #

[View source]
def literal=(literal : String) #

[View source]
def type : TokenType #

[View source]
def type=(type : TokenType) #

[View source]