fix(parser): braced if-expr arms, paren-less conditions, &-transparent types; fpga specs repaired - #1964
Merged
Conversation
…t types; fpga specs repaired Refs #1960 The #1941 hardening surfaced a layer of constructs the parser never supported but silently swallowed. This lands the top classes: - if-EXPRESSIONS accept braced arms: `if (c) { 2 } else { 0 }` - if/while STATEMENTS accept paren-less Rust-style conditions, with the struct-literal-in-condition rule (a `{` after the condition opens the body, never a struct literal) - reference types are transparent at the spec level (&str/&T parse as the referent) - spec repairs: mac.t27 pack_trit; spi.t27 (THREE match constructs -- the FSM tick, prescaler and SCK dispatch had been silently dropped forever); fifo.t27 (four literal missing-paren typos) fpga-build --smoke: 2 -> 21 of 35 modules generate. Remaining tails begin at the given/then BDD fn form (linker). tri-net's 77-spec icarus gate is green; unit suite at the single pre-existing red (bitnet_layer). FROZEN_HASH resealed. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
gHashTag
enabled auto-merge (squash)
August 8, 2026 19:13
Contributor
Contributor
|
📓 NotebookLM Notebook linked to this PR
This notebook contains session context, decisions, and artifacts for this work. |
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.
Refs #1960
The #1941 hardening surfaced constructs the parser never supported but silently swallowed:
if (c) { 2 } else { 0 }){after the cond opens the body)&str/&T→ referent)matchconstructs (FSM tick, prescaler, SCK) silently dropped forever; fifo.t27 — four literal missing-paren typosfpga-build --smoke: 2 → 21 of 35 modules generate; tails continue at the given/then BDD fn form (linker). tri-net 77-spec icarus gate green; unit suite at the single pre-existing red. FROZEN_HASH resealed; NOW.md entries added.🤖 Generated with Claude Code