Cleaned up debug prints for `parseIf` and `parseWhile`
parent
f547a1127d
commit
2cdc53e9b6
|
@ -63,6 +63,8 @@ public final class Parser
|
||||||
|
|
||||||
private void parseIf()
|
private void parseIf()
|
||||||
{
|
{
|
||||||
|
gprintln("parseIf(): Enter", DebugType.WARNING);
|
||||||
|
|
||||||
/* Pop off the `if` */
|
/* Pop off the `if` */
|
||||||
nextToken();
|
nextToken();
|
||||||
|
|
||||||
|
@ -83,11 +85,13 @@ public final class Parser
|
||||||
expect(SymbolType.CCURLY, getCurrentToken());
|
expect(SymbolType.CCURLY, getCurrentToken());
|
||||||
nextToken();
|
nextToken();
|
||||||
|
|
||||||
gprintln("parseIf(): PARSING OF IF STTAMENT BODY DONE");
|
gprintln("parseIf(): Leave", DebugType.WARNING);
|
||||||
}
|
}
|
||||||
|
|
||||||
private void parseWhile()
|
private void parseWhile()
|
||||||
{
|
{
|
||||||
|
gprintln("parseWhile(): Enter", DebugType.WARNING);
|
||||||
|
|
||||||
/* Pop off the `while` */
|
/* Pop off the `while` */
|
||||||
nextToken();
|
nextToken();
|
||||||
|
|
||||||
|
@ -108,7 +112,7 @@ public final class Parser
|
||||||
expect(SymbolType.CCURLY, getCurrentToken());
|
expect(SymbolType.CCURLY, getCurrentToken());
|
||||||
nextToken();
|
nextToken();
|
||||||
|
|
||||||
gprintln("parseWhile(): PARSING OF WHILE STTAMENT BODY DONE");
|
gprintln("parseWhile(): Leave", DebugType.WARNING);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -241,6 +245,8 @@ public final class Parser
|
||||||
/**
|
/**
|
||||||
* Parses an expression
|
* Parses an expression
|
||||||
*
|
*
|
||||||
|
* TODO:
|
||||||
|
*
|
||||||
* I think we need a loop here to move till we hit a terminator like `)`
|
* I think we need a loop here to move till we hit a terminator like `)`
|
||||||
* in the case of a condition's/function's argument expression or `;` in
|
* in the case of a condition's/function's argument expression or `;` in
|
||||||
* the case of a assignment's expression.
|
* the case of a assignment's expression.
|
||||||
|
|
Loading…
Reference in New Issue