summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/lexer.mll1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/lexer.mll b/src/lexer.mll
index e39d7c65..60d4c532 100644
--- a/src/lexer.mll
+++ b/src/lexer.mll
@@ -297,6 +297,7 @@ rule token = parse
| "2^" oper_char+ as i { (TwoCarrotI(r i)) }
| digit+ as i { (Num(int_of_string i)) }
+ | "-" digit+ as i { (Num(int_of_string i)) }
| "0b" (binarydigit+ as i) { (Bin(i)) }
| "0x" (hexdigit+ as i) { (Hex(i)) }
| '"' { (String(