Commit graph

1889 commits

Author SHA1 Message Date
Folkert
f08f3e7510 cleanup 2020-11-09 19:53:03 +01:00
Folkert
492f0dcc84 add Effect.always and Effect.map 2020-11-09 19:14:26 +01:00
Folkert
14d6de626e add module for effect_module 2020-11-09 16:01:38 +01:00
Richard Feldman
54de538952
Merge pull request #666 from rtfeldman/return-function
Return function pointers and closures
2020-11-08 22:21:01 -05:00
Richard Feldman
8577efd9c3
Merge branch 'trunk' into new-annotated-body 2020-11-08 22:11:48 -05:00
Richard Feldman
ef90103353
Update compiler/fmt/src/def.rs 2020-11-08 22:11:38 -05:00
lrosa007
de33e9b388 fix(List): contains list can be borrowed 2020-11-08 20:17:05 -05:00
Folkert
65c1e0e5b1 appease clippy 2020-11-09 02:02:20 +01:00
Folkert
b044a0b8a8 remove comment inbetween signature and definition in test 2020-11-09 02:02:11 +01:00
Folkert
4868c0bd25 fix problem with patterns and optional record fields 2020-11-09 01:04:40 +01:00
Folkert
2d9f81ec9b fix mono error 2020-11-09 00:22:16 +01:00
Folkert
3f485b63d6 cleanup 2020-11-09 00:16:04 +01:00
Folkert
0d5aaf2aaa make getLine : Effect {} work 2020-11-08 23:36:08 +01:00
Folkert
1bce119b0a allow returning of funtions
e.g.

foo = Num.add
2020-11-08 15:49:24 +01:00
Sébastien Besnier
099c56fcf6 make compiler happy after rebasing 2020-11-08 13:55:01 +01:00
Sébastien Besnier
66392eeeaf other parsing adjustment! 2020-11-08 13:48:19 +01:00
Sébastien Besnier
bf68477c8a cargo fmt 2020-11-08 13:48:19 +01:00
Sébastien Besnier
45fb93d4ac comment out parsing test 2020-11-08 13:48:19 +01:00
Sébastien Besnier
420e1c84e0 make clippy happy 2020-11-08 13:48:19 +01:00
Sébastien Besnier
1c5f381c09 cargo fmt 2020-11-08 13:48:19 +01:00
Sébastien Besnier
8ac078936a add some tests around definition parsing -- all passing at the first time ! 2020-11-08 13:48:19 +01:00
Sébastien Besnier
a6a4750501 fix parsing issue 2020-11-08 13:48:19 +01:00
Richard Feldman
6db4bd6ed4 Drop spaces around fields in canonicalization 2020-11-08 13:48:19 +01:00
Richard Feldman
5f82372899 Fix AnnotatedBody desugaring 2020-11-08 13:48:19 +01:00
Richard Feldman
6c01d02de0 Make ann_pattern and ann_type references 2020-11-08 13:48:19 +01:00
Richard Feldman
b0e4f4c97f Reproduce nested_unannotated body 2020-11-08 13:48:19 +01:00
Richard Feldman
93867b1a1b Improve some error reporting 2020-11-08 13:48:19 +01:00
Richard Feldman
77662970e9 Drop debug println 2020-11-08 13:48:19 +01:00
Richard Feldman
4633619e18 Use newline_char over ascii_char('\n') 2020-11-08 13:48:19 +01:00
Sébastien Besnier
01b9b4a08d update nested test 2020-11-08 13:45:47 +01:00
Sébastien Besnier
ad9ff3b3a9 add nested tests 2020-11-08 13:45:47 +01:00
Sébastien Besnier
9b670bf092 remove unreachable branch 2020-11-08 13:45:47 +01:00
Sébastien Besnier
cfbfbf09be cargo fmt 2020-11-08 13:45:47 +01:00
Sébastien Besnier
94006f1d8f make clippy happy.... again 2020-11-08 13:45:47 +01:00
Sébastien Besnier
8870776fb0 make clippy happy 2020-11-08 13:43:11 +01:00
Sébastien Besnier
6dbde806d6 cargo-fmt 2020-11-08 13:43:11 +01:00
Sébastien Besnier
f4c1af0f19 test_can pass 2020-11-08 13:43:11 +01:00
Sébastien Besnier
19bd75aa62 merge things from trunk 2020-11-08 13:43:11 +01:00
Sébastien Besnier
014131dabe handle AnnotatedBody everywhere. It compiles now! 2020-11-08 13:43:11 +01:00
Sébastien Besnier
d2d3681d7e fix issue in annotated_body parser -- now compiling! 2020-11-08 13:43:11 +01:00
Sébastien Besnier
29c8ea6d8e transform annotated_body parser into small functions 2020-11-08 13:43:11 +01:00
Sébastien Besnier
bffc597e4e remove unused annotation 2020-11-08 13:43:11 +01:00
Sébastien Besnier
efe3497cc9 add AnnotatedBody in AST enum type 2020-11-08 13:43:11 +01:00
Richard Feldman
6929c63bb8
Merge branch 'trunk' into add-pkg-config 2020-11-07 22:06:08 -05:00
Richard Feldman
53bec064f3
Fix some typos in comments 2020-11-07 22:04:32 -05:00
Folkert
c20b40a7d2 fix zero-sized closures 2020-11-08 03:08:13 +01:00
Folkert
2267a1174a introduce PhantomEmptyStruct 2020-11-08 03:08:12 +01:00
Folkert
3d092cb9b7 in theory allow non-function effects values
this does not work due to limitations with functions in tag unions
2020-11-08 03:07:59 +01:00
Folkert
2a872f180a some foundations for zero-sized values in closures 2020-11-08 01:55:06 +01:00
Jared Ramirez
74b09605a7
Merge branch 'trunk' into builtin-count-graphemes 2020-11-07 18:49:29 -06:00