string_scanner 0.0.2
string_scanner: ^0.0.2 copied to clipboard
A class for parsing strings using a sequence of patterns.
0.0.2 #
-
new StringScanner()now takes an optionalsourceUrlargument that provides the URL of the source file. This is used for error reporting. -
Add
StringScanner.readChar()andStringScanner.peekChar()methods for doing character-by-character scanning. -
Scanners now throw
StringScannerExceptions which provide more detailed access to information about the errors that were thrown and can provide terminal-colored messages. -
Add a
LineScannersubclass ofStringScannerthat automatically tracks line and column information of the text being scanned. -
Add a
SpanScannersubclass ofLineScannerthat exposes matched ranges as [source map][]Spanobjects.