News for hackers. Stuff that matters.
Re:Kaitai: Describe the structure of data, not how you read ... by nextaccountic on Saturday December 05, 2020 @07:33PM (#25319810)
This breakthrough happened already. This is called bidirectional or invertible parsing. See it discussed here https://news.ycombinator.com/item?id=16392654

And this paper https://dl.acm.org/doi/10.1145/1863523.1863525 "Invertible syntax descriptions: unifying parsing and pretty printing"

And this Haskell library https://hackage.haskell.org/package/roundtrip among others

There are no comments on this comment yet.