From 66417bb16eef1f94e5431140b345f5ecebbab886 Mon Sep 17 00:00:00 2001 From: Clemens-Dautermann Date: Sun, 23 Aug 2020 18:31:38 +0200 Subject: [PATCH] check if invalid examples raise correct error --- .../.idea/.idea.Compiler/.idea/workspace.xml | 84 ++++++++----------- Compiler/DevFunctions.cs | 4 +- 2 files changed, 37 insertions(+), 51 deletions(-) diff --git a/Compiler/.idea/.idea.Compiler/.idea/workspace.xml b/Compiler/.idea/.idea.Compiler/.idea/workspace.xml index f600010..ebc02b9 100644 --- a/Compiler/.idea/.idea.Compiler/.idea/workspace.xml +++ b/Compiler/.idea/.idea.Compiler/.idea/workspace.xml @@ -21,8 +21,7 @@ - - + @@ -174,7 +173,7 @@ - + @@ -232,70 +231,70 @@ - + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - + @@ -356,19 +355,6 @@ - - file://$PROJECT_DIR$/DevFunctions.cs - 86 - - - - - - - file://$PROJECT_DIR$/Parser/Parser.cs 261 diff --git a/Compiler/DevFunctions.cs b/Compiler/DevFunctions.cs index 497ab87..b2b6f8b 100644 --- a/Compiler/DevFunctions.cs +++ b/Compiler/DevFunctions.cs @@ -115,7 +115,7 @@ namespace Compiler //TestGenerator(programNode, 1); } - /* + Console.WriteLine($"---------------------invalid, stage {i}-------------------------------"); foreach (string file in Directory.GetFiles($"/home/clemens/repositorys/lcc/stage_{i}/invalid")) { @@ -124,7 +124,7 @@ namespace Compiler Node programNode = TestParser(tokens, file, 1); //TestGenerator(programNode, 1); } - */ + } } }