Class: Malady::AST::LessThanNode

Inherits:
BinaryNode show all
Defined in:
lib/malady/ast.rb

Instance Attribute Summary

Attributes inherited from BinaryNode

#lhs, #rhs

Attributes inherited from Node

#filename, #line

Instance Method Summary collapse

Methods inherited from BinaryNode

#initialize

Methods inherited from Node

#initialize, #pos

Constructor Details

This class inherits a constructor from Malady::AST::BinaryNode

Instance Method Details

#bytecode(g) ⇒ Object



171
172
173
174
175
176
# File 'lib/malady/ast.rb', line 171

def bytecode(g)
  pos(g)
  lhs.bytecode(g)
  rhs.bytecode(g)
  g.send(:<, 1)
end