ads to_s to ast for better readability
This commit is contained in:
@ -10,6 +10,9 @@ module Ast
|
||||
def inspect
|
||||
self.class.name + ".new(" + value.to_s+ ")"
|
||||
end
|
||||
def to_s
|
||||
value.to_s
|
||||
end
|
||||
def compile context
|
||||
Vm::Signed.new value
|
||||
end
|
||||
@ -31,6 +34,9 @@ module Ast
|
||||
def inspect
|
||||
self.class.name + '.new("' + name + '")'
|
||||
end
|
||||
def to_s
|
||||
name
|
||||
end
|
||||
def attributes
|
||||
[:name]
|
||||
end
|
||||
|
Reference in New Issue
Block a user