src/Pure/PIDE/command.ML
changeset 52586 7a0935571a23
parent 52572 2fb1f9cf80d3
child 52596 40298d383463
equal deleted inserted replaced
52585:ff525a38dba9 52586:7a0935571a23
    16   type exec = eval * print list
    16   type exec = eval * print list
    17   val no_exec: exec
    17   val no_exec: exec
    18   val exec_ids: exec option -> Document_ID.exec list
    18   val exec_ids: exec option -> Document_ID.exec list
    19   val stable_eval: eval -> bool
    19   val stable_eval: eval -> bool
    20   val stable_print: print -> bool
    20   val stable_print: print -> bool
       
    21   val same_eval: eval * eval -> bool
    21   val read: (unit -> theory) -> Token.T list -> Toplevel.transition
    22   val read: (unit -> theory) -> Token.T list -> Toplevel.transition
    22   val eval: (unit -> theory) -> Token.T list -> eval -> eval
    23   val eval: (unit -> theory) -> Token.T list -> eval -> eval
    23   val print: bool -> string -> eval -> print list -> print list option
    24   val print: bool -> string -> eval -> print list -> print list option
    24   type print_fn = Toplevel.transition -> Toplevel.state -> unit
    25   type print_fn = Toplevel.transition -> Toplevel.state -> unit
    25   val print_function: {name: string, pri: int, persistent: bool} ->
    26   val print_function: {name: string, pri: int, persistent: bool} ->
   108 fun stable_eval ({exec_id, eval_process}: eval) =
   109 fun stable_eval ({exec_id, eval_process}: eval) =
   109   stable_goals exec_id andalso memo_stable eval_process;
   110   stable_goals exec_id andalso memo_stable eval_process;
   110 
   111 
   111 fun stable_print ({exec_id, print_process, ...}: print) =
   112 fun stable_print ({exec_id, print_process, ...}: print) =
   112   stable_goals exec_id andalso memo_stable print_process;
   113   stable_goals exec_id andalso memo_stable print_process;
       
   114 
       
   115 fun same_eval (eval: eval, eval': eval) =
       
   116   #exec_id eval = #exec_id eval' andalso stable_eval eval';
   113 
   117 
   114 
   118 
   115 (* read *)
   119 (* read *)
   116 
   120 
   117 fun read init span =
   121 fun read init span =