summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorBen Culkin <scorpress@gmail.com>2021-03-13 07:17:38 -0500
committerBen Culkin <scorpress@gmail.com>2021-03-13 07:17:38 -0500
commit5e1e3767b335479040e48ff57f1eeff8a8f0d0ef (patch)
treefc397299c29d2aeefdc94afa51de7d15d96173c5 /docs
parent768aacdf6e02ad39b8a26a88cb64670235378e1a (diff)
Rearrange some things
This moves some documentation to a specific docs folder, as well as creating a new examples folder, and putting the two pieces of example code into there
Diffstat (limited to 'docs')
-rwxr-xr-xdocs/new-syntax.txt13
1 files changed, 13 insertions, 0 deletions
diff --git a/docs/new-syntax.txt b/docs/new-syntax.txt
new file mode 100755
index 0000000..f6578b4
--- /dev/null
+++ b/docs/new-syntax.txt
@@ -0,0 +1,13 @@
+[grammar] → ([block] ( / \n\.\n ? / [block])*) ?
+
+[block] → [pragma - block]
+→ [rule - block]
+→ [where - block]
+
+[pragma - block] → [pragma] ( / \n( ? !\t) / [pragma])*
+
+[rule - block] → [rule - decl] [rule - case] ( / \n\t / [rule - case])*
+
+[where - block] → where / \n\t / ([rule - block] / \n\t / ) + in / \n\t / [rule - block]
+
+[pragma] → pragma [pragma - name] [pragma - body]