added TSwitch support

This commit is contained in:
Nicolas Cannasse
2014-09-11 17:13:31 +02:00
parent e4cf5a7821
commit 8d35e2ff8c
5 changed files with 64 additions and 4 deletions
+1
View File
@@ -66,6 +66,7 @@ enum Expr {
ETry( e : Expr, v : String, t : Null<CType>, ecatch : Expr );
EObject( fl : Array<{ name : String, e : Expr }> );
ETernary( cond : Expr, e1 : Expr, e2 : Expr );
ESwitch( e : Expr, cases : Array<{ values : Array<Expr>, expr : Expr }>, ?defaultExpr : Expr);
}
enum CType {