VernacControlSourcePartially interpreted control flags.
Translate from syntax and add default timeout.
with_local_state state0 f should run f with state0 installed, capture the state produced by running f and revert the global state afterwards.
val under_control :
loc:Loc.t option ->
with_local_state:('state0, 'state) with_local_state ->
'state0 control_entries ->
noop:'b ->
(unit -> 'b) ->
'state control_entries * 'bunder_control ~loc ~with_local_state control ~noop f runs f () in the context given by the control.
If the control cause execution to end with no more work to be done and no error (eg Fail when f raised an exception) then noop is returned.
Print any final messages (eg from Time) and raise final exceptions (eg from Fail when the command did not fail). The returned boolean tells if we should be noop (Fail where the command failed or Succeed where it succeeded).