read_step_number

Function read_step_number 

Source
pub fn read_step_number(bytes: &[u8]) -> Option<(StepNumber<'_>, usize)>
Expand description

Read the one STEP number at the start of bytes and the bytes it spans.

The one number reader: the nom tokenizer’s number branch and the raw-byte readers share it, so the grammar is step_numeric_literal_len alone (.5, 1E5, +1, 1., -0.). A literal is a REAL iff it has a . or an exponent (1E5 is Real(100000.0)). None for anything that is not exactly one literal, and for an INTEGER beyond i64.