begin parser to load from file

This commit is contained in:
2025-07-12 02:02:21 +01:00
parent 5b63471b30
commit bb5e3e8ef3
9 changed files with 171 additions and 6 deletions

17
fcore/parsing/parsing.md Normal file
View File

@@ -0,0 +1,17 @@
# Parsing
The parsing functionality is for saving and loading from a custom file format.
The BNF for the custom file format is below.
Terminals are surrounded by `**` to the left and right. (rule)+ means "1 o more".
```
int ::= (0-9)+
item ::= **{** int int int int int int int int **}**
grid ::= int int **{** (item)+ **}**
```
The large number of `int`s in the `item` always follows the order: `x y ex ey r g b a`.