class HDLRuby::High::Unary
Describes a high-level unary expression
Public Instance Methods
to_expr()
click to toggle source
Converts to a new expression.
# File lib/HDLRuby/hruby_high.rb, line 2763 def to_expr return Unary.new(self.type,self.operator,self.child.to_expr) end
to_low()
click to toggle source
Converts the unary expression to HDLRuby::Low
.
# File lib/HDLRuby/hruby_high.rb, line 2768 def to_low # return HDLRuby::Low::Unary.new(self.type.to_low, self.operator, # self.child.to_low) unaryL = HDLRuby::Low::Unary.new(self.type.to_low, self.operator, self.child.to_low) # For debugging: set the source high object unaryL.properties[:low2high] = self.hdr_id self.properties[:high2low] = unaryL return unaryL end