Implement Road record declarations and named constructors - #7
Draft
blackboxprogramming wants to merge 1 commit into
Draft
blackboxprogramming wants to merge 1 commit into
blackboxprogramming wants to merge 1 commit into
Conversation
Continue the object-model work from PR #4 with dictionary-backed records, lexically scoped defaults, strict constructor field shape, and multiline expression grouping. Preserve annotations as metadata and runtime authority boundaries. Validation: Python 3.12.14; 92 passed, 1 existing skip. Record example run and parse, py_compile, and git diff --check passed.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The documented
type Device:syntax currently enters an unimplemented parser path and never finishes. This implements the next language step identified by PR #4: record syntax over the existing dictionary-based Road object model.Changes:
Device{name: "Lucidia"}expressions, including nested and multiline constructors.Validation on Python 3.12.14:
python -m pytest tests/ -q— 92 passed, 1 pre-existing skip.python3 roadc.py run examples/record_types.roadprintedLucidia / False / 1 / 0.py_compilefor changed Python files/tests, andgit diff --checkpassed.bf146b82a9205d1027c7cc9f43f62c3f52e5b7a3matches the locally verified tree exactly.Boundaries:
elseparsing test remains skipped. This does not claim to fix other parser stubs.Continuity:
work/road-object-model, pinned parentf0ea7961abac1dcdf568bec8e22b8543fae28b5d.a143553a89e1e33e6799209156a120223a72e4ff.main.main; this stacked draft is locally verified and does not claim a hosted CI pass.