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

Lossless source code tokenizer built on Rumil parser combinators. Classified token spans for syntax highlighting. Built-in grammars for Dart, Scala, YAML, JSON, and shell.

Use this package as a library

Depend on it

Run this command:

With Dart:

 $ dart pub add rumil_tokens

With Flutter:

 $ flutter pub add rumil_tokens

This will add a line like this to your package's pubspec.yaml (and run an implicit dart pub get):

dependencies:
  rumil_tokens: ^0.1.0

Alternatively, your editor might support dart pub get or flutter pub get. Check the docs for your editor to learn more.

Import it

Now in your Dart code, you can use:

import 'package:rumil_tokens/rumil_tokens.dart';
0
likes
160
points
376
downloads

Documentation

API reference

Publisher

verified publisherardaproject.org

Weekly Downloads

Lossless source code tokenizer built on Rumil parser combinators. Classified token spans for syntax highlighting. Built-in grammars for Dart, Scala, YAML, JSON, and shell.

Repository (GitHub)
View/report issues

Topics

#parser #tokenizer #syntax-highlighting #lexer

License

MIT (license)

Dependencies

rumil

More

Packages that depend on rumil_tokens