[mod] readme

This commit is contained in:
Christian Fraß 2022-03-20 21:48:23 +01:00
parent b848eeecd6
commit 71d5370d77

View file

@ -31,8 +31,9 @@ record<
version:string,
lexer_rules:list<
record<
type:string,
parameters:map<string,any>
pattern:string,
name:(null|string),
?pass:boolean
>
>,
parser_rules:list<
@ -52,6 +53,7 @@ record<
```
where:
- `version` should be `"2"`
- `parser_start` is one of the parser rule `label` values.
- `lexer_rules.*.type` is one of `ignore`, `void`, `boolean`, `int`, `float`, `string` (see section _Lexer rule types_)
- `parser_rules.*.conclusion.*.type` is one of `terminal`, `variable` (see section _Conclusion element types_)