File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 19
19
% token EOF
20
20
21
21
% {
22
- open Core
23
22
open Ast
24
23
(* get the precedence of the binary operator token. *)
25
24
let precedence c =
26
- match Hashtbl. find binop_precedence c with
25
+ match Base. Hashtbl. find binop_precedence c with
27
26
| None -> - 1
28
27
| Some p -> p
29
28
% }
@@ -116,7 +115,8 @@ prototype:
116
115
{ Prototype (name, args) }
117
116
| kind = operator_kind; op = operator; prec = precedence;
118
117
args = delimited(LEFT_PAREN , list (IDENT ), RIGHT_PAREN )
119
- { match kind with
118
+ { let open Base in
119
+ match kind with
120
120
| `Binary ->
121
121
if Int. (<> ) (List. length args) 2
122
122
then raise_s
@@ -143,7 +143,7 @@ operator_kind:
143
143
;
144
144
145
145
precedence:
146
- | n = option (NUMBER ) { Int. of_float (Option. value n ~default: 30.0 ) }
146
+ | n = option (NUMBER ) { Base. Int. of_float (Base. Option. value n ~default: 30.0 ) }
147
147
;
148
148
149
149
(* definition
You can’t perform that action at this time.
0 commit comments