korken89 / smlang-rs

A State Machine Language DSL procedual macro for Rust
Apache License 2.0
193 stars 28 forks source link

Allow input states before wildcard state for the same event #47

Closed oblique closed 1 year ago

oblique commented 1 year ago

This allows the following:

statemachine!{
    transitions: {
        *State1 + Event1 = State2,
        _ + Event1 = Fault,
    }
}
oblique commented 1 year ago

All comments resolved! Let me know if you have a better error message.