[OCaml] (PR10016) Add a few missing line in OCamlLangImpl2.rst
authorPeter Zotov <whitequark@whitequark.org>
Tue, 5 Nov 2013 12:14:04 +0000 (12:14 +0000)
committerPeter Zotov <whitequark@whitequark.org>
Tue, 5 Nov 2013 12:14:04 +0000 (12:14 +0000)
Original patch by Damien Schoof

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@194067 91177308-0d34-0410-b5e6-96231b3b80d8

docs/tutorial/OCamlLangImpl2.rst

index 83a22ab22d4f438d73fed8a6aa2346ec7a754fb1..905b306746f1fd670c2ba4200ba8bc91281e6bfd 100644 (file)
@@ -339,6 +339,9 @@ expression:
             (* Eat the binop. *)
             Stream.junk stream;
 
             (* Eat the binop. *)
             Stream.junk stream;
 
+            (* Parse the primary expression after the binary operator *)
+            let rhs = parse_primary stream in
+
             (* Okay, we know this is a binop. *)
             let rhs =
               match Stream.peek stream with
             (* Okay, we know this is a binop. *)
             let rhs =
               match Stream.peek stream with