Add RoadC syntax checks without executing source - #8
Merged
Merged
Conversation
blackboxprogramming
added a commit
that referenced
this pull request
Sep 22, 2026
Guard unfinished statement parsers in check mode, including nested blocks and exports. Preserve run/parse behavior and the single-file CLI. Verified four unittest regression methods and all five existing CLI test functions locally. Full pytest unavailable in this environment. Document overlap with PR #8 before integration.
blackboxprogramming
marked this pull request as ready for review
September 23, 2026 06:35
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
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.
RoadC lacked a command for editors and automation to check syntax without executing source. This adds
check/--checkfor one or more UTF-8 files, with optional structured JSON diagnostics.The command never constructs an interpreter or evaluates statements or record defaults. It reports read, lexing, parsing and nesting errors, continues checking later files, and rejects unfinished match/spawn parser branches without hanging. Success means parser acceptance only, not runtime support, type correctness, or C compiler parity.
Integrated with current main after the record-types merge. Consolidates the overlapping PR #9 documentation and nested/export failure coverage into the broader batch interface; #9 can be closed as superseded after merge. Added actual-example batch checks and record-default non-execution regressions. Existing CI configuration is preserved.
Validation: 274 local tests passed with
PYTHONPATH=/tmp/roadc-short-circuit-deps python3 -m pytest tests -q;git diff --checkpassed. Published tree913172ac9c0a914022b55c865687536dddf76ac6matches the tested local tree. Commits use[skip ci]; no hosted CI verification is claimed.