equal
deleted
inserted
replaced
14 "Failed to initialize protocol handler: " + quote(name) + "\n" + Exn.message(exn)) |
14 "Failed to initialize protocol handler: " + quote(name) + "\n" + Exn.message(exn)) |
15 |
15 |
16 sealed case class State( |
16 sealed case class State( |
17 session: Session, |
17 session: Session, |
18 handlers: Map[String, Session.Protocol_Handler] = Map.empty, |
18 handlers: Map[String, Session.Protocol_Handler] = Map.empty, |
19 functions: Map[String, Prover.Protocol_Output => Boolean] = Map.empty) |
19 functions: Map[String, Session.Protocol_Function] = Map.empty) |
20 { |
20 { |
21 def get(name: String): Option[Session.Protocol_Handler] = handlers.get(name) |
21 def get(name: String): Option[Session.Protocol_Handler] = handlers.get(name) |
22 |
22 |
23 def init(handler: Session.Protocol_Handler): State = |
23 def init(handler: Session.Protocol_Handler): State = |
24 { |
24 { |