From 188b854a80e2e7de1657b61e1728b7c5230585cd Mon Sep 17 00:00:00 2001 From: Pannous Date: Tue, 5 May 2015 01:00:26 +0200 Subject: [PATCH] '' --- src/core/english-parser.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/core/english-parser.rb b/src/core/english-parser.rb index 2eb97fc..81541e3 100755 --- a/src/core/english-parser.rb +++ b/src/core/english-parser.rb @@ -1250,12 +1250,13 @@ def setter var =property? || variable(a) # _?("always") => pointer setta=_?('to') || be # or not_to_be contain -> add or create + do_interpret! val =adjective? || expressions no_rollback! val=[val].flatten if setta=='are' or setta=='consist of' or setta=='consists of' assure_same_type_overwrite var, val if _let # var.type||=type||val.class #eval'ed! also x is an integer - assure_same_type var, type||val.class + assure_same_type var, type||val.class if check_interpret # todo : type analysis via tree if not @variableValues.contains(var.name) or mod!='default' and @interpret @variableValues[var.name] =val end