equal
deleted
inserted
replaced
118 true |
118 true |
119 } |
119 } |
120 |
120 |
121 private def loading_theory(msg: Prover.Protocol_Output): Boolean = |
121 private def loading_theory(msg: Prover.Protocol_Output): Boolean = |
122 msg.properties match { |
122 msg.properties match { |
123 case Markup.Loading_Theory(name) => |
123 case Markup.Loading_Theory(Markup.Name(name)) => |
124 progress.theory(Progress.Theory(name, session = session_name)) |
124 progress.theory(Progress.Theory(name, session = session_name)) |
125 true |
125 false |
126 case _ => false |
126 case _ => false |
127 } |
127 } |
128 |
128 |
129 private def export(msg: Prover.Protocol_Output): Boolean = |
129 private def export(msg: Prover.Protocol_Output): Boolean = |
130 msg.properties match { |
130 msg.properties match { |
154 }) |
154 }) |
155 |
155 |
156 session.runtime_statistics += Session.Consumer("ML_statistics") |
156 session.runtime_statistics += Session.Consumer("ML_statistics") |
157 { |
157 { |
158 case Session.Runtime_Statistics(props) => runtime_statistics += props |
158 case Session.Runtime_Statistics(props) => runtime_statistics += props |
|
159 } |
|
160 |
|
161 session.finished_theories += Session.Consumer[Command.State]("finished_theories") |
|
162 { |
|
163 case st => |
|
164 val command = st.command |
|
165 val theory_name = command.node_name.theory |
|
166 val args = Protocol.Export.Args(theory_name = theory_name, name = Export.MARKUP) |
|
167 val xml = |
|
168 st.markups(Command.Markup_Index.markup) |
|
169 .to_XML(command.range, command.source, Markup.Elements.full) |
|
170 export_consumer(session_name, args, Bytes(YXML.string_of_body(xml))) |
159 } |
171 } |
160 |
172 |
161 session.all_messages += Session.Consumer[Any]("build_session_output") |
173 session.all_messages += Session.Consumer[Any]("build_session_output") |
162 { |
174 { |
163 case msg: Prover.Output => |
175 case msg: Prover.Output => |