Commit graph

192 commits

Author SHA1 Message Date
Joshua Warner
0786e554c6 Extract spacing from parse::header::* items into explicit Spaced enum 2021-12-14 19:53:20 -08:00
Richard Feldman
5ad14553fd Handle non-finite floats in test 2021-12-12 22:11:18 -05:00
Jan Van Bruggen
f6ec1ebad0 Rename base to pf in testing snapshots 2021-12-12 17:58:43 -07:00
Jan Van Bruggen
d03a51c75b Rename base package to pf everywhere, to match tutorial 2021-12-12 05:57:39 -07:00
Anton-4
d6a27d1e53 Merge branch 'trunk' of github.com:rtfeldman/roc into editor-comments 2021-12-04 11:00:03 +01:00
Richard Feldman
8d5ea357b5 cargo fmt 2021-12-02 09:40:04 -05:00
Richard Feldman
44bb5d0645
Use Debug over Display to fix parse test 2021-12-02 08:57:44 -05:00
Chelsea Troy
23c0ab0170 Fix tests; evidently there were duplicate tests because the macro makes two of the tests that were also declared manually 2021-12-02 00:43:50 -06:00
Anton-4
5bd776f972 debugging inline comment bug 2021-12-01 16:57:28 +01:00
Joshua Warner
fdeafe4bab Make assert output more understandable 2021-11-30 17:48:24 -08:00
Chelsea Troy
6cf755ad8d Resolve a bunnnch of merge conflicts 2021-11-29 23:14:29 -06:00
Joshua Warner
7f5b873357 Parse _ in type annotations as an 'Inferred' type 2021-11-17 17:59:40 -08:00
Richard Feldman
1d330d9147
Merge pull request #1982 from rtfeldman/joshuawarner32/parser-snapshot-testing
Convert most test_parser tests to "snapshot" tests
2021-11-17 16:01:43 -05:00
Richard Feldman
28273b67da
Merge pull request #1970 from rtfeldman/shrink-call-type
Shrink call type
2021-11-15 19:56:21 -08:00
Joshua Warner
c4dd112a25 Allow generating new .result-ast files with ROC_PARSER_SNAPSHOT_TEST_OVERWRITE 2021-11-15 14:00:24 -08:00
Joshua Warner
343a680be9 Fix spelling/formatting/clippy/unused imports 2021-11-14 19:07:05 -08:00
Joshua Warner
76c3212c17 Make Debug for Located print it's value multi-lined if requested (with '{:#?}') 2021-11-14 18:42:39 -08:00
Joshua Warner
ab99abc63d Remove unused items, add todo for improving formatting 2021-11-14 18:39:51 -08:00
Joshua Warner
cb30d7446b migrate other module tests 2021-11-14 18:36:54 -08:00
Joshua Warner
a4a244cda0 migrate header + some module tests 2021-11-14 18:36:52 -08:00
Joshua Warner
6465a4031e delete old tests 2021-11-14 18:34:40 -08:00
Joshua Warner
d661646748 Fix test formatting and actually assert that they pass 2021-11-14 18:31:44 -08:00
Joshua Warner
64ad486c10 automatically export snapshot tests 2021-11-14 18:20:21 -08:00
Joshua Warner
8c8bc910fd Convert exposes_modules to collection_trailing_sep_e 2021-11-14 10:14:53 -08:00
Joshua Warner
c4e70ca7aa Convert exposes_values to ccollection_trailing_sep_e 2021-11-14 10:14:53 -08:00
Joshua Warner
71cc8d4c4b Convert requires_rigids to collection_trailing_sep_e 2021-11-14 10:14:53 -08:00
Joshua Warner
df89fe7dd6 Make provides a Collection 2021-11-14 10:14:53 -08:00
Joshua Warner
d67b6c50b1 Allow trailing comments in provides decl 2021-11-14 10:14:53 -08:00
Joshua Warner
23c75d2699 Allow trailing comments in imports decl 2021-11-14 10:14:53 -08:00
Joshua Warner
c10f403c94 Allow trailing comments in exposes decl 2021-11-14 10:14:52 -08:00
Joshua Warner
9bf1674946 Shrink Collection to make parse_expr_size test pass 2021-11-13 16:17:44 -08:00
Joshua Warner
d63405d824 Make Expr::List use a Collection 2021-11-13 07:38:11 -08:00
Joshua Warner
a4ca6a31a6 Use Collection in Expr::Record and related places 2021-11-13 07:36:05 -08:00
Folkert
f522d28a00 clippy 2021-11-13 16:04:23 +01:00
Joshua Warner
4df0880e7a Commit local changes (whoops!) 2021-11-11 18:57:26 -08:00
Joshua Warner
04d4a8ca79 Introduce Collection as a general abstraction in the ast 2021-11-11 14:49:33 -08:00
Joshua Warner
6a694b7772 Use collection_trailing_sep_e for packages decl, to allow trailing commas there 2021-11-10 18:49:19 -08:00
Joshua Warner
6d4f3f4da7 Allow parsing a single newline/comment in empty list 2021-11-09 07:33:36 -08:00
Brendan Hansknecht
d49ac68bcc Update dep with major version changes 2021-11-05 19:19:37 -07:00
Eric Correia
8272ea876f Get it all to compile! 2021-10-02 13:48:07 -04:00
Folkert
e0648d348d new formatting 2021-07-30 17:13:50 +02:00
Folkert
899cbeabd7 fix extra ampersands 2021-07-29 17:32:08 +02:00
Anton-4
314503cf7f fixed typos, added typos checking to CI 2021-06-05 20:02:54 +02:00
Folkert
700e7d9686 parse expect 2021-04-22 23:00:44 +02:00
Folkert
c68cd2fb2d fix and test 2021-04-14 22:03:03 +02:00
Folkert
28ba645121 parse underscores in expressions 2021-04-11 21:02:31 +02:00
Folkert
c79a691400 fix tests 2021-04-11 17:27:08 +02:00
Richard Feldman
ab7d2d5912 Clean up some dbg calls 2021-04-11 09:44:59 -04:00
Folkert
9273c74c70 another attempt to tame this grammar 2021-03-25 21:18:26 +01:00
Folkert
369f1b7cbb don't lie about progress 2021-03-25 15:08:02 +01:00