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);*/ }
public void Compile(string source) { var ast = syntacticAnalysis.Run(source); this.semanticAnalysis.Run(ast); }