renames Typed to Vm
This commit is contained in:
12
lib/vm/tree/if_statement.rb
Normal file
12
lib/vm/tree/if_statement.rb
Normal file
@@ -0,0 +1,12 @@
|
||||
module Vm
|
||||
module Tree
|
||||
class IfStatement < Statement
|
||||
attr_accessor :branch_type , :condition , :if_true , :if_false
|
||||
def to_s
|
||||
str = "if_#{branch_type}(#{condition}) \n #{if_true}\n"
|
||||
str += "else\n #{if_false}\n" if if_false
|
||||
str + "end\n"
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
Reference in New Issue
Block a user