adds basic math operators, thanks to kasper associative and prioritised

This commit is contained in:
Torsten Ruger
2014-05-10 21:41:46 +03:00
parent 6378209f33
commit 2d389d2e00
7 changed files with 108 additions and 5 deletions

View File

@ -41,8 +41,8 @@ module Ast
def initialize str
@string = str
end
def inspectt
"#{string}"
def inspect
self.class.name + '.new("' + string + '")'
end
def compile context