I'd like to build up a way to visualize states in order to help novices learn how the code works (and learn regex!), and to help myself with future debugging. Since I think the basic metaphor for streaming execution is causing the input to evolve the pattern, I think first I need a way to print state nodes. This will likely be a recursive task, and it would not be suitable to display a recursively printed result for a state node unless on demand. Once I have the printing mechanism I could design a webapp which can step through a matching process and allow inspection of the state tree and its various nodes.
I'd like to build up a way to visualize states in order to help novices learn how the code works (and learn regex!), and to help myself with future debugging. Since I think the basic metaphor for streaming execution is causing the input to evolve the pattern, I think first I need a way to print state nodes. This will likely be a recursive task, and it would not be suitable to display a recursively printed result for a state node unless on demand. Once I have the printing mechanism I could design a webapp which can step through a matching process and allow inspection of the state tree and its various nodes.