示例#1
0
 public ClassInfo(string Name, LiteEnv Env, SyntaxClassBodyStatementNode BodyNode, ClassInfo BaseClass)
 {
     this.Name_      = Name;
     this.BaseClass_ = BaseClass;
     this.Env_       = Env;
     this.Body_      = BodyNode;
 }
示例#2
0
        public void InitObject(IVisitor Visitor, ClassInfo Cls, LiteEnv Env)
        {
            if (Cls.GetBaseClass() != null)
            {
                InitObject(Visitor, Cls.GetBaseClass(), Env);
            }

            Cls.GetBody().Accept(Visitor, Env);
        }
示例#3
0
 public LiteObject(LiteEnv Env)
 {
     this.Env_ = Env;
 }
示例#4
0
 public void SetOuterEnv(LiteEnv OuterEnv)
 {
     OuterEnv_ = OuterEnv;
 }
示例#5
0
 public LiteEnv(LiteEnv OuterEnv)
 {
     Variable_ = new Dictionary <string, LiteValue>();
     Stack_    = new Stack <LiteValue>();
     OuterEnv_ = OuterEnv;
 }