(************************************************************************) (* v * The Coq Proof Assistant / The Coq Development Team *) (* wit_tactic0 | 1 -> wit_tactic1 | 2 -> wit_tactic2 | 3 -> wit_tactic3 | 4 -> wit_tactic4 | 5 -> wit_tactic5 | n -> Errors.anomaly (str "Unavailable tactic level:" ++ spc () ++ int n) let tactic_genarg_level s = if Int.equal (String.length s) 7 && String.sub s 0 6 = "tactic" then let c = s.[6] in if '5' >= c && c >= '0' then Some (Char.code c - 48) else None else None let is_tactic_genarg = function | ExtraArgType s -> tactic_genarg_level s <> None | _ -> false