From 50840ad5b99ee844bea40a6f4dc8a6921b359cbc Mon Sep 17 00:00:00 2001 From: Starbeamrainbowlabs Date: Mon, 29 Nov 2021 23:20:40 +0000 Subject: [PATCH] Add BNF for axes parsing --- .docs/grammars/axes.bnf | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 .docs/grammars/axes.bnf diff --git a/.docs/grammars/axes.bnf b/.docs/grammars/axes.bnf new file mode 100644 index 0000000..5150c21 --- /dev/null +++ b/.docs/grammars/axes.bnf @@ -0,0 +1,27 @@ +{% + +Examples: + +``` +front 3 left 10 y 77 x 30 back 99 +``` + +%} + + ::= * + + ::= + + ::= + | + + ::= + | "-" + + ::= front | back | left | right | up | down | "?" + + ::= x | y | z + + ::= * + + ::= 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 0