Skip to content

Commit

Permalink
Accept uint literals as literal patterns.
Browse files Browse the repository at this point in the history
  • Loading branch information
froystig committed Aug 6, 2010
1 parent db561b5 commit 514fb4b
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/boot/fe/item.ml
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,10 @@ and parse_stmts (ps:pstate) : Ast.stmt array =
let lv = name_to_lval apos bpos name in
Ast.PAT_tag (lv, paren_comma_list parse_pat ps)

| LIT_INT _ | LIT_CHAR _ | LIT_BOOL _ ->
| LIT_INT _
| LIT_UINT _
| LIT_CHAR _
| LIT_BOOL _ ->
Ast.PAT_lit (Pexp.parse_lit ps)

| UNDERSCORE -> bump ps; Ast.PAT_wild
Expand Down

0 comments on commit 514fb4b

Please sign in to comment.