equal
deleted
inserted
replaced
156 val reports = Unsynchronized.ref ([]: Position.report_text list); |
156 val reports = Unsynchronized.ref ([]: Position.report_text list); |
157 fun report pos = Position.store_reports reports [pos]; |
157 fun report pos = Position.store_reports reports [pos]; |
158 val append_reports = Position.append_reports reports; |
158 val append_reports = Position.append_reports reports; |
159 |
159 |
160 fun report_pos tok = |
160 fun report_pos tok = |
161 if Lexicon.suppress_markup tok then Position.none |
161 if Lexicon.is_literal tok andalso null (Lexicon.literal_markup (Lexicon.str_of_token tok)) |
162 else Lexicon.pos_of_token tok; |
162 then Position.none else Lexicon.pos_of_token tok; |
163 |
163 |
164 fun trans a args = |
164 fun trans a args = |
165 (case trf a of |
165 (case trf a of |
166 NONE => Ast.mk_appl (Ast.Constant a) args |
166 NONE => Ast.mk_appl (Ast.Constant a) args |
167 | SOME f => f ctxt args); |
167 | SOME f => f ctxt args); |