Skip to content

Commit

Permalink
Merge pull request ocaml#293 from chakku000/fix-lex-yacc-example
Browse files Browse the repository at this point in the history
change divisor and dividend
  • Loading branch information
gasche authored Dec 14, 2018
2 parents c35a08a + 9828530 commit b60ad6b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/05-lex-yacc/src/parser.mly
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,6 @@ expr
| e1=expr PLUS e2=expr { e1 + e2 }
| e1=expr MINUS e2=expr { e1 - e2 }
| e1=expr TIMES e2=expr { e1 * e2 }
| e1=expr DIV e2=expr { e2 / e1 }
| e1=expr DIV e2=expr { e1 / e2 }
| MINUS e = expr %prec UMINUS { - e }
;

0 comments on commit b60ad6b

Please sign in to comment.