reinstate word creation and use for strings

so string constants become words, so we can fiddle with them
This commit is contained in:
Torsten Ruger
2015-11-08 23:58:35 +02:00
parent c8fa5238ee
commit f746218765
3 changed files with 14 additions and 15 deletions

View File

@ -36,7 +36,7 @@ module Soml
end
def on_string expression
value = expression.first.to_sym
value = Register.new_word expression.first.to_sym
reg = use_reg :Word
Register.machine.constants << value
add_code Register::LoadConstant.new( expression, value , reg )