diff --git a/Gemfile.lock b/Gemfile.lock index ae1b6410..05cfc1b2 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -12,15 +12,15 @@ GIT GIT remote: git://github.com/salama/salama-reader.git - revision: 6710567af979b0b367245c16a0c6af260675bc71 + revision: 6ae4b624b07bb86ceb24acb27ad0ac83be2ecc1e specs: salama-reader (0.4.0) ast (~> 2.1.0) - parslet (~> 1.7.0) + parslet (~> 1.7.1) GIT remote: git://github.com/whitequark/ast.git - revision: 3814fb102af82a30bf334005ebe17332744f9dad + revision: 63db4686b33228e8f703cb7328e5e5c62aa3cd92 specs: ast (2.1.0) diff --git a/lib/soml/compiler/field_def.rb b/lib/soml/compiler/field_def.rb index faf7db9f..410074ea 100644 --- a/lib/soml/compiler/field_def.rb +++ b/lib/soml/compiler/field_def.rb @@ -6,9 +6,9 @@ module Soml reset_regs # field_def is a statement, no return and all regs #puts statement.inspect type , name , value = *statement - @method.ensure_local( name, type ) unless( @method.has_arg(name)) + @method.ensure_local( name.first, type ) unless( @method.has_arg(name.first)) # if there is a value assigned, process it as am assignemnt statement (kind of call on_assign) - process( s(:assignment , s(:name , name) , value ) ) if value + process( s(:assignment , name , value ) ) if value return nil end end