Separate grammar for query syntax
- Dominant language
- Rust
- Stars
- 103
- Forks
- 2
- PR merge metrics
- No merged PRs in 30d
Description
Rather than having a bunch of helper function like this:
https://github.com/DrSensor/scdlang/blob/218f971b26f4cbf3ad4a1afcb36f5fe474a2df02/packages/core/src/utils/iterators.rs#L7-L23
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:
```elixir
(* -> *) | (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)
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.