From f1df47c43b7921f0b5c8db8191a68f22995a6383 Mon Sep 17 00:00:00 2001 From: Simon Cruanes Date: Sat, 1 Nov 2014 22:04:22 +0100 Subject: [PATCH] fix comment in parser --- util/lexdimacs.mll | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/util/lexdimacs.mll b/util/lexdimacs.mll index 9cc1507a..d2f544b2 100644 --- a/util/lexdimacs.mll +++ b/util/lexdimacs.mll @@ -8,9 +8,9 @@ let number = ['0' - '9']+ rule token = parse | ' ' { token lexbuf } - | 'c' [^ '\n']* '\n' { token lexbuf } | 'p' { P } | "cnf" { CNF } | '\n' { EOL } + | "c " [^ '\n']* '\n' { token lexbuf } | ['-']? number { LIT (int_of_string (Lexing.lexeme lexbuf)) } | eof { EOF }