The num-parse-crate was established from the requirement that there is no existing JavaScript-like parseInt() or parseFloat() method in Rust.
This crate is developed apart from Tokay, but Tokay makes both use of it in terms of the internal string-to-int-conversion functions as well as the Int-token. For this case, the Reader needed to be modified to implement PeekableIterator from num-parse to use equal parsing features in all cases.
num-parse will be extended to support a parse_float() as well, which will be integrated into Tokay as well then.
The
num-parse
-crate was established from the requirement that there is no existing JavaScript-likeparseInt()
orparseFloat()
method in Rust.This crate is developed apart from Tokay, but Tokay makes both use of it in terms of the internal string-to-int-conversion functions as well as the
Int
-token. For this case, theReader
needed to be modified to implementPeekableIterator
fromnum-parse
to use equal parsing features in all cases.num-parse
will be extended to support aparse_float()
as well, which will be integrated into Tokay as well then.