Skip to content

fix(cgen): lower nested assignment expressions - #291

Merged
godofecht merged 2 commits into
mainfrom
fix/c-generator-assignment-expressions
Aug 10, 2026
Merged

godofecht merged 2 commits into
mainfrom
fix/c-generator-assignment-expressions

Conversation

@godofecht

Copy link
Copy Markdown
Contributor

Summary

  • Lower nested Assignment AST nodes as parenthesized C assignment expressions.
  • Add coverage for valid chained Flow assignment: value = other = 1.

Verification

  • PYTHONPATH=src python3 -m pytest tests/unit/test_c_generator_assignments.py -q
  • FLOW_HOST=python ./flow transpile /private/tmp/assignment-expression.flow --c --lenient -o /private/tmp/assignment-expression.c

This fixes C generation for valid chained assignments, which previously raised NotImplementedError: Unsupported expression: <class 'flow.parser.Assignment'>.

@cursor

cursor Bot commented Aug 10, 2026

Copy link
Copy Markdown
Contributor

Bugbot is not enabled for your account, so this pull request was not reviewed.

Enable Bugbot in the Cursor dashboard to get automatic reviews on future PRs.

@godofecht
godofecht merged commit ae2b850 into main Aug 10, 2026
14 checks passed
@godofecht
godofecht deleted the fix/c-generator-assignment-expressions branch August 10, 2026 15:34
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