fix: refactor, tag classes, daletl add data type of tag

This commit is contained in:
Artemy Egorov 2024-07-25 15:55:09 +03:00
parent bc6b6a7db4
commit 599639dee6
12 changed files with 1178 additions and 99 deletions

View file

@ -16,14 +16,14 @@ Daletl root is array of tags. For convenience, we will use the json5 representat
All tags specification is in [Tags](./tags.md).
Each tag may be one of three types:
Each tag may be one of four types:
#### Data Representation
##### As array of 1-3 elements
##### As array of 2-3 elements
1. Tag id
2. Tag body (optional if argument not specified, if argument specified it must be null)
2. Tag body
3. Tag argument (optional)
Tag id is integer number.
@ -50,6 +50,20 @@ Argument can be number or string.
]
```
##### As number
Number becomes tag.
```json5
1
```
equals to
```json5
[1, null]
```
##### As string
String becomes element tag.