Skip to content
Browse files

reverted p_error() API

  • Loading branch information...
1 parent c2859fc commit 18c79055dd933bdc303668a8507915d1e5795ad9 @dabeaz committed
Showing with 1 addition and 1 deletion.
  1. +1 −1 example/calc/calc.py
View
2 example/calc/calc.py
@@ -89,7 +89,7 @@ def p_expression_name(p):
print("Undefined name '%s'" % p[1])
p[0] = 0
-def p_error(p,parser):
+def p_error(p):
if p:
print("Syntax error at '%s'" % p.value)
else:

0 comments on commit 18c7905

Please sign in to comment.
Something went wrong with that request. Please try again.