processing tree
dart library for building and executing static trees of execution created in runtime.
when to use it
the main idea behind usage of this library is when there is a need to build builder in runtime. so for
example there is a bunch of input files which will build some objects, but parse operation is complex
and heavy. so intention is to do read and parse only once, and then use created builder any time needed.
getting started
installation
follow the installation instructions on dart packages.
import the library into your dart code using:
import 'package:processing_tree/processing_tree.dart';
use treebuilder
or stackedtreebuilder
builder to prepare structure of tree (please refer to
example) and binding with your code which will be executed while using tree. finally call build
function on builder to obtain instance of treeprocessor
. from this moment tree is ready to
processing data call process`` function on obtained
treeprocessor“` instance to perform execution.
motivation
this library came to my mind after few weeks of working with xml_layout
package. after understanding what it gives and how it works, i found few things which i didn’t like and
decided to do it in my way. however after some thinking i decided to split my work for two parts. first
prepare some generic library which allows me to build and execute algorithms using it representation stored
in independent way. this lib is a result of this work.
Comments are closed.