string_scanner 0.1.5
string_scanner: ^0.1.5 copied to clipboard
A class for parsing strings using a sequence of patterns.
0.1.5 #
-
Add
new SpanScanner.within(), which scans within a existingFileSpan. -
Add
StringScanner.scanChar()andStringScanner.expectChar().
0.1.4+1 #
- Remove the dependency on
path, since we don't actually import it.
0.1.4 #
- Add
new SpanScanner.eager()for creating aSpanScannerthat eagerly computes its current line and column numbers.
0.1.3+2 #
- Fix
LineScanner's handling of carriage returns to match that ofSpanScanner.
0.1.3+1 #
- Fixed the homepage URL.
0.1.3 #
- Add an optional
endStateargument toSpanScanner.spanFrom.
0.1.2 #
- Add
StringScanner.substring, which returns a substring of the source string.
0.1.1 #
-
Declare
SpanScanner's exposedSourceSpans andSourceLocations to beFileSpans andFileLocations. They always were underneath, but callers may now rely on it. -
Add
SpanScanner.location, which returns the scanner's currentSourceLocation.
0.1.0 #
-
Switch from
source_maps'Spanclass tosource_span'sSourceSpanclass. -
new StringScanner()'ssourceUrlparameter is now named to make it clear that it can be safelynull. -
new StringScannerException()takes different arguments in a different order to matchSpanFormatException. -
StringScannerException.stringhas been renamed toStringScannerException.sourceto match theFormatExceptioninterface.
0.0.3 #
- Make
StringScannerExceptioninherit from source_map's [SpanFormatException][].
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.