LionWeb-io / lionweb-typescript

Implements (select parts of) the LionWeb specification, and tooling around that - all in TypeScript.
Apache License 2.0
10 stars 4 forks source link

Compare textual syntaxes #106

Open dslmeinte opened 6 months ago

dslmeinte commented 6 months ago

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.

dslmeinte commented 1 month 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.