mirror of
https://github.com/sbrl/Minetest-WorldEditAdditions.git
synced 2024-12-22 19:45:02 +00:00
Add BNF for axes parsing
This commit is contained in:
parent
14ba42fa4a
commit
50840ad5b9
1 changed files with 27 additions and 0 deletions
27
.docs/grammars/axes.bnf
Normal file
27
.docs/grammars/axes.bnf
Normal file
|
@ -0,0 +1,27 @@
|
|||
{%
|
||||
|
||||
Examples:
|
||||
|
||||
```
|
||||
front 3 left 10 y 77 x 30 back 99
|
||||
```
|
||||
|
||||
%}
|
||||
|
||||
<axes> ::= <axis_part> *
|
||||
|
||||
<axes_part> ::= <axis_name> <number>
|
||||
|
||||
<axis_name> ::= <axis_name_absolute>
|
||||
| <axis_name_relative>
|
||||
|
||||
<axis_name_absolute> ::= <axis_letters_absolute>
|
||||
| "-" <axis_letters_absolute>
|
||||
|
||||
<axis_name_relative> ::= front | back | left | right | up | down | "?"
|
||||
|
||||
<axis_letters_absolute> ::= x | y | z
|
||||
|
||||
<number> ::= <digit> *
|
||||
|
||||
<digit> ::= 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 0
|
Loading…
Reference in a new issue