use positions in interpreter

This commit is contained in:
Torsten Ruger
2018-05-20 15:52:13 +03:00
parent c0f10bb42b
commit ef2dc932ad
6 changed files with 11 additions and 6 deletions

View File

@ -5,6 +5,7 @@ module Risc
def initialize( at , object)
@at = at
@object = object
raise "not int #{self}-#{at}" unless @at.is_a?(Integer)
end