Parse.clear_prefs_for_term : string -> unit

SYNOPSIS
Removes pretty-printing preference information from the global grammar.

LIBRARY
Parse

DESCRIBE
The clear_prefs_for_term function removes the information stored in the global grammar as to which (if any) rule should be preferred when terms are pretty-printed. This will cause terms of the given name to be printed using ``raw'' syntax.

FAILURE
Never fails.

EXAMPLE
The initial grammar has two rules for conditional expressions, with the if-then-else form preferred, so that even if the old HOL88 style syntax is used for input, the term is printed out in the if-then-else style:
   - Term`p => q | r`;
   <<HOL message: inventing new type variable names: 'a.>>
   > val it = `(if p then q else r)` : term
If clear_prefs_for_term is applied, neither syntax will print:
   - clear_prefs_for_term "COND";
   > val it = () : unit
   - Term`p => q | r`;
   <<HOL message: inventing new type variable names: 'a.>>
   > val it = `COND p q r` : term

SEEALSO  prefer_form_with_tok

HOL  Kananaskis 0