From 66bfa69272bc4520759b924bdbe3c88420e7c598 Mon Sep 17 00:00:00 2001 From: Artemy Egorov Date: Tue, 23 Jul 2024 12:57:23 +0300 Subject: [PATCH] doc: update daletl data spec --- specification/main.md | 2 +- specification/tags/main.md | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/specification/main.md b/specification/main.md index 6227514..81b241f 100644 --- a/specification/main.md +++ b/specification/main.md @@ -16,7 +16,7 @@ ### Stage 1 (optional) -In the first stage, the daleth language is parsed and converted to daletl. All tag names are replaced by the smallest possible names, so that they take up less space in json or messagepack, for example. **This stage is not for data transmission**. +In the first stage, the daleth language is parsed and converted to daletl. All tags becomes an array of properties `[tag_id, body, argument]`, so that they take up less space in json or messagepack, for example. **This stage is not for data transmission**. ### Stage 2 diff --git a/specification/tags/main.md b/specification/tags/main.md index ce7009d..b2cb736 100644 --- a/specification/tags/main.md +++ b/specification/tags/main.md @@ -22,7 +22,7 @@ Daletl Daletl json5 data representation: ```json5 -{ e: "Dalet" } +[0, "Dalet"] ``` ## Heading @@ -49,5 +49,5 @@ h[1]: Dalet Daletl json5 representation: ```json5 -{ h: "Dalet", l: 1 } +[1, "Dalet", 1] ```