In `parseBody()` after calling `parseClass` add the statement generated
parent
4b9ca7588f
commit
e663a0792b
|
@ -275,7 +275,8 @@ public final class Parser
|
||||||
/* If it is a class definition */
|
/* If it is a class definition */
|
||||||
else if (symbol == SymbolType.CLASS)
|
else if (symbol == SymbolType.CLASS)
|
||||||
{
|
{
|
||||||
parseClass();
|
/* Parse the class and add its statements */
|
||||||
|
statements ~= parseClass();
|
||||||
}
|
}
|
||||||
/* Error out */
|
/* Error out */
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in New Issue