streaming acceptor for regular languages
WORK IN PROGRESS
var r =and = rand start = rstar plus = rplusor = ror rmaybe = rmaybe empty = rempty//ABCCCCCCCC//A | AAAAAA//same as ^//ABBABABABBABABABBBABAA//AB?C//ABC | AC
Each expression can also be drawn as state transition graphs. Would be cool to generate this automatically.
events must occur in order
* --> A --> B --> C
x ---> A ---> y\ /^\ /`-> B -`
&k ---> A ---> y\ /^`---------`
&x ---> A --->y
x ---> A --->y\ /^`--------`
And then we can draw a big graph, and show a program's execution path on it!
but maybe using canvas instead of ansi.