MCPcopy Create free account
hub / github.com/dylan-sutton-chavez/edge-python / scan_digits

Method scan_digits

compiler/src/modules/lexer/scan.rs:64–66  ·  view source on GitHub ↗
(&mut self)

Source from the content-addressed store, hash-verified

62 self.scan_while(|b| BYTE_CLASS[b as usize] & ID_CONT != 0);
63 }
64 fn scan_digits(&mut self) {
65 self.scan_while(|b| BYTE_CLASS[b as usize] & DIGIT != 0 || b == b'_');
66 }
67
68 /* Underscores must sit between digits: no leading, trailing, or consecutive. Empty body only valid after a decimal dot. */
69 fn check_digits(&mut self, start: usize, end: usize, allow_empty: bool) {

Callers 3

scan_exponentMethod · 0.80
scan_numberMethod · 0.80
scan_dot_numberMethod · 0.80

Calls 1

scan_whileMethod · 0.80

Tested by

no test coverage detected