summaryrefslogtreecommitdiff
path: root/src/test/bw.mly
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/bw.mly')
-rw-r--r--src/test/bw.mly18
1 files changed, 18 insertions, 0 deletions
diff --git a/src/test/bw.mly b/src/test/bw.mly
new file mode 100644
index 0000000..8b022bd
--- /dev/null
+++ b/src/test/bw.mly
@@ -0,0 +1,18 @@
+%token B
+%token W
+%token EOL
+
+%start<unit> main
+
+%%
+
+seq : {}
+ | seq B {}
+ | seq W {}
+ ;
+
+ending : {}
+ | W W W {}
+ ;
+
+main : seq ending EOL {}