class RedParse::ListInNode::BlockFormalsNode

Public Class Methods

new(goalpost1,param_list,goalpost2) click to toggle source
Calls superclass method RedParse::ListInNode::Node::new
# File lib/redparse/node.rb, line 3392
def initialize(goalpost1,param_list,goalpost2)
  param_list or return super()
  CommaOpNode===param_list and return super(*Array.new(param_list))
  super(param_list)
end

Public Instance Methods

parsetree(o) click to toggle source
# File lib/redparse/node.rb, line 3402
def parsetree(o)
  empty? ? nil :
    [:dasgn_curr, 
      *map{|x| 
        (VarNode===x) ? x.ident.to_sym : x.parsetree(o)
      }
    ]
end
to_lisp() click to toggle source
# File lib/redparse/node.rb, line 3398
def to_lisp
  "(#{data.join' '})"
end