Update to ply 2.3
[gem5.git] / ext / ply / test / yacc_inf.py
index 885e2c4df68485e7d154f9b41f7b3acf1a59f0a1..9b9aef75d9d1da64ee5da7a1b100c1a8c6d93f54 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
@@ -47,7 +50,6 @@ def p_expression_group(t):
 def p_error(t):
     print "Syntax error at '%s'" % t.value
 
-import yacc
 yacc.yacc()