From 74f594d1ecd57973f2976067589a71fdfcedecbe Mon Sep 17 00:00:00 2001 From: Rose Hogenson Date: Wed, 29 May 2024 23:06:24 -0700 Subject: Get rid of BigInt. Too much trouble, tbh. Who needs more than 64 bits anyway? --- src/parser.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/parser.rs') diff --git a/src/parser.rs b/src/parser.rs index 2b33e0f..c0f3a9b 100644 --- a/src/parser.rs +++ b/src/parser.rs @@ -1,7 +1,6 @@ use crate::eval; use crate::eval::Num; use crate::lexer::Lexer; -use num::BigInt; use std::str::FromStr; enum Op { @@ -58,7 +57,7 @@ impl<'a> Parser<'a> { } return Some(eval::float(f)); } - let Ok(i) = BigInt::from_str(t) else { + let Ok(i) = i64::from_str(t) else { return None; }; if negative { -- cgit v1.3.1