X-Git-Url: http://matita.cs.unibo.it/gitweb/?a=blobdiff_plain;f=matita%2Fcomponents%2Fgrafite_parser%2Fprint_grammar.ml;h=9951402820b473f2758d798145af2ec3a1c2a412;hb=6b76c5b3b82753966cabffd8536d8dd9f8cada20;hp=9fea12e40fbd9ceda710866d0862757f3df1e396;hpb=aa5c8c99c9f7ae285883cff133fc02b3d064888c;p=helm.git diff --git a/matita/components/grafite_parser/print_grammar.ml b/matita/components/grafite_parser/print_grammar.ml index 9fea12e40..995140282 100644 --- a/matita/components/grafite_parser/print_grammar.ml +++ b/matita/components/grafite_parser/print_grammar.ml @@ -84,7 +84,6 @@ and is_entry_dummy = function and is_symbol_dummy = function | Stoken ("DUMMY", _) -> true | Stoken _ -> false - | Smeta (_, lt, _) -> List.for_all is_symbol_dummy lt | Snterm e | Snterml (e, _) -> is_entry_dummy e | Slist1 x | Slist0 x -> is_symbol_dummy x | Slist1sep (x,y,false) | Slist0sep (x,y,false) -> is_symbol_dummy x && is_symbol_dummy y @@ -170,15 +169,6 @@ let visit_description desc fmt self = and visit_symbol s todo is_son = match s with - | Smeta (name, sl, _) -> - Format.fprintf fmt "%s " name; - List.fold_left ( - fun acc s -> - let todo = visit_symbol s acc is_son in - if is_son then - Format.fprintf fmt "@ "; - todo) - todo sl | Snterm entry -> visit_entry entry todo is_son | Snterml (entry,level) -> visit_entry entry ~level todo is_son | Slist0 symbol -> @@ -256,7 +246,7 @@ let rec visit_entries fmt todo pped = ~eq:(fun e1 e2 -> (name_of_entry e1) = (name_of_entry e2)) (List.sort (fun e1 e2 -> - Pervasives.compare (name_of_entry e1) (name_of_entry e2)) + Stdlib.compare (name_of_entry e1) (name_of_entry e2)) todo), pped in