class RedParse::Nodes::OpNode
Public Class Methods
new(expr1,op,expr2)
click to toggle source
Calls superclass method
RedParse::Nodes::ExprNode::new
# File lib/redparse/babynodes.rb, line 97 def initialize(expr1,op,expr2) super end
Public Instance Methods
parsetree()
click to toggle source
# File lib/redparse/babynodes.rb, line 105 def parsetree [:call, @data[0].parsetree, @data[1].ident.to_sym, [:array, @data[2].parsetree] ] end
to_lisp()
click to toggle source
# File lib/redparse/babynodes.rb, line 101 def to_lisp "(#{@data[1]} #{@data[0].to_lisp} #{@data[2].to_lisp})" end