aboutsummaryrefslogtreecommitdiff
path: root/src/cffc.hff
diff options
context:
space:
mode:
authorlemon <lsof@mailbox.org>2022-08-19 12:52:29 +0200
committerlemon <lsof@mailbox.org>2022-08-19 12:52:29 +0200
commit5f1827beb3199a9f4cec44de5001d599be55cfc8 (patch)
treec42ddaf91c2ebef9efdb81ac07818b42a5377449 /src/cffc.hff
parentb1934f206b3590cf6c7436f50e2bf6dba653c04c (diff)
EUSwitch and #tag
Diffstat (limited to 'src/cffc.hff')
-rw-r--r--src/cffc.hff13
1 files changed, 12 insertions, 1 deletions
diff --git a/src/cffc.hff b/src/cffc.hff
index c8c90ac..131b3d9 100644
--- a/src/cffc.hff
+++ b/src/cffc.hff
@@ -184,6 +184,16 @@ struct ISwitchCase {
t [#]Stmt
}
+struct EUSwitchCase {
+ capt *const u8,
+ captptr bool,
+ captid int,
+ variant int,
+ captty *const Type,
+ fld *AggField,
+ t [#]Stmt
+}
+
struct Stmt {
loc Loc,
u enum union {
@@ -202,7 +212,8 @@ struct Stmt {
Return Option<Expr>,
Expr Expr,
Decl *Decl,
- ISwitch struct { ex Expr, cs [#]ISwitchCase, f [#]Stmt }
+ ISwitch struct { ex Expr, cs [#]ISwitchCase, f [#]Stmt },
+ EUSwitch struct { ex Expr, cs [#]EUSwitchCase, f [#]Stmt },
}
}