Update to ply 2.3
[gem5.git] / ext / ply / test / yacc_uprec.py
index 139ce6318689c31a387efdb40cb1cb3f22a92b74..0e8711e88e6b77c2e80e6c24ffda69a28106c52d 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
@@ -54,7 +57,6 @@ def p_expression_name(t):
 def p_error(t):
     print "Syntax error at '%s'" % t.value
 
-import yacc
 yacc.yacc()