Now properly generates a Struct object

This commit is contained in:
Tristan B. Kildaire 2021-06-01 10:00:21 +02:00
parent 814b29984c
commit d34dd5b689
1 changed files with 2 additions and 2 deletions

View File

@ -396,9 +396,9 @@ public final class Parser
}
/* TODO: Remove this and actually impleent struct's body parsing */
/* TODO: Add Statement[] array, statements, to `generatedStruct` */
/* Generate a new Struct with the given body Statement(s) */
generatedStruct = new Struct(structName);
generatedStruct.addStatements(statements);
/* Expect closing brace (sanity) */
expect(SymbolType.CCURLY, getCurrentToken());