Parse Struct Declarations

Signed-off-by: Will Hawkins <hawkinsw@obs.cr>
This commit is contained in:
Will Hawkins
2026-03-27 03:33:15 -04:00
parent 5abaac2816
commit cd26d1d22c
14 changed files with 426 additions and 155 deletions
+2 -1
View File
@@ -284,7 +284,8 @@ public struct Parser {
// Parse a state in a nested scope.
switch Parser.State.Compile(
node: parser_state, withContext: context.update(newNames: current_context.names.enter()))
node: parser_state,
withContext: context.update(newInstances: current_context.instances.enter()))
{
case Result.Ok(let (state, updated_context)):
parser.states = parser.states.append(state: state)