Open dslmeinte opened 6 months ago
This ties in with issue #107. I think it's probably not a bad idea to have a (“low-level”) textual syntax specifically for serialization chunks only, and then a separate one that can use M2s to provide a more human readable textual syntax in most cases.
Their implementations would still be separate (unless we figure out how to compose textual syntaxes in some code-convenient way), but the one in @lionweb/serialization
(tentative package!) would at least be very simple.
Currently, two textual syntaxes (including their implemented renderers) exist with
lionweb-typescript
: https://github.com/LionWeb-io/lionweb-typescript/blob/main/packages/validation/src/json/LionWebJsonChunkWrapper.ts#L76 and https://github.com/LionWeb-io/lionweb-typescript/blob/main/packages/utilities/src/serialization/textualizer.ts. Let's compare these and see whether one suffices.