Added recursive brace parsing for parseExpression()
Updated test case to test itexpression_parsing.sync-conflict-20210316-090018-O3W7KWN
parent
e5b86498f5
commit
18a5bdca16
|
@ -340,6 +340,16 @@ public final class Parser
|
||||||
* TODO: For recursive () in expressions I might need to stop the `)` detection outside
|
* TODO: For recursive () in expressions I might need to stop the `)` detection outside
|
||||||
* of the call to parseExpression (the original call)
|
* of the call to parseExpression (the original call)
|
||||||
*/
|
*/
|
||||||
|
else if(symbol == SymbolType.LBRACE)
|
||||||
|
{
|
||||||
|
nextToken();
|
||||||
|
|
||||||
|
parseExpression();
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
nextToken();
|
||||||
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
//gprintln("parseExpression(): NO MATCH", DebugType.ERROR);
|
//gprintln("parseExpression(): NO MATCH", DebugType.ERROR);
|
||||||
|
|
|
@ -42,6 +42,8 @@ void main(int hello, byte d)
|
||||||
|
|
||||||
ubyte eish = 1+1;
|
ubyte eish = 1+1;
|
||||||
|
|
||||||
|
ubyte poes = ((1+1));
|
||||||
|
|
||||||
if(1+1)
|
if(1+1)
|
||||||
{
|
{
|
||||||
if(1)
|
if(1)
|
||||||
|
|
Loading…
Reference in New Issue