Signed-off-by: Jean-Christophe Beaupré <jcbrinfo@users.noreply.github.com>
# They both foward the cursor to the next byte on success, but only `expect`
# functions fire a fatal error on mismatch.
class XophonLexer
+
+ # The model.
var reader_model: XophonReaderModel
+
+ # The input to read from.
var input: IStream is writable
+
+ # Alias to `reader_model.locator`.
private var locator: SAXLocatorImpl is noinit
init do
# “Namespaces in XML”.
private var qname_re: Regex = "^[^:]+(:[^:]+)?$".to_re
+ # The locator that is used to indicate the current location.
var locator: nullable SAXLocatorImpl = null is writable