summaryrefslogtreecommitdiff
path: root/src/test/bw.mly
diff options
context:
space:
mode:
authorSébastien Dailly <sebastien@chimrod.com>2021-08-31 13:37:19 +0200
committerSébastien Dailly <sebastien@chimrod.com>2021-08-31 13:37:19 +0200
commit843230359b2157212c4e93b51994f0fde90d808b (patch)
tree1d22d4efb54f0e4c94564b8e8e1960a0a9fda8ef /src/test/bw.mly
parent6ccbcc2cadae41574e33226b9072a08354880d28 (diff)
Added endign work in lexer
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 {}