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_noerror.py
diff --git
a/ext/ply/test/yacc_noerror.py
b/ext/ply/test/yacc_noerror.py
index d92f48ea6f2e1c0f2bd26ba16b4c8d35f7f949eb..9c11838ebe47e53526106089b5b1efa6f0d2d459 100644
(file)
--- a/
ext/ply/test/yacc_noerror.py
+++ b/
ext/ply/test/yacc_noerror.py
@@
-6,6
+6,9
@@
import sys
sys.tracebacklimit = 0
+sys.path.insert(0,"..")
+import ply.yacc as yacc
+
from calclex import tokens
# Parsing rules
@@
-56,7
+59,7
@@
def p_expression_name(t):
print "Undefined name '%s'" % t[1]
t[0] = 0
-import yacc
+
yacc.yacc()