Files
metasploit-gs/lib/rkelly/nodes/binary_node.rb
T
James Lee 7458abc8b3 add rkelly, a javascript parsing library. this version fixes several bugs in the abandoned gem, see https://github.com/tenderlove/rkelly/pull/6
git-svn-id: file:///home/svn/framework3/trunk@12815 4d416f70-5f16-0410-b530-b9f4589650da
2011-06-02 06:31:34 +00:00

19 lines
533 B
Ruby

module RKelly
module Nodes
class BinaryNode < Node
attr_reader :left
def initialize(left, right)
super(right)
@left = left
end
end
%w[Subtract LessOrEqual GreaterOrEqual Add Multiply While NotEqual
DoWhile Switch LogicalAnd UnsignedRightShift Modulus While
NotStrictEqual Less With In Greater BitOr StrictEqual LogicalOr
BitXOr LeftShift Equal BitAnd InstanceOf Divide RightShift].each do |node|
eval "class #{node}Node < BinaryNode; end"
end
end
end