예제 #1
0
파일: Syntax.cs 프로젝트: Throttle/compiler
        /// <summary>
        /// Создание тела модуля из коллекции утверждений
        /// Функции, переменные, структуры буду разделены
        /// </summary>
        public Body(StatementCollection statements, VariableCollection variables)
        {
            Functions = new FunctionCollection();
            Structures = new StructureCollection();
            Statements = new StatementCollection();
            Variables = new VariableCollection();

            this.AddStatements(statements);
            this.AddVariables(variables);
        }
예제 #2
0
 public Enumerator(StructureCollection collection)
 {
     this.wrapped = ((System.Collections.CollectionBase)collection).GetEnumerator();
 }