diff options
author | William Joye <wjoye@cfa.harvard.edu> | 2017-05-29 20:32:37 (GMT) |
---|---|---|
committer | William Joye <wjoye@cfa.harvard.edu> | 2017-05-29 20:32:37 (GMT) |
commit | 79b861f6cc5eee9985b08a9b3581580cf02a6965 (patch) | |
tree | 9c55c002e06068f2dc7765168f6fb813a8ec3c9e /taccle/examples/shift_reduce2.tac | |
parent | 76859fcafcbd024cb2ea5a200fbf361e906d1fac (diff) | |
download | blt-79b861f6cc5eee9985b08a9b3581580cf02a6965.zip blt-79b861f6cc5eee9985b08a9b3581580cf02a6965.tar.gz blt-79b861f6cc5eee9985b08a9b3581580cf02a6965.tar.bz2 |
add fickle/taccle
Diffstat (limited to 'taccle/examples/shift_reduce2.tac')
-rwxr-xr-x | taccle/examples/shift_reduce2.tac | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/taccle/examples/shift_reduce2.tac b/taccle/examples/shift_reduce2.tac new file mode 100755 index 0000000..c3ad0d3 --- /dev/null +++ b/taccle/examples/shift_reduce2.tac @@ -0,0 +1,20 @@ +# $Id: shift_reduce2.tac,v 1.1 2004/08/18 23:53:43 tang Exp $ + +# Here is one final shift/reduce conflict. taccles resolves the +# problem by giving precedence to a shift. +# +# Reference: +# lex & yacc, pages 226-227 + +%token A R + +%% + +start: x1 + | x2 + | y R; + +x1: A R; +x2: A z; +y: A; +z: R; |