コード例 #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
ファイル: Collections.cs プロジェクト: Throttle/compiler
 public Enumerator(FunctionCollection collection)
 {
     this.wrapped = ((System.Collections.CollectionBase)collection).GetEnumerator();
 }