struct CLTK::Parser::ProdProc

Overview

A subclass of Proc that indicates how it should be passed arguments by the parser.

Defined in:

cltk/parser/prod_proc.cr
cltk/parser/prod_proc_debug.cr

Class Method Summary

Instance Method Summary

Macro Summary

Instance methods inherited from class Object

in?(collection : Array | Set) in?

Class Method Detail

def self.new(arg_type = :splat, selections = [] of Int32) #

[View source]
def self.new(arg_type = :splat, selections = [] of Int32, &block : Proc(Array(CLTK::Type), Environment, Symbol, Type)) #

[View source]

Instance Method Detail

def arg_type : Symbol #

@return [:array, :splat] Method that should be used to pass arguments to this proc.


[View source]
def call(args : Array(Type), env : Environment) #

[View source]
def crystalized_block : String? #

[View source]
def crystalized_block=(crystalized_block) #

[View source]
def selections : Array(Int32) #

@return [Array<Integer>] Mask for selection of tokens to pass to action. Empty mask means pass all.


[View source]

Macro Detail

macro new(*args) #

Keep Track of the String representation of this Procs Code Block for later serialization


[View source]