Awaiting input...
This page allows you to test out some event handler ids of your own. Type above or use the examples to test out some matches!
A StateMachine instance is instantiated with the following properties available:
- States:
a
,b
,c
,d
,e
,exit
- Actions:
back
,next
,quit
The following grammar is available:
Format | Description |
---|---|
alias | Any single word that resolves to a namespaced type, state or action |
namespace.type | Absolute syntax for namespaced types |
:type | An event type, for action or state events |
@action | An action name |
#state | Alternative state name identifier to using an alias |
(foo bar baz) | Grouping for multiple patterns, which are expanded to multiple handlers |
The additional options allow yo to choose what to do with invalid states/actions or bad syntax, and are set in the config:
invalid
- whether to add handlers for non-existing states or actions (states or actions which might be added later)errors
- whether to quietly ignore, warn or throw errors for invalid handler id syntax
Open the console, click warn or error, and enter some invalid states to see the result.