bnf/axes: add reverse

This commit is contained in:
Starbeamrainbowlabs 2021-11-30 19:10:45 +00:00
parent 2d8dcc7ebc
commit a7412a2c2f
Signed by: sbrl
GPG key ID: 1BE5172E637709C2

View file

@ -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