sahandevs / xstate.dart

xstate for dart & flutter
MIT License
40 stars 6 forks source link

[WIP] Implementation Plan #2

Open sahandevs opened 4 years ago

sahandevs commented 4 years ago

Machine Definition

Defining https://www.w3.org/2011/04/SCXML/scxml.xsd with dart models.

Translation

image Convert a machine that user provides to the machine definition format.

Interpreter

image

An interpreter takes one Machine Definition (required), one Initial State and zero or more hooks and returns a Machine Instance.

Hooks

hook to an internal event of the interpreter. (onRaiseError, onStateChanged, ... )

Machine Instance

provides these properties:

Flutter

Basic Tooling

ekweible commented 4 years ago

Hey @sahandevs! I'd love to help out with this project, is there a particular area you could point me to as a good starting place?

sahandevs commented 4 years ago

Hi @ekweible! It would be awesome.

I've delayed this project but I will be back on it very soon. last thing I was working on was implementing the interpreter based on https://www.w3.org/TR/scxml (implemented part is here: https://github.com/sahandevs/xstate.dart/blob/master/packages/xstate/lib/src/interpreter/helpers.dart)

There are few todos there but the next thing i was going to work on was writing some test for the functions there. writing test for them should not be hard because they are bunch of independent function.

Thanks!