src/Pure/Syntax/syntax_phases.ML
changeset 62800 7ac100f86863
parent 62783 75ee05386b90
child 62897 8093203f0b89
equal deleted inserted replaced
62799:46e6f91c4da1 62800:7ac100f86863
   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