Skip to content

Commit

Permalink
''
Browse files Browse the repository at this point in the history
  • Loading branch information
pannous committed May 4, 2015
1 parent 962f809 commit 188b854
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/core/english-parser.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 188b854

Please sign in to comment.