Skip to content

Compiler: handle string switch in analyser#461

Open
chqrlie wants to merge 1 commit intoc2lang:masterfrom
chqrlie:strswitch
Open

Compiler: handle string switch in analyser#461
chqrlie wants to merge 1 commit intoc2lang:masterfrom
chqrlie:strswitch

Conversation

@chqrlie
Copy link
Contributor

@chqrlie chqrlie commented Mar 14, 2026

  • handle switch condition declaration in analyser
  • convert switch string expression to function call in analyser
  • move c2_strswitch to libs/c2/c2_helper.c2i
  • make implicit imports unused by default
  • simplify C generator for switch statements

@chqrlie chqrlie force-pushed the strswitch branch 2 times, most recently from 151fab3 to 8aabc22 Compare March 15, 2026 07:54
@chqrlie chqrlie changed the title Comapiler: handle string switch in analyser Compiler: handle string switch in analyser Mar 15, 2026
* handle switch condition declaration in analyser
* convert switch string expression to function call in analyser
* move `c2_strswitch` to libs/c2/c2_helper.c2i
* make implicit imports unused by default
* simplify C generator for switch statements
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