chatter icon indicating copy to clipboard operation
chatter copied to clipboard

Create visual parse trees from ChunkedSentences

Open creswick opened this issue 10 years ago • 0 comments

It would be nice to have visual trees generated from ChunkedSentences, ideally in a way that would work with IHaskell, but just generating PNGs or other open formats would be great.

I envision an API like this:

typeclass ShowTree a where
  showTree :: a -> SomeImageFormat

There shouldn't need to be any IO in that function, but I can imagine other parameters coming into play (resolution, DPI, color palette, etc...) but even a basic approach would be great. This would be primarily for debugging/experimentation.

creswick avatar Nov 07 '14 22:11 creswick