Update to ply 2.3
[gem5.git] / ext / ply / test / yacc_error2.py
index d4fd1d21977f6a570696ffc67c31305ab89b6514..8f3a05290ab0ebaa900e41b5fd9543a866848b60 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():
     print "Syntax error at '%s'" % t.value
 
-import yacc
 yacc.yacc()