summaryrefslogtreecommitdiff
path: root/test-data/brainfuck.abnf
diff options
context:
space:
mode:
authorJSDurand <mmemmew@gmail.com>2023-08-10 11:15:53 +0800
committerJSDurand <mmemmew@gmail.com>2023-08-10 11:15:53 +0800
commit55f7068e91182dfe458fad41c3251388ea461569 (patch)
tree115d02d0d9d97f68e4fe24334228dbda82558491 /test-data/brainfuck.abnf
parentb2ca9a285f09d90259aaa7c4d09bb7335211020b (diff)
Add an example 'bfinterp'HEADmaster
My plan is to build a little interpreter for an esoteric programming language as the most basic application of this package, before embarking on some more ambitious applications.
Diffstat (limited to 'test-data/brainfuck.abnf')
-rw-r--r--test-data/brainfuck.abnf4
1 files changed, 4 insertions, 0 deletions
diff --git a/test-data/brainfuck.abnf b/test-data/brainfuck.abnf
new file mode 100644
index 0000000..df3d1da
--- /dev/null
+++ b/test-data/brainfuck.abnf
@@ -0,0 +1,4 @@
+brainfuck = *unit
+
+unit = ">" / "<" / "+" / "-" / "," / ";" /
+ "[" brainfuck "]"