projects
/
gem5.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Update to ply 2.3
[gem5.git]
/
ext
/
ply
/
test
/
yacc_notok.py
diff --git
a/ext/ply/test/yacc_notok.py
b/ext/ply/test/yacc_notok.py
index dfa0059bedd6caf0a1aee99fdf2d91af25459eed..e566a1bf4774dbc3f12cb8f880c7662b5b05c0c0 100644
(file)
--- a/
ext/ply/test/yacc_notok.py
+++ b/
ext/ply/test/yacc_notok.py
@@
-7,6
+7,9
@@
import sys
sys.tracebacklimit = 0
+sys.path.insert(0,"..")
+import ply.yacc as yacc
+
# Parsing rules
precedence = (
('left','PLUS','MINUS'),
@@
-58,7
+61,6
@@
def p_expression_name(t):
def p_error(t):
print "Syntax error at '%s'" % t.value
-import yacc
yacc.yacc()