Enforced i64 parse (floats and smaller types are to come)

parent 52b0dadf
......@@ -52,7 +52,7 @@ mod lexer {
// detects a litteral integer
// can end with an `i`
r#"[0-9]+"# => {
(if let Ok(i) = text.parse() {
(if let Ok(i) = text.parse::<i64>() {
Token::Integer(i)
} else {
panic!("integer {} is out of range", text)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment