Allowed `paraeBody()` to parse classes by making a class to `parseClass` o occurence of `class` keyword

Updated test case to test this
This commit is contained in:
Tristan B. Velloza Kildaire 2021-03-05 11:31:33 +02:00
parent 60516134ff
commit a502cad168
2 changed files with 9 additions and 1 deletions

View File

@ -165,6 +165,11 @@ public final class Parser
closedBeforeExit = true;
break;
}
/* If it is a class definition */
else if(symbol == SymbolType.CLASS)
{
parseClass();
}
/* Error out */
else
{

View File

@ -10,7 +10,10 @@ class clazz1
class clazz_2_1
{
class clazz_2_2
{
}
}