Update to ply 2.3
[gem5.git] / ext / ply / test / yacc_badprec2.py
index 9cbc9982765e10acf74ed3d43ee891a6050bf8d1..206bda768df6839f487f9225f8d5d1a9a4973a25 100644 (file)
@@ -6,6 +6,9 @@
 import sys
 sys.tracebacklimit = 0
 
+sys.path.insert(0,"..")
+import ply.yacc as yacc
+
 from calclex import tokens
 
 # Parsing rules
@@ -59,7 +62,6 @@ def p_expression_name(t):
 def p_error(t):
     print "Syntax error at '%s'" % t.value
 
-import yacc
 yacc.yacc()