Skip to content

Commit

Permalink
as_frag: rm extraneous printf, modify comment.
Browse files Browse the repository at this point in the history
  • Loading branch information
Samin Ishtiaq committed Oct 3, 2016
1 parent 2edbf84 commit 9bced8d
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/parser/parse.fsy
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,6 @@ let as_frag d ds =
| d::ds ->
begin match d.d with
| TopLevelModule m' ->
Printf.printf "as_frag: another TopLevel\n" ;
as_mlist (Module(m, (mk_decl (TopLevelModule(m)) r doc) :: (List.rev cur))::out) ((m',d.drange,d.doc), []) ds
| _ -> as_mlist out ((m,r,doc), d::cur) ds
end in
Expand All @@ -67,7 +66,7 @@ let as_frag d ds =
let ms = as_mlist [] ((m,d.drange,d.doc), []) ds in
begin match ms with
| _::Module(n, _)::_ ->
(* This check hard-fails in dep.num_of_toplevelmods. *)
(* This check is coded to hard-fail in dep.num_of_toplevelmods. *)
let msg = "Support for more than one module in a file is deprecated" in
print2_warning "%s (Warning): %s\n" (string_of_range (range_of_lid n)) msg
| _ -> ()
Expand Down

0 comments on commit 9bced8d

Please sign in to comment.