summaryrefslogtreecommitdiffstats
path: root/taccle/examples/reduce_reduce2.tac
diff options
context:
space:
mode:
Diffstat (limited to 'taccle/examples/reduce_reduce2.tac')
-rw-r--r--taccle/examples/reduce_reduce2.tac15
1 files changed, 15 insertions, 0 deletions
diff --git a/taccle/examples/reduce_reduce2.tac b/taccle/examples/reduce_reduce2.tac
new file mode 100644
index 0000000..53c6d3b
--- /dev/null
+++ b/taccle/examples/reduce_reduce2.tac
@@ -0,0 +1,15 @@
+# $Id: reduce_reduce2.tac,v 1.1 2004/08/18 23:53:43 tang Exp $
+
+# Here is another reduce/reduce conflict.
+#
+# Reference:
+# lex & yacc, page 225
+
+%token A B C Z
+
+%%
+
+start: A B x Z | y Z;
+
+x: C;
+y: A B C;