From a7412a2c2f704050a0aef1067996b20791309adb Mon Sep 17 00:00:00 2001 From: Starbeamrainbowlabs Date: Tue, 30 Nov 2021 19:10:45 +0000 Subject: [PATCH] bnf/axes: add reverse --- .docs/grammars/axes.bnf | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/.docs/grammars/axes.bnf b/.docs/grammars/axes.bnf index 6f5ae77..11be87a 100644 --- a/.docs/grammars/axes.bnf +++ b/.docs/grammars/axes.bnf @@ -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 ::= * ::= + | + + ::= + | + + ::= sym | symmetrical | mirror | mir | rev | reverse | true + + ::= | @@ -22,6 +33,8 @@ front 3 left 10 y 77 x 30 back 99 ::= x | y | z + + ::= * ::= 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 0