string_scanner 0.1.0 copy "string_scanner: ^0.1.0" to clipboard
string_scanner: ^0.1.0 copied to clipboard

outdatedDart 1 only

A class for parsing strings using a sequence of patterns.

0.1.0 #

  • Switch from source_maps' Span class to source_span's SourceSpan class.

  • new StringScanner()'s sourceUrl parameter is now named to make it clear that it can be safely null.

  • new StringScannerException() takes different arguments in a different order to match SpanFormatException.

  • StringScannerException.string has been renamed to StringScannerException.source to match the FormatException interface.

0.0.3 #

  • Make StringScannerException inherit from source_map's [SpanFormatException][].

0.0.2 #

  • new StringScanner() now takes an optional sourceUrl argument that provides the URL of the source file. This is used for error reporting.

  • Add StringScanner.readChar() and StringScanner.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 LineScanner subclass of StringScanner that automatically tracks line and column information of the text being scanned.

  • Add a SpanScanner subclass of LineScanner that exposes matched ranges as [source map][] Span objects.

175
likes
0
pub points
100%
popularity

Publisher

verified publishertools.dart.dev

A class for parsing strings using a sequence of patterns.

Homepage

License

unknown (LICENSE)

Dependencies

path, source_span

More

Packages that depend on string_scanner