struct CrystalRobots::Compiler::Parser::TokenDef

Defined in:

compiler/parser.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(v : Array(Tuple(String, Type)) | Nil, s : String, h : Hash(String, Type), r : Regex | Nil) #

def self.new(type : Type, values : Array(String)) #

All tokens are the same type, so copy to each


def self.new(values : Array(Tuple(String, Type))) #

def self.new(t : Nil) #

Instance Method Detail

def h : Hash(String, CrystalRobots::Compiler::Type) #

def h=(h : Hash(String, CrystalRobots::Compiler::Type)) #

def r : Regex? #

def r=(r : Nil | Regex) #

def s : String #

def s=(s : String) #

def v : Array({String, CrystalRobots::Compiler::Type})? #

def v=(v : Nil | Array(Tuple(String, CrystalRobots::Compiler::Type))) #