equal
deleted
inserted
replaced
783 type 'a context_parser = Context.generic * T list -> 'a * (Context.generic * T list); |
783 type 'a context_parser = Context.generic * T list -> 'a * (Context.generic * T list); |
784 |
784 |
785 |
785 |
786 (* wrapped syntax *) |
786 (* wrapped syntax *) |
787 |
787 |
788 fun syntax_generic scan src context = |
788 fun syntax_generic scan src0 context = |
789 let |
789 let |
|
790 val src = map (transfer (Context.theory_of context)) src0; |
790 val (name, pos) = name_of_src src; |
791 val (name, pos) = name_of_src src; |
791 val old_reports = maps reports_of_value src; |
792 val old_reports = maps reports_of_value src; |
792 val args1 = map init_assignable (args_of_src src); |
793 val args1 = map init_assignable (args_of_src src); |
793 fun reported_text () = |
794 fun reported_text () = |
794 if Context_Position.reports_enabled_generic context then |
795 if Context_Position.reports_enabled_generic context then |