Function tagua_parser::rules::literals::exponential []

pub fn exponential(i: &[u8]) -> IResult<&[u8]Literalu32>

Recognize a real with the exponential notation.

Examples

use tagua_parser::Result;
use tagua_parser::ast::Literal;
use tagua_parser::rules::literals::exponential;

assert_eq!(exponential(b"123.456e+78"), Result::Done(&b""[..], Literal::Real(123.456e78f64)));Run