Open
Description
Rather than having a bunch of helper function like this:
scdlang/packages/core/src/utils/iterators.rs
Lines 7 to 23 in 218f971
I think it would be efficient to create separate grammar specialize for querying the state machine. This might be handy when the declaration can be visualized and you want to filter it out using the query syntax.
The query syntax probably will rely on the globbing pattern and boolean operation. For example:
(* -> *) | (A -> * @ Power*) & (* -> C @ *)
☝️ Read as: seach all transient transition or
all transition from state A with event name prefixed with Power and
all transtition to state C on all event (including empty-event/transiten-transition)