Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Why3
why3
Commits
9b1e8be3
Commit
9b1e8be3
authored
Oct 20, 2012
by
Andrei Paskevich
Browse files
update the WhyML section in the manual
parent
a1da51d7
Changes
6
Expand all
Hide whitespace changes
Inline
Side-by-side
doc/expr.bnf
View file @
9b1e8be3
...
...
@@ -22,15 +22,15 @@
| "raise" uqualid ; exception raising
| "raise" "(" uqualid expr ")" ;
| "try" expr "with" ("|" handler)+ "end" ; exception catching
| "any" type-c ;
| "any" type-c ;
| "let" pattern "=" expr "in" expr ; local binding
| "match" expr ("," expr)* "with" ; pattern matching
("|" expr-case)+ "end" ;
| "(" expr ("," expr)+ ")" ; tuple
| "{
|
" field-value+ "
|
}" ; record
| "{" field-value+ "}"
; record
| expr "." lqualid ; field access
| expr "." lqualid "<-" expr ; field assignment
| "{
|
" expr "with" field-value+ "
|
}" ; field update
| "{" expr "with" field-value+ "}"
; field update
| expr ":" type ; cast
| label expr ; label
| "'" uident ":" expr ; code mark
...
...
doc/macros.tex
View file @
9b1e8be3
...
...
@@ -57,7 +57,8 @@
morekeywords=
{
namespace,predicate,function,inductive,type,use,clone,
%
import,export,theory,module,end,in,with,
%
let,rec,for,to,do,done,match,if,then,else,while,try,invariant,variant,
%
absurd,raise,assert,exception,
%
absurd,raise,assert,exception,private,abstract,mutable,ghost,
%
downto,raises,writes,reads,requires,ensures,returns,val,model,
%
goal,axiom,lemma,forall
}
,
%
string=[b]",
%
sensitive=true,
%
...
...
doc/module.bnf
View file @
9b1e8be3
...
...
@@ -18,8 +18,8 @@
mtype-defn ::= ; abstract type
| "=" type ; alias type
| "=" "|"? type-case ("|" type-case)* ; algebraic type
| "=" "{
|
" mrecord-field ; record type
(";" mrecord-field)* "
|
}" ;
| "=" "{" mrecord-field
; record type
(";" mrecord-field)* "}"
;
\
mrecord-field ::= "mutable"? lident label* ":" type
\
...
...
doc/term.bnf
View file @
9b1e8be3
...
...
@@ -10,23 +10,23 @@
| lqualid term+ ; function application
| "if" formula "then" term ;
"else" term ; conditional
| "let" pattern "=" term "in" term
| "let" pattern "=" term "in" term
; local binding
| "match" term ("," term)* "with" ;
("|" term-case)+ "end" ; pattern matching
| "(" term ("," term)+ ")" ; tuple
| "{
|
" field-value+ "
|
}" ; record
| "{" field-value+ "}"
; record
| term "." lqualid ; field access
| "{
|
" term "with" field-value+ "
|
}" ; field update
| "{" term "with" field-value+ "}"
; field update
| term ":" type ; cast
| label term ; label
| "'" uident ; code mark
| "(" term ")" ; parentheses
\
term-case ::= pattern "->" term ;
term-case ::= pattern "->" term ;
\
pattern ::= pattern "|" pattern ; or pattern
| pattern "," pattern ; tuple
| pattern "," pattern ; tuple
| "_" ; catch-all
| lident ; variable
| uident pattern* ; constructor
...
...
doc/theory2.bnf
View file @
9b1e8be3
...
...
@@ -2,7 +2,7 @@
type-defn ::= ; abstract type
| "=" type ; alias type
| "=" "|"? type-case ("|" type-case)* ; algebraic type
| "=" "{
|
" record-field (";" record-field)* "
|
}" ; record type
| "=" "{" record-field (";" record-field)* "}"
; record type
\
type-case ::= uident label* type-param*
\
...
...
doc/whyml.tex
View file @
9b1e8be3
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment