mirror of
https://github.com/sbrl/Minetest-WorldEditAdditions.git
synced 2024-11-23 23:53:44 +01:00
bnf/axes: add reverse
This commit is contained in:
parent
2d8dcc7ebc
commit
a7412a2c2f
@ -1,4 +1,7 @@
|
||||
{%
|
||||
# Lists of axes
|
||||
|
||||
In various commands such as `//copy+`, `//move+`, and others lists of axes are used. These are all underpinned by a single grammar and a single parser (located in `worldeditadditions/utils/parse/axes.lua`). While the parser itself requires pre-split tokens (see `split_shell` for that), the grammar which it parses is documnted here.
|
||||
|
||||
Examples:
|
||||
|
||||
@ -11,6 +14,14 @@ front 3 left 10 y 77 x 30 back 99
|
||||
<axes> ::= <axis_part> *
|
||||
|
||||
<axes_part> ::= <axis_name> <number>
|
||||
| <axis_name> <number> <reverse>
|
||||
|
||||
<reverse> ::= <number>
|
||||
| <reverse_name>
|
||||
|
||||
<reverse_name> ::= sym | symmetrical | mirror | mir | rev | reverse | true
|
||||
|
||||
|
||||
|
||||
<axis_name> ::= <axis_name_absolute>
|
||||
| <axis_name_relative>
|
||||
@ -22,6 +33,8 @@ front 3 left 10 y 77 x 30 back 99
|
||||
|
||||
<axis_letters_absolute> ::= x | y | z
|
||||
|
||||
|
||||
|
||||
<number> ::= <digit> *
|
||||
|
||||
<digit> ::= 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 0
|
||||
|
Loading…
Reference in New Issue
Block a user