diff --git a/Compiler/DevFunctions.cs b/Compiler/DevFunctions.cs index 77a3219..d9f21cc 100644 --- a/Compiler/DevFunctions.cs +++ b/Compiler/DevFunctions.cs @@ -112,12 +112,12 @@ namespace Compiler { */ - string file = "/home/clemens/repositorys/lcc/stage_3/valid/precedence_add_a_lot.c"; + string file = "/home/clemens/repositorys/lcc/stage_3/valid/div_2.c"; Console.WriteLine("-------------"); List tokens = TestLexer(file, 0); Node programNode = TestParser(tokens, file, 1); - //TestGenerator(programNode, 1); + TestGenerator(programNode, 1); //} /* diff --git a/stage_3/valid/div_2 b/stage_3/valid/div_2 new file mode 100755 index 0000000..221cd84 Binary files /dev/null and b/stage_3/valid/div_2 differ diff --git a/stage_3/valid/div_2.c b/stage_3/valid/div_2.c new file mode 100644 index 0000000..4fc9ab2 --- /dev/null +++ b/stage_3/valid/div_2.c @@ -0,0 +1,3 @@ +int main(){ + return 10 / 1 / 2 / 5; +}