Skip to content

Onward! - #77

Merged
jfhbrook merged 11 commits into
mainfrom
onward
Dec 21, 2025
Merged

jfhbrook merged 11 commits into
mainfrom
onward

Conversation

@jfhbrook

@jfhbrook jfhbrook commented Dec 13, 2025 •

Copy link
Copy Markdown
Owner

My working branch for implementing onward. Also includes some new fixture-based tests!

This code is probably correct enough to merge. But this work revealed that something about variable access and modification is busted. It's unrelated to the looping - a test confirms that - so I'm going to merge and fix in a future push. For now, onward is considered to be in mostly good shape.

Comment thread test/fixtures/while-onward.bas Resolved
Comment thread test/__snapshots__/cli.spec.ts.snap Resolved
Comment thread compiler/base.ts Resolved
@jfhbrook
jfhbrook marked this pull request as ready for review December 21, 2025 23:52
}
`;

exports[`fixtures > 10 let i% = 0

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This simple test script is broken. The bytecode is very straightforward, and looks correct. We'll need to trace it to understand what's going on.

}
`;

exports[`fixtures > variable-increment.bas 1`] = `

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is the corresponding "failing" test. It currently passes because the snapshot shows a fault.

@jfhbrook
jfhbrook merged commit 891f22b into main Dec 21, 2025
1 check passed
@jfhbrook
jfhbrook deleted the onward branch December 21, 2025 23:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant