(************************************************************************) (* * The Coq Proof Assistant / The Coq Development Team *) (* v * INRIA, CNRS and contributors - Copyright 1999-2018 *) (* { CAst.make VernacDrop } | IDENT "Quit"; "." -> { CAst.make VernacQuit } | IDENT "Backtrack"; n = natural ; m = natural ; p = natural; "." -> { CAst.make (VernacBacktrack (n,m,p)) } | cmd = Pvernac.main_entry -> { match cmd with | None -> raise Stm.End_of_input | Some (loc,c) -> CAst.make ~loc (VernacControl c) } ] ] ; END { let parse_toplevel pa = Pcoq.Entry.parse vernac_toplevel pa }