macro_rules! ruleset {
($(($state:expr, $symbol:expr) -> $dir:ident($next_state:expr, $next_symbol:expr)),* $(,)?) => { ... };
}Expand description
a macro to create a ruleset for finite state machines;
$(Q, S) -> {Dir}(Q, S')$
ยงBasic Usage
ruleset! {
(0, 1) -> Right(0, 1),
}