struct CLTK::Parser::ProdProc
- CLTK::Parser::ProdProc
- Struct
- Value
- Object
Overview
A subclass of Proc that indicates how it should be passed arguments by the parser.
Defined in:
cltk/parser/prod_proc.crcltk/parser/tupelize.cr
Constructors
- .new(arg_type : Symbol = :splat, selections : Array(Int32) = [] of Int32)
- .new(arg_type : Symbol = :splat, selections : Array(Int32) = [] of Int32, &block : Proc(Array(CLTK::Type), Environment, Symbol, Type))
Instance Method Summary
-
#arg_type : Symbol
@return [:array, :splat] Method that should be used to pass arguments to this proc.
- #call(args : Array(Type), env : Environment)
- #crystalized_block : String?
- #crystalized_block=(crystalized_block : Nil | String)
-
#selections : Array(Int32)
@return [Array
] Mask for selection of tokens to pass to action.
Macro Summary
-
new(*args, &block)
Keep Track of the String representation of this Procs Code Block for later serialization
Instance methods inherited from class Object
in?(collection : Array | Set)
in?
Constructor Detail
def self.new(arg_type : Symbol = :splat, selections : Array(Int32) = [] of Int32, &block : Proc(Array(CLTK::Type), Environment, Symbol, Type))
#
Instance Method Detail
def arg_type : Symbol
#
@return [:array, :splat] Method that should be used to pass arguments to this proc.
def selections : Array(Int32)
#
@return [Array
Macro Detail
macro new(*args, &block)
#
Keep Track of the String representation of this Procs Code Block for later serialization