support "const literal string" in 'case' for 'switch'
authoryu.dongliang <18588496441@163.com>
Wed, 2 Oct 2024 04:30:07 +0000 (12:30 +0800)
committeryu.dongliang <18588496441@163.com>
Wed, 2 Oct 2024 04:30:57 +0000 (12:30 +0800)
commit6c90ed24c758e6ba85ebed2f6cdc13c84233bdc5
treec9fbd9c68632e400e1c578fea362acdb4f0988fe
parent15cc7c1f9f4ed355678606e9986443b6c5f6148e
support "const literal string" in 'case' for 'switch'
18 files changed:
core/scf_3ac.c
core/scf_basic_block.c
core/scf_expr.c
core/scf_expr.h
core/scf_node.c
core/scf_operator_handler_3ac.c
core/scf_optimizer.c
core/scf_type_cast.c
core/scf_variable.h
examples/switch_string.c [new file with mode: 0644]
native/x64/scf_x64.c
parse/scf_dfa_for.c
parse/scf_dfa_if.c
parse/scf_dfa_switch.c
parse/scf_dfa_while.c
parse/scf_operator_handler_const.c
parse/scf_operator_handler_semantic.c
parse/scf_parse.c