summaryrefslogtreecommitdiff
path: root/test/racc/assets/digraph.y
diff options
context:
space:
mode:
authorHiroshi SHIBATA <hsbt@ruby-lang.org>2019-05-13 21:25:22 +0900
committerHiroshi SHIBATA <hsbt@ruby-lang.org>2019-06-19 18:17:25 +0900
commit1a2546c2be839baa7d0a50dc056d4d6987d26852 (patch)
tree19fef5d8b8d96452a51ab68e8093ea895192ca27 /test/racc/assets/digraph.y
parentcbe06cd3501fdadd0e6e63094da2973484d70b0b (diff)
Backport racc-1.4.15 from upstream.
Diffstat (limited to 'test/racc/assets/digraph.y')
-rw-r--r--test/racc/assets/digraph.y29
1 files changed, 29 insertions, 0 deletions
diff --git a/test/racc/assets/digraph.y b/test/racc/assets/digraph.y
new file mode 100644
index 0000000000..17a034ee54
--- /dev/null
+++ b/test/racc/assets/digraph.y
@@ -0,0 +1,29 @@
+# ? detect digraph bug
+
+class P
+ token A B C D
+rule
+ target : a b c d
+ a : A
+ |
+ b : B
+ |
+ c : C
+ |
+ d : D
+ |
+end
+
+---- inner
+
+ def parse
+ do_parse
+ end
+
+ def next_token
+ [false, '$']
+ end
+
+---- footer
+
+P.new.parse