Function tagua_parser::rules::literals::hexadecimal []

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

Recognize an integer with the hexadecimal notation.

Examples

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

assert_eq!(decimal(b"42"), Result::Done(&b""[..], Literal::Integer(42i64)));Run