reimplement parsing code (but program does not compile yet because I have to change type of 'USE_SQUARES' constructure)

This commit is contained in:
2025-08-09 11:29:36 +01:00
parent b765e406c7
commit 940e4429a7
5 changed files with 42 additions and 29 deletions

View File

@@ -11,9 +11,9 @@ int ::= (0-9)+
item ::= **{** int int int int int int int int **}**
grid ::= **[** item **]**
layer ::= **[** item **]**
grid_list ::= int int **{** (grid)+ **}**
layer_tree ::= int int **{** (layer)* **}**
```
The first two `int`s in the grid `int int **{** (item)+ **}**` always follow the order: `canvasWidth canvasHeight`.