Beispiel #1
0
        public void Compile(string source)
        {
            var syntacticAnalysis = new SyntacticAnalysis();
            var ast = syntacticAnalysis.Run(source);

            var semanticAnalysis = new SemanticAnalysis();

            semanticAnalysis.Run(ast);

            // Generate IL program

            /*var ilGenerator = new ILGenerator();
             * return ilGenerator.Build(ast);*/
        }
Beispiel #2
0
        public void Compile(string source)
        {
            var ast = syntacticAnalysis.Run(source);

            this.semanticAnalysis.Run(ast);
        }