Exemplo n.º 1
0
 public void Run()
 {
     if (_fileNames.Count == 0)
     {
         Console.WriteLine("No input files have been given!");
     }
     else
     {
         string input = GetInput();
         AST    ast   = _lexParse.Run(input, _printParseTree);
         _referenceHandler.InsertReferences(ast);
         _typeChecker.CheckTypes(ast);
         List <LabelGraph>       output    = _interpreter.Interpret(ast);
         List <ExtensionalGraph> gmlGraphs = _outputGenerator.Generate(output);
         _fileGenerator.Export(gmlGraphs, _output, _printOutput, _saveOutput, _projectFolder);
     }
 }