class RLTK::Parser::ParseStack::ProdProc

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

Attributes

arg_type[R]

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

selections[R]

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

Public Class Methods

new(arg_type = :splat, selections = []) click to toggle source
Calls superclass method
# File lib/rltk/parser.rb, line 1619
def initialize(arg_type = :splat, selections = [])
        super()
        @arg_type   = arg_type
        @selections = selections
end