예제 #1
0
 public ClassScope(DSSymbolTable vSymbolTable, Scope TopScope, Scope BaseClassScope, string Name) :
     base(vSymbolTable, TopScope, Name)
 {
     this.BaseClassScope = null;
     if (BaseClassScope != null)
     {
         this.BaseClassScope = BaseClassScope;
     }
 }
예제 #2
0
 public ClassMethodScope(DSSymbolTable vSymbolTable, Scope TopScope, Scope DefScope, string Name) :
     base(vSymbolTable, TopScope, Name)
 {
     this.Name     = Name;
     this.DefScope = null;
     if (DefScope != null)
     {
         this.DefScope = DefScope;
     }
 }
예제 #3
0
        public Scope(DSSymbolTable vSymbolTable, Scope TopScope, bool CaseSensitive)
        {
            SymbolTable   = vSymbolTable;
            this.TopScope = null;
            if (TopScope != null)
            {
                this.TopScope = TopScope;
                TopScope.InternalScopes.Add(this);
            }

            ScopeNum = SymbolTable.GetNewScopeNum();
            SymbolTable.ScopeTable.Add(this);

            this.CaseSensitive = CaseSensitive;

            Symbols        = new SymbolsDictionary();
            InternalScopes = new List <Scope>();
        }
예제 #4
0
        public Scope(DSSymbolTable vSymbolTable, Scope TopScope, string Name)
        {
            SymbolTable   = vSymbolTable;
            this.TopScope = null;
            if (TopScope != null)
            {
                this.TopScope = TopScope;
                TopScope.InternalScopes.Add(this);
            }

            this.Name = Name;

            ScopeNum = SymbolTable.GetNewScopeNum();
            SymbolTable.ScopeTable.Add(this);

            CaseSensitive = SemanticRules.SymbolTableCaseSensitive;

            Symbols        = new SymbolsDictionary();
            InternalScopes = new List <Scope>();
        }
예제 #5
0
 public LambdaScope(DSSymbolTable vSymbolTable, Scope TopScope)
     : base(vSymbolTable, TopScope, "")
 {
 }
예제 #6
0
 public BlockScope(DSSymbolTable vSymbolTable, Scope TopScope)
     : base(vSymbolTable, TopScope, "")
 {
 }
예제 #7
0
 public NamespaceScope(DSSymbolTable vSymbolTable, Scope TopScope, Scope[] vTopScopeArray, string Name) :
     base(vSymbolTable, TopScope, vTopScopeArray, Name)
 {
 }
예제 #8
0
 public LambdaScope(DSSymbolTable vSymbolTable, Scope TopScope)
     : base(vSymbolTable, TopScope)
 {
 }
예제 #9
0
		public ClassScope(DSSymbolTable vSymbolTable,Scope TopScope,Scope BaseClassScope):
			base(vSymbolTable,TopScope)
		{
			BaseClassScopeNum=-2;
			if (BaseClassScope!=null) 
				BaseClassScopeNum=BaseClassScope.ScopeNum;
		}
예제 #10
0
 public UnitPartScope(DSSymbolTable vSymbolTable, Scope TopScope, Scope[] vTopScopeArray, string Name) :
     base(vSymbolTable, TopScope, Name)
 {
     TopScopeArray = vTopScopeArray;
 }
예제 #11
0
		public UnitInterfaceScope(DSSymbolTable vSymbolTable,Scope TopScope,Scope[] vTopScopeArray):
			base(vSymbolTable,TopScope,vTopScopeArray)
		{
		}
예제 #12
0
        public UnitImplementationScope(DSSymbolTable vSymbolTable, Scope TopScope, Scope[] vTopScopeArray)
            :
			base(vSymbolTable,TopScope,vTopScopeArray)
		{}
예제 #13
0
		public UnitPartScope(DSSymbolTable vSymbolTable,Scope TopScope,Scope[] vTopScopeArray):
			base(vSymbolTable,TopScope)
		{
			TopScopeArray=vTopScopeArray;
		}
예제 #14
0
		public DotNETScope(DSSymbolTable vSymbolTable):base(vSymbolTable,null,false)
		{

		}
예제 #15
0
 public WithScope(DSSymbolTable vSymbolTable, Scope TopScope, Scope[] WithScopes)
     : base(vSymbolTable, TopScope)
 {
     this.WithScopes = WithScopes;
 }
예제 #16
0
 public WithScope(DSSymbolTable vSymbolTable, Scope TopScope, Scope[] WithScopes)
     : base(vSymbolTable, TopScope)
 {
     this.WithScopes = WithScopes;
 }
예제 #17
0
 public InterfaceScope(DSSymbolTable vSymbolTable, Scope TopScope, Scope[] vTopInterfaceScopeArray)
     :
     base(vSymbolTable, TopScope, null)
 {
     _TopInterfaceScopeArray = vTopInterfaceScopeArray;
 }
예제 #18
0
 public DotNETScope(DSSymbolTable vSymbolTable) : base(vSymbolTable, null, false)
 {
 }
예제 #19
0
 public InterfaceScope(DSSymbolTable vSymbolTable, Scope TopScope, Scope BaseClassScope, Scope[] vTopInterfaceScopeArray, string Name)
     :
     base(vSymbolTable, TopScope, BaseClassScope, Name)
 {
     _TopInterfaceScopeArray = vTopInterfaceScopeArray;
 }
예제 #20
0
 public UnitImplementationScope(DSSymbolTable vSymbolTable, Scope TopScope, Scope[] vTopScopeArray, string Name)
     :
     base(vSymbolTable, TopScope, vTopScopeArray, Name)
 {
 }
예제 #21
0
 public Scope(DSSymbolTable vSymbolTable, Scope TopScope, bool CaseSensetive)
 {
     SymbolTable = vSymbolTable;
     TopScopeNum = -1;
     if (TopScope != null)
         TopScopeNum = TopScope.ScopeNum;
     ScopeNum = SymbolTable.ScopeTable.Count;
     SymbolTable.ScopeTable.Add(this);
     this.CaseSensitive = CaseSensetive;
 }
예제 #22
0
 public InterfaceScope(DSSymbolTable vSymbolTable, Scope TopScope, Scope BaseClassScope, Scope[] vTopInterfaceScopeArray)
     :
     base(vSymbolTable, TopScope, BaseClassScope)
 {
     _TopInterfaceScopeArray = vTopInterfaceScopeArray;
 }
예제 #23
0
        public BlockScope(DSSymbolTable vSymbolTable, Scope TopScope)
            : base(vSymbolTable, TopScope)
		{
        }
예제 #24
0
		public ClassMethodScope(DSSymbolTable vSymbolTable,Scope TopScope,Scope MyClass):
			base(vSymbolTable,TopScope)
		{
			MyClassNum=-2;
			if (MyClass!=null) 
				MyClassNum=MyClass.ScopeNum;
		}
예제 #25
0
        public Scope(DSSymbolTable vSymbolTable, Scope TopScope)
		{
			SymbolTable=vSymbolTable;
			TopScopeNum=-1;
			if (TopScope!=null) 
				TopScopeNum=TopScope.ScopeNum;
            ScopeNum = SymbolTable.ScopeTable.Count;
			SymbolTable.ScopeTable.Add(this);
            this.CaseSensitive = SemanticRules.SymbolTableCaseSensitive;
		}