private void InitializeCompiler() { _compiler = new MetaCodeCompiler(); CompilerService = CompilerService.Instance; MacroInterpreter = new MacroInterpreter(CompilerService); CodeInterpreter = new CodeInterpreter(CompilerService); CodeGenerator = new CodeGenerator(); SemanticParser = new SemanticParser(CompilerService); InitializeFunctions(); WindowTitle = "MetaCode IDE"; }
public void SetUp() { Compiler = new MetaCodeCompiler(); }
private Node ParseWithAbstractTreeVisitor(MetaCodeCompiler compiler, string source) { return compiler.ParseWithVisitor<Node, AbstractTreeVisitor>(source, () => new AbstractTreeVisitor(CompilerService.Instance)); }