switched two statements
This commit is contained in:
parent
9eb90686bb
commit
3ea0178678
2 changed files with 42 additions and 45 deletions
|
|
@ -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)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue