Skip to content

Commit

Permalink
lpLexer: fix definition of int (#1183)
Browse files Browse the repository at this point in the history
  • Loading branch information
fblanqui authored Jan 25, 2025
1 parent 22a95c4 commit 1f2a2f7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/parsing/lpLexer.ml
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ type token =
(** Some regexp definitions. *)
let space = [%sedlex.regexp? Chars " \t\n\r"]
let digit = [%sedlex.regexp? '0' .. '9']
let nat = [%sedlex.regexp? Star digit]
let nat = [%sedlex.regexp? Plus digit]
let int = [%sedlex.regexp? nat | '-', nat]
let float = [%sedlex.regexp? int, '.', Plus digit]
let oneline_comment = [%sedlex.regexp? "//", Star (Compl ('\n' | '\r'))]
Expand Down

0 comments on commit 1f2a2f7

Please sign in to comment.