diff --git a/lexer.mll b/lexer.mll index 0745539..f91dd7e 100644 --- a/lexer.mll +++ b/lexer.mll @@ -5,7 +5,7 @@ } let alpha = ['a'-'z' 'A'-'Z'] -let num = ['0'-'9'] +let num = '-'? ['0'-'9'] let bool = "true" | "false" let ident = alpha (alpha | num | '-' | '_')*