src/HOL/Import/proof_kernel.ML
changeset 14673 3d760a971fde
parent 14620 1be590fd2422
child 14685 92f34880efe3
equal deleted inserted replaced
14672:79bac83b2c27 14673:3d760a971fde
   168 	PK (m,s) => (writeln ("PK (" ^ m ^ "): " ^ s); raise e)
   168 	PK (m,s) => (writeln ("PK (" ^ m ^ "): " ^ s); raise e)
   169       | _ => Goals.print_exn e
   169       | _ => Goals.print_exn e
   170 
   170 
   171 (* Compatibility. *)
   171 (* Compatibility. *)
   172 
   172 
   173 fun mk_syn c = if Symbol.is_identifier c then NoSyn else Syntax.literal c
   173 (* FIXME lookup inner syntax!? *)
   174 
   174 fun mk_syn c = if Syntax.is_identifier c then NoSyn else Syntax.literal c
       
   175 
       
   176 (* FIXME lookup outer syntax!? *)
   175 val keywords = ["open"]
   177 val keywords = ["open"]
   176 fun quotename c = if Symbol.is_identifier c andalso not (c mem keywords) then c else quote c
   178 fun quotename c =
       
   179   if Syntax.is_identifier c andalso not (c mem_string keywords) then c else quote c
   177 
   180 
   178 fun smart_string_of_cterm ct =
   181 fun smart_string_of_cterm ct =
   179     let
   182     let
   180 	val {sign,t,T,...} = rep_cterm ct
   183 	val {sign,t,T,...} = rep_cterm ct
   181         (* Hack to avoid parse errors with Trueprop *)
   184         (* Hack to avoid parse errors with Trueprop *)