better error reporting for parser

This commit is contained in:
Torsten Ruger
2015-11-19 10:10:13 +02:00
parent 249f43ad34
commit 4871a52d37
6 changed files with 11 additions and 10 deletions

View File

@ -17,7 +17,7 @@ module Register
# return is stored in return_value
# (this method returns a new method off course, like all builtin)
def get_internal_word context
compiler = Soml::Compiler.new.create_method(:Object , :get_internal_word , {:Integer => :index}).init_method
compiler = Soml::Compiler.new.create_method(:Object , :get_internal_word , {:index => :Integer}).init_method
source = "get_internal_word"
#Load self by "calling" on_name
me = compiler.process( s(:name , :self) )
@ -35,7 +35,7 @@ module Register
# no return
def set_internal_word context
compiler = Soml::Compiler.new.create_method(:Object , :set_internal_word ,
{:Integer => :index, :Object => :value} ).init_method
{:index => :Integer, :value => :Object} ).init_method
source = "set_internal_word"
#Load self by "calling" on_name
me = compiler.process( s(:name , :self) )