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_badtok.py
diff --git
a/ext/ply/test/yacc_badtok.py
b/ext/ply/test/yacc_badtok.py
index a17d26aaa0c4c9af29ac7d0e8ab88043d003c346..4f2af5162daffd4179bff07aab21dccdd88b52db 100644
(file)
--- a/
ext/ply/test/yacc_badtok.py
+++ b/
ext/ply/test/yacc_badtok.py
@@
-7,6
+7,9
@@
import sys
sys.tracebacklimit = 0
+sys.path.insert(0,"..")
+import ply.yacc as yacc
+
tokens = "Hello"
# Parsing rules
@@
-60,7
+63,6
@@
def p_expression_name(t):
def p_error(t):
print "Syntax error at '%s'" % t.value
-import yacc
yacc.yacc()