From Newsgroup: comp.lang.tcl
Available on my gh page:
https://github.com/sgeard/cmdgraph
A snippet from the extensive README:
cmdgraph is a state-graph driven command interpreter rCo a parsing and dispatch kernel for building interactive command shells and REPL-style workflows. It is best understood as a pushdown transducer: a finite
state graph on a runtime stack, where each transition can invoke an
action and carry an opaque context value into the new state.
There are Tcl, Fortran and C++ versions.
I use it as a command processor for small projects that I have at home
and thought others might be interested.
Simon
--- Synchronet 3.22a-Linux NewsLink 1.2