Does anyone know if there's an easy way to "unparse" something that parsed with intstaparse? I've written a grammar to parse something so I can transform it, and now need to spit it back out again as a string. I can write something that will recursively do walk the tree and do that, but I wondered if there was something I was missing that would do it for me 😉
Hmm, and you don't have access to the original string?
I do, but I've changed the content. That was why I parsed it in the first place ;) ... I was just hoping I was missing an instaprint that went the other way. If nobody knows of anything like that, then I'll write something custom. It's not too complicated a grammar.