Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions crates/symphony/src/format.rs
Original file line number Diff line number Diff line change
Expand Up @@ -247,6 +247,11 @@ impl Format {
self.states[index].emits
}

/// How many states the table has; the first is the one the turn opener leaves the engine in.
pub(crate) fn states(&self) -> usize {
self.states.len()
}

/// Where terminal `on` takes the engine from state `from`, if the table says.
pub(crate) fn next(&self, from: usize, on: usize) -> Option<usize> {
self.transitions
Expand Down
Loading
Loading