bbob_dart 0.1.1

Dart native js
Flutter Android iOS web

A port of the bbcode parser and trasnformer [bbob](https://github.com/JiLiZART/bbob) in dart.

bbob_dart #

badge

⚡️Blazing fast port of the BBCode parser and transformer bbob in dart.

What's currently ported? #

  • bbob_parser : parses bbcode into a ast.

Usage #

See code in exmaple folder.

What's different from the original bbob? #

bbob_dart is written in dart, which has a sound type system. And with the help of dart, bbob_dart is strongly typed.

I want to render ast into html/markdown... #

You have two ways to render:

  1. Similar to https://github.com/JiLiZART/bbob/blob/master/packages/bbob-html/src/index.js, how bbob renders ast into html.

  2. Similar to https://github.com/dart-lang/markdown/blob/master/lib/src/html_renderer.dart, bbob_dart has implemented an ast which allows you to walk through the tree using visitor pattern.

Office support in bbob_dart for a html renderer might not happen in the near future. Feel free to send a pull request if you have a well-tested implementation.

How fast it is? #

See discussions here. Performance is expected to be on par with original bbob.

Feature requests & bugs #

Since this is a port of bbob, feature requests and bug reports should preferably be reported to original bbob repo if it's not directly related to this dart implementation.

0
likes
110
pub points
46%
popularity

A port of the bbcode parser and trasnformer [bbob](https://github.com/JiLiZART/bbob) in dart.

Repository (GitHub)
View/report issues

Documentation

API reference

Uploader

bangumin@protonmail.com

License

MIT (LICENSE)

Dependencies

meta

More

Packages that depend on bbob_dart