@@ -714,8 +714,7 @@ impl<'a, R: CharRead> Lexer<'a, R> {
|
|||||||
})
|
})
|
||||||
})
|
})
|
||||||
.or_else(|_| {
|
.or_else(|_| {
|
||||||
token
|
Integer::from_str_radix(token, radix)
|
||||||
.parse::<Integer>()
|
|
||||||
.map(|n| Number::BigInt(arena_alloc!(n, &mut self.machine_st.arena)))
|
.map(|n| Number::BigInt(arena_alloc!(n, &mut self.machine_st.arena)))
|
||||||
.map_err(|_| ParserError::ParseBigInt(self.line_num, self.col_num))
|
.map_err(|_| ParserError::ParseBigInt(self.line_num, self.col_num))
|
||||||
})
|
})
|
||||||
|
|||||||
Reference in New Issue
Block a user