aboutsummaryrefslogtreecommitdiff
path: root/src/cffc.hff
diff options
context:
space:
mode:
Diffstat (limited to 'src/cffc.hff')
-rw-r--r--src/cffc.hff5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/cffc.hff b/src/cffc.hff
index 2af06d6..d4b0ec1 100644
--- a/src/cffc.hff
+++ b/src/cffc.hff
@@ -173,6 +173,10 @@ struct Expr {
}
}
+struct ISwitchCase {
+ es [#]Expr,
+ t [#]Stmt
+}
struct Stmt {
loc Loc,
@@ -192,6 +196,7 @@ struct Stmt {
Return Option<Expr>,
Expr Expr,
Decl *Decl,
+ ISwitch struct { ex Expr, cs [#]ISwitchCase, f [#]Stmt }
}
}