Changes between Initial Version and Version 1 of Scopes


Ignore:
Timestamp:
04/20/11 08:21:37 (15 years ago)
Author:
Stephen Siegel
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • Scopes

    v1 v1  
     1= Scopes =
     2
     3Support for nested scopes within a function body will be added.
     4This will require changes to front, model, dynamic, state layers.
     5
     6== Changed to model layer ==
     7
     8ScopeIF:
     9  Collection<LocalVariableIF> variables();
     10  ScopeIF parent();
     11  Iterator<ScopeIF> children();
     12  int numChildren();
     13
     14ModelIF:
     15  ScopeIF newScope(ScopeIF parentScope);
     16  LocationIF newLocation(ScopeIF scope, ...);
     17  methods to create locations need to specify scope instead of function
     18
     19FunctionIF:
     20  /* creating a function creates one scope automatically: */
     21  ScopeIF outerScope();