Skip to content

fix(parser): braced if-expr arms, paren-less conditions, &-transparent types; fpga specs repaired - #1964

Merged
gHashTag merged 1 commit into
masterfrom
fix/mac-brace
Aug 8, 2026
Merged

fix(parser): braced if-expr arms, paren-less conditions, &-transparent types; fpga specs repaired#1964
gHashTag merged 1 commit into
masterfrom
fix/mac-brace

Conversation

@gHashTag

@gHashTag gHashTag commented Aug 8, 2026

Copy link
Copy Markdown
Owner

Refs #1960

The #1941 hardening surfaced constructs the parser never supported but silently swallowed:

  • 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 ({ after the cond opens the body)
  • reference types are transparent (&str/&T → referent)
  • Spec repairs: mac.t27 pack_trit; spi.t27 — three match constructs (FSM tick, prescaler, SCK) silently dropped forever; fifo.t27 — four literal missing-paren typos

fpga-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

…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
gHashTag enabled auto-merge (squash) August 8, 2026 19:13
@github-actions

github-actions Bot commented Aug 8, 2026

Copy link
Copy Markdown
Contributor

PR Dashboard

Generated at: 2026-08-08 19:13:48 UTC

Summary

Status Count
Total Open PRs 15
PRs with Failing Checks 2
PRs with All Checks Green 13
READY 5
FAILING 2
PENDING 0

Seal Status

  • ⚠️ STALE -- sha256(compiler.rs)=ac0310ff69d2 != manifest seal=87e5cbd3ad94.
    The committed NMSE numbers were certified against an older compiler.rs.
    Run scripts/reseal-check.sh locally for the two-step reseal command (advisory; not a merge gate).

@github-actions

github-actions Bot commented Aug 8, 2026

Copy link
Copy Markdown
Contributor

📓 NotebookLM Notebook linked to this PR

This notebook contains session context, decisions, and artifacts for this work.

@gHashTag
gHashTag merged commit d0da691 into master Aug 8, 2026
21 of 22 checks passed
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