Пример #1
0
        private bool Compile(List<AssociativeNode> astList, Core targetCore, out int blockId)
        {
            bool succeeded = runner.Compile(astList, targetCore, out blockId);
            if (succeeded)
            {
                // Regenerate the DS executable
                targetCore.GenerateExecutable();

                // Update the symbol tables
                // TODO Jun: Expand to accomoadate the list of symbols
                staticContext.symbolTable = targetCore.DSExecutable.runtimeSymbols[0];
            }
            return succeeded;
        }
Пример #2
0
        private bool Compile(List<AssociativeNode> astList, Core targetCore, out int blockId)
        {
            // The ASTs have already been transformed to SSA
            //runnerCore.Options.GenerateSSA = false;

            bool succeeded = runner.Compile(astList, targetCore, out blockId);
            if (succeeded)
            {
                // Regenerate the DS executable
                targetCore.GenerateExecutable();

                // Update the symbol tables
                // TODO Jun: Expand to accomoadate the list of symbols
                staticContext.symbolTable = targetCore.DSExecutable.runtimeSymbols[0];
            }
            return succeeded;
        }