Class: Idl::UnaryOperatorExpressionAst

Inherits:
AstNode
  • Object
show all
Defined in:
lib/udb/idl/condition_to_udb.rb

Instance Method Summary collapse

Instance Method Details

#to_udb_h(symtab) ⇒ UdbHashType

Parameters:

  • symtab (Idl::SymbolTable)

Returns:



126
127
128
129
130
131
132
133
134
135
136
137
# File 'lib/udb/idl/condition_to_udb.rb', line 126

def to_udb_h(symtab)
  case @op
  when "!"
    {
      "not" => exp.to_udb_h(symtab)
    }
  when "-", "~"
    raise "No conversion for -/~"
  else
    raise "Unexpected"
  end
end