| java.lang.Object jsint.LexicalEnvironment
LexicalEnvironment | public class LexicalEnvironment implements java.io.Serializable(Code) | | Environments store mappings from symbols to locations.
At compile time, we can lookup to see if a symbol names a location,
and at run time we can get or set the value in a location.
author: Peter Norvig, Copyright 1998, peter@norvig.com, license author: subsequently modified by Jscheme project members author: licensed under zlib licence (see license.txt) |
NULLENV | final public static LexicalEnvironment NULLENV(Code) | | The global environment. All info is in the Symbols themselves. *
|
LexicalEnvironment | public LexicalEnvironment(Object vars, Object[] vals, LexicalEnvironment parent)(Code) | | Create an LexicalEnvironment with local variables and values,
and a parent LexicalEnvironment.
|
lookup | public LocalVariable lookup(Symbol var, int up, int in, Object vars)(Code) | | Lookup the symbol in the environment. Return either a
LocalVariable a Symbol representing the global variable.
|
|
|