Skip to content

Commit

Permalink
Fix lexer: integer literals matched empty string.
Browse files Browse the repository at this point in the history
  • Loading branch information
xlq committed Aug 25, 2012
1 parent 5b69d9c commit be65496
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lexer.mll
Expand Up @@ -46,7 +46,7 @@ rule scan = parse
try Hashtbl.find keywords id
with Not_found -> IDENT(id)
}
| ['0'-'9']* as value { INTEGER(big_int_of_string value) }
| ['0'-'9']+ as value { INTEGER(big_int_of_string value) }
| '(' { LPAREN }
| ')' { RPAREN }
| '[' { LBRACKET }
Expand Down

0 comments on commit be65496

Please sign in to comment.