From d03f92153807b45ef462bf829daa51d1c7e2db57 Mon Sep 17 00:00:00 2001 From: Artemy Egorov Date: Tue, 23 Jul 2024 18:10:13 +0300 Subject: [PATCH] doc: fix table spec --- README.md | 4 ++-- specification/daleth.md | 1 + specification/main.md | 11 ++++++----- specification/tags.md | 38 +++++++++++++++++++++++++++++++++++--- 4 files changed, 44 insertions(+), 10 deletions(-) create mode 100644 specification/daleth.md diff --git a/README.md b/README.md index 6f76b20..f50e35c 100644 --- a/README.md +++ b/README.md @@ -101,8 +101,8 @@ row: { } } -# | is delimeter for elements. -# Element | Description == { +# "|" is delimeter for text without tags. +# Element | Description == tcol: { # Element # Description # } diff --git a/specification/daleth.md b/specification/daleth.md new file mode 100644 index 0000000..6c931f1 --- /dev/null +++ b/specification/daleth.md @@ -0,0 +1 @@ +# Daleth specification for Dalet v1.0-preview diff --git a/specification/main.md b/specification/main.md index 05089dd..be18dae 100644 --- a/specification/main.md +++ b/specification/main.md @@ -2,6 +2,12 @@ **Dalet** is a system through which it is possible to combine human readable markup language and small size of transmitted data. The system is divided into two stages and two languages. +## Specification + +- [Tags](./tags.md) +- [Daletl](./daletl.md) +- [Daleth](./daleth.md) + ## Languages ### Daleth @@ -22,11 +28,6 @@ In the first stage, the daleth language is parsed and converted to daletl. All t At this stage, only daletl is used. This stage is used by programs for generation, modification and rendering. The data is transferred between the server and the client only in this stage. -## Specification - -[Tags](./tags.md) -[Daletl](./daletl.md) - ## References [^1]: In the first versions only. Detranslation is planned for the future for the sake of devtools. diff --git a/specification/tags.md b/specification/tags.md index 631d830..8897a34 100644 --- a/specification/tags.md +++ b/specification/tags.md @@ -322,7 +322,7 @@ img[/dalet.png] | -------- | ----------- | | name | table | | id | 12 | -| body | tags | +| body | tcol[] | | argument | no | Creates a table. @@ -343,14 +343,14 @@ table: { 12, [ [ - 0, + 13, [ [0, "Name"], [0, "Age"], ], ], [ - 0, + 13, [ [0, "Elon"], [0, "53"], @@ -359,3 +359,35 @@ table: { ], ] ``` + +## 13. Table Column + +| Property | Description | +| -------- | ----------- | +| name | tcol | +| id | 13 | +| body | tags | +| argument | no | + +Creates a table column. + +**Daleth example**: + +```txt +tcol: { + Name + Age +} +``` + +**Daletl example (json5 representation)**: + +```json5 +[ + 13, + [ + [0, "Name"], + [0, "Age"], + ], +] +```