Lexical Conventions
Gospel borrows most of OCaml's lexical conventions. This means that the whitespace rules are the same. The same kind of variable names are allowed, integers are written the same way, etc. There are however a number of exceptions:
There are extra reserved keywords:
axiom checks coercion consumes diverges ensures ephemeral
equivalent exists forall invariant model modifies old
predicate pure raises requires variantThere are reserved symbols:
<-> /\ \/
There is an extra literal modifier for literals of type
int
. Unmodified literals (e.g.42
) are of typeinteger
, but Gospel adds ai
modifier to write literals of typeint
(e.g.42i
).