switched two statements

This commit is contained in:
Clemens-Dautermann 2020-08-17 23:38:24 +02:00
parent 9eb90686bb
commit 3ea0178678
2 changed files with 42 additions and 45 deletions

View file

@ -39,8 +39,6 @@ namespace Compiler
static List<Token> TestLexer(string path, int debugLevel)
{
//List<List<Token>> tokenLists = new List<List<Token>>();
//string[] files = Directory.GetFiles(path);
Lexer.Lexer lexer = new Lexer.Lexer();
@ -72,12 +70,11 @@ namespace Compiler
try
{
Node programNode = p.Parse(NodeType.ProgramNode);
Console.WriteLine("Parsed \"" + path.Split("/").Last() + "\"");
if (debugLevel > 0)
{
PrettyPrint(programNode, "");
}
Console.WriteLine("Parsed \"" + path.Split("/").Last() + "\"");
}
catch (Exception e)
{