equal
deleted
inserted
replaced
336 val limit = Config.get ctxt Syntax.ambiguity_limit; |
336 val limit = Config.get ctxt Syntax.ambiguity_limit; |
337 val ambig_msgs = |
337 val ambig_msgs = |
338 if len <= 1 then [] |
338 if len <= 1 then [] |
339 else |
339 else |
340 [cat_lines |
340 [cat_lines |
341 (("Ambiguous input" ^ Position.here (Position.reset_range pos) ^ |
341 (("Ambiguous input" ^ Position.here (Position.no_range_position pos) ^ |
342 " produces " ^ string_of_int len ^ " parse trees" ^ |
342 " produces " ^ string_of_int len ^ " parse trees" ^ |
343 (if len <= limit then "" else " (" ^ string_of_int limit ^ " displayed)") ^ ":") :: |
343 (if len <= limit then "" else " (" ^ string_of_int limit ^ " displayed)") ^ ":") :: |
344 map (Pretty.string_of o Pretty.item o single o Parser.pretty_parsetree) |
344 map (Pretty.string_of o Pretty.item o single o Parser.pretty_parsetree) |
345 (take limit pts))]; |
345 (take limit pts))]; |
346 |
346 |