Esempio n. 1
0
        public 函数(类型 返回类型, string name, 作用域 形参列表, 块作用域 函数体, int 函数名_iLeft)
        {
            this.返回类型      = 返回类型;
            this.name      = name;
            this.形参列表      = 形参列表;
            this.函数体       = 函数体;
            this.函数名_iLeft = 函数名_iLeft;

            函数体.Set_父作用域(形参列表);
            形参列表.Set_所在函数(this);
        }
Esempio n. 2
0
 public virtual void Set_作用域(作用域 作用域)
 {
     this.作用域 = 作用域;
 }
Esempio n. 3
0
 public void Set_作用域(作用域 全局变量)
 {
     this.字段声明.Set_作用域(全局变量);
 }
Esempio n. 4
0
        //public 结构体(string name, Dictionary<string, 字段声明> dic字段声明, int 结构体名_iLeft)
        //{
        //    this.name = name;
        //    this.dic字段声明 = dic字段声明;
        //    this.结构体名_iLeft = 结构体名_iLeft;
        //}

        public 结构体(string name, 作用域 字段声明, int 结构体名_iLeft)
        {
            this.name       = name;
            this.字段声明       = 字段声明;
            this.结构体名_iLeft = 结构体名_iLeft;
        }
Esempio n. 5
0
 public void Set_父作用域(作用域 父作用域)
 {
     this.父作用域 = 父作用域;
 }
Esempio n. 6
0
 public void Set_作用域(作用域 全局变量)
 {
     this.形参列表.Set_作用域(全局变量);
     this.返回类型.Set_作用域(全局变量);
 }
Esempio n. 7
0
        //public 变量声明和初始化 Get_变量声明_查找_上级作用域(string name)
        //{
        //    if (this.父作用域 == null)
        //        return null;

        //    变量声明和初始化 变量声明;

        //    if (this.父作用域.dic变量声明.TryGetValue(name, out 变量声明))
        //    {
        //        return 变量声明;
        //    }

        //    return Get_变量声明_查找_上级作用域(name);
        //}

        public void Set_作用域(作用域 作用域)
        {
            this.父作用域 = 作用域;
        }