Commit graph

29 commits

Author SHA1 Message Date
Folkert
a87dfac7da improved malformed patterns 2021-03-01 16:12:37 +01:00
rvcas
b34436e5cb Merge branch 'trunk' into int_a_float_a 2021-01-04 09:53:45 -05:00
Folkert
754521c4c3 all the clippy fixes 2021-01-01 00:40:41 +01:00
rvcas
127c4e1bcc feat: add inner var to IntLiteral and FloatLiteral 2020-12-29 20:52:54 -05:00
Folkert
7bedc3ff6e ident and tags 2020-12-18 00:53:31 +01:00
Folkert
4db48d9f13 more clippy things 2020-11-19 22:20:00 +01:00
rvcas
8df5d5c13c feat(parse): support capturing a str in Pattern::Underscore 2020-11-17 21:53:49 -05:00
Folkert
9b83c3ad58 optional record fields in patterns are bound 2020-10-16 15:29:21 +02:00
Folkert
e656363cc0 restrain the set of captured variables further 2020-10-16 01:42:06 +02:00
Folkert
40ffca2b7b IT WORKS 2020-10-16 00:18:40 +02:00
Richard Feldman
7682e09b0a Fix some fmt stuff 2020-08-31 23:13:50 -04:00
Richard Feldman
274e7e786d Constrain string interpolation 2020-08-31 23:13:50 -04:00
Richard Feldman
f35e43768a Get things compiling 2020-08-31 23:13:50 -04:00
Folkert
f48a661b3d fixing tests 2020-07-31 00:49:16 +02:00
Richard Feldman
71f929aba2 Count default exprs as having used things 2020-07-20 21:58:05 -04:00
Folkert
29c3eebace parse default optional expressions in pattern matches 2020-07-20 00:52:16 +02:00
Richard Feldman
7330e82f75 Constrain optional fields 2020-07-18 14:51:18 -04:00
Richard Feldman
8b53ec15fe Change guard to DestructType 2020-07-18 12:42:04 -04:00
Folkert
9d67b11c0d pretty error messages for integers 2020-07-07 22:10:23 +02:00
Folkert
e595c14fae wip 2020-07-06 20:38:10 +02:00
Folkert
b7d689226c cover all parsed patterns with an error message
but, some invalid patterns are not parsed as expected. See https://github.com/rtfeldman/roc/issues/399
2020-07-04 20:39:49 +02:00
Folkert
0c7a4179aa report malformed int and float patterns 2020-07-04 20:29:37 +02:00
Richard Feldman
269da82840 Make VarStore no longer use atomics 2020-06-13 21:59:01 -04:00
Richard Feldman
a4338f0406 Remove lots of unnecessary clones (thanks clippy!) 2020-06-07 15:43:07 -04:00
Folkert
fd7ca5bcc9 don't add guarded record fields into scope 2020-04-09 01:08:09 +02:00
Folkert
2e697ee8f9 add whole_var to tag union/record
the existing var is for the extension (ext_var). during mono we need the whole type to look up the layout, so store that as well
2020-03-13 23:28:36 +01:00
Richard Feldman
3ecbe0325c Plain number literals (e.g. 5) are now Num * 2020-03-10 22:27:13 -04:00
Richard Feldman
908e485fca Move constrain and its deps into their own crates 2020-03-06 01:43:39 -05:00
Richard Feldman
3b6ed43126 Extract can/ into its own crate, plus its deps 2020-03-05 23:01:32 -05:00
Renamed from compiler/src/can/pattern.rs (Browse further)