Commit d1784bcc authored by Andrei Paskevich's avatar Andrei Paskevich
Browse files

fix py_parser.mly for older menhir

parent 257e1274
...@@ -264,8 +264,8 @@ term_: ...@@ -264,8 +264,8 @@ term_:
| Tinfix (l,o,r) -> Tinnfix (l,o,r) | d -> d } | Tinfix (l,o,r) -> Tinnfix (l,o,r) | d -> d }
| NOT term | NOT term
{ Tunop (Tnot, $2) } { Tunop (Tnot, $2) }
| prefix_op term %prec prec_prefix_op | o = prefix_op ; t = term %prec prec_prefix_op
{ Tidapp (Qident $1, [$2]) } { Tidapp (Qident o, [t]) }
| l = term ; o = bin_op ; r = term | l = term ; o = bin_op ; r = term
{ Tbinop (l, o, r) } { Tbinop (l, o, r) }
| l = term ; o = infix_op ; r = term | l = term ; o = infix_op ; r = term
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment