In `parseBody()` after calling `parseClass` add the statement generated

develop_before_lexer_parser_merge_parseName
Tristan B. Kildaire 2021-03-24 21:50:06 +02:00
parent 4b9ca7588f
commit e663a0792b
1 changed files with 2 additions and 1 deletions

View File

@ -275,7 +275,8 @@ public final class Parser
/* If it is a class definition */
else if (symbol == SymbolType.CLASS)
{
parseClass();
/* Parse the class and add its statements */
statements ~= parseClass();
}
/* Error out */
else