diff options
| author | Pierre-Marie Pédrot | 2016-12-14 08:09:54 +0100 |
|---|---|---|
| committer | Pierre-Marie Pédrot | 2017-05-19 15:17:31 +0200 |
| commit | 735ab0a7d2f7afaed0695e014034f4b2d6e287c8 (patch) | |
| tree | 42dfb80b8695c24b14e56b5ebf58d11abe6ee429 /Init.v | |
| parent | b5530d8953e74def1feb7dd651ba504e24749055 (diff) | |
Stdlib functions now return Ltac2 exceptions.
Diffstat (limited to 'Init.v')
| -rw-r--r-- | Init.v | 14 |
1 files changed, 14 insertions, 0 deletions
@@ -30,3 +30,17 @@ Ltac2 Type 'a option := [ None | Some ('a) ]. Ltac2 Type 'a ref := { mutable contents : 'a }. Ltac2 Type bool := [ true | false ]. + +(** Pervasive exceptions *) + +Ltac2 Type exn ::= [ Out_of_bounds ]. +(** Used for bound checking, e.g. with String and Array. *) + +Ltac2 Type exn ::= [ Not_focussed ]. +(** In Ltac2, the notion of "current environment" only makes sense when there is + at most one goal under focus. Contrarily to Ltac1, instead of dynamically + focussing when we need it, we raise this non-backtracking error when it does + not make sense. *) + +Ltac2 Type exn ::= [ Not_found ]. +(** Used when something is missing. *) |
