From: Richard W.M. Jones Date: Tue, 21 Feb 2012 08:47:58 +0000 (+0000) Subject: Fix matching on true/false identifier (for boolean literals). X-Git-Tag: 0.0.1~28 X-Git-Url: http://git.annexia.org/?p=whenjobs.git;a=commitdiff_plain;h=ad0b6d412312967a6604a763368ce1bcd977bc75;hp=0f58f891d531defd1fa923dd2da93678c9c6f35b Fix matching on true/false identifier (for boolean literals). --- diff --git a/lib/whenutils.ml b/lib/whenutils.ml index 362f4f6..643da7d 100644 --- a/lib/whenutils.ml +++ b/lib/whenutils.ml @@ -132,8 +132,8 @@ let rec expr_of_ast _loc ast = expr_of_iexpr _loc (iexpr_of_ast _loc ast) and iexpr_of_ast _loc = function - | ExId (_, IdLid (_, "true")) -> IExpr_bool true - | ExId (_, IdLid (_, "false")) -> IExpr_bool false + | ExId (_, IdUid (_, "True")) -> IExpr_bool true + | ExId (_, IdUid (_, "False")) -> IExpr_bool false | ExStr (_, str) -> IExpr_str str | ExInt (_, i) -> IExpr_int (big_int_of_string i) (* XXX too large? *) | ExFlo (_, f) -> IExpr_float (float_of_string f)