Text cursor primitives for verification parsers #
ODE and PINN certificates both contain small mathematical expression languages. This module owns their shared byte-position cursor, fuel-bounded scanning, and decimal literal parsing. Grammar and AST decisions remain in the respective verifier modules.
A source string paired with the current raw byte position.
- source : String
Source text being scanned.
- position : String.Pos.Raw
Current raw byte position in
source.
Instances For
@[inline]
Inspect the current character without advancing the cursor.
Instances For
@[inline]
Advance by one character, preserving the source text.
Instances For
@[inline]
Remaining bytes plus one, suitable as a budget for a single linear scan.
Instances For
@[inline]
Whether the cursor has reached or passed the source's raw end position.
Instances For
ASCII whitespace accepted by the verification expression languages.