Exemple #1
0
 public EnkelFunction(FunctionStatement declaration, IEnkelEnvironment closure, bool isConstructor)
 {
     _declaration   = declaration;
     _closure       = closure;
     _isConstructor = isConstructor;
 }
Exemple #2
0
 private EnkelEnvironment(Dictionary <string, object> identifiers)
 {
     _outerEnvironment = null;
     _identifiers      = identifiers;
 }
Exemple #3
0
 public EnkelInterpreter()
 {
     _globals     = EnkelEnvironment.GlobalEnvironment;
     _environment = _globals;
 }
Exemple #4
0
 public EnkelEnvironment(IEnkelEnvironment outerEnvironment)
 {
     _outerEnvironment = outerEnvironment;
 }