Function tagua_parser::rules::literals::octal []

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

Recognize an integer with the octal notation.

Examples

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

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