コード例 #1
0
        public CodeDomGenerator(AstNode program)
        {
            _totalOperations = 0;

            Errors     = new List <SemanticException>();
            _program   = program;
            _codeStack = new Stack <CodeDomArg>();

            _unit     = new CodeCompileUnit();
            _mainType = new CodeDomTypeDefinition("Code");
            _mainType.Type.BaseTypes.Add("RuntimeBase");

            Scope.Reset();
            Scope.Push(_mainType);
            InitScope();
        }
コード例 #2
0
        public CodeDomGenerator(AstNode program)
        {
            _totalOperations = 0;

            Errors = new List<SemanticException>();
            _program = program;
            _codeStack = new Stack<CodeDomArg>();
            _joinMembers = new List<CodeMemberField>();

            _unit = new CodeCompileUnit();
            _mainType = new CodeDomTypeDefinition("Code");
            _mainType.Type.BaseTypes.Add("RuntimeBase");

            Scope.Reset();
            Scope.Push(_mainType);
            InitScope();
        }