mirror of
https://github.com/sbrl/Minetest-WorldEditAdditions.git
synced 2024-11-26 00:53:00 +00:00
bnf/axes: add reverse
This commit is contained in:
parent
2d8dcc7ebc
commit
a7412a2c2f
1 changed files with 13 additions and 0 deletions
|
@ -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:
|
Examples:
|
||||||
|
|
||||||
|
@ -11,6 +14,14 @@ front 3 left 10 y 77 x 30 back 99
|
||||||
<axes> ::= <axis_part> *
|
<axes> ::= <axis_part> *
|
||||||
|
|
||||||
<axes_part> ::= <axis_name> <number>
|
<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> ::= <axis_name_absolute>
|
||||||
| <axis_name_relative>
|
| <axis_name_relative>
|
||||||
|
@ -22,6 +33,8 @@ front 3 left 10 y 77 x 30 back 99
|
||||||
|
|
||||||
<axis_letters_absolute> ::= x | y | z
|
<axis_letters_absolute> ::= x | y | z
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<number> ::= <digit> *
|
<number> ::= <digit> *
|
||||||
|
|
||||||
<digit> ::= 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 0
|
<digit> ::= 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 0
|
||||||
|
|
Loading…
Reference in a new issue