That's where I would start, although I'm not sure how easy it would be
to add steps on the fly and whether or not they would render. I would
pull down the source and take a look at how some of the grammars are
implemented. Maybe start with TableGrammar.