equal
deleted
inserted
replaced
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 *) |