-
- Downloads
WhyML: allow return types with names: f (a:int) : (x: int, ghost y: int)
These names are only visible under "ensures" but not under "returns". If the result is named, the special variable "result" is not used. In a tuple, either each component should be named, or none at all. Underscores are allowed. Parentheses around the return type are required. Each name must be given its own type: "f () : (x y: int)" is rejected. Identifiers without cast are treated as types, not as names. To name the result without giving its type, use "returns".
Showing
- examples/add_list.mlw 4 additions, 4 deletionsexamples/add_list.mlw
- examples/add_list_vc_sp.mlw 4 additions, 4 deletionsexamples/add_list_vc_sp.mlw
- examples/fibonacci.mlw 3 additions, 3 deletionsexamples/fibonacci.mlw
- examples/finger_trees.mlw 2 additions, 2 deletionsexamples/finger_trees.mlw
- examples/linked_list_rev.mlw 4 additions, 4 deletionsexamples/linked_list_rev.mlw
- examples/sieve.mlw 2 additions, 2 deletionsexamples/sieve.mlw
- examples/sumrange.mlw 8 additions, 5 deletionsexamples/sumrange.mlw
- examples/swap.mlw 2 additions, 2 deletionsexamples/swap.mlw
- examples/verifythis_2017_maximum_sum_submatrix.mlw 5 additions, 6 deletionsexamples/verifythis_2017_maximum_sum_submatrix.mlw
- examples/verifythis_2018_le_rouge_et_le_noir_1.mlw 3 additions, 4 deletionsexamples/verifythis_2018_le_rouge_et_le_noir_1.mlw
- examples/vstte10_max_sum.mlw 2 additions, 2 deletionsexamples/vstte10_max_sum.mlw
- examples/vstte12_tree_reconstruction.mlw 2 additions, 2 deletionsexamples/vstte12_tree_reconstruction.mlw
- examples/white_and_black_balls.mlw 1 addition, 1 deletionexamples/white_and_black_balls.mlw
- src/core/dterm.ml 5 additions, 1 deletionsrc/core/dterm.ml
- src/core/dterm.mli 1 addition, 0 deletionssrc/core/dterm.mli
- src/mlw/dexpr.ml 6 additions, 7 deletionssrc/mlw/dexpr.ml
- src/parser/handcrafted.messages 1440 additions, 1545 deletionssrc/parser/handcrafted.messages
- src/parser/parser.mly 72 additions, 49 deletionssrc/parser/parser.mly
Loading
Please register or sign in to comment