Richard Feldman
3ffe5768e1
Merge pull request #2239 from rtfeldman/joshuawarner32/pipeline-format-fail
...
Fix formatting of pipelined call exprs
2021-12-20 15:46:23 -05:00
Richard Feldman
5aa67d4244
Merge pull request #2231 from rtfeldman/joshuawarner32/record_func_type_decl
...
Allow function types in records
2021-12-20 11:45:27 -05:00
Joshua Warner
61cdbd1531
Fix formatting of pipelined call exprs
2021-12-18 16:36:51 -08:00
Joshua Warner
96e8916594
Refactor BadOperator to take a &str rather than &[u8]
2021-12-18 14:42:48 -08:00
Joshua Warner
efa54287f1
Return the original error if there's an unexpected trailing comma
2021-12-18 13:26:59 -08:00
Joshua Warner
7b9c8ed939
Allow function types in records
2021-12-17 15:09:15 -08:00
Joshua Warner
5e7e77dbb1
Add a couple failing parser tests
2021-12-17 15:09:15 -08:00
Joshua Warner
5a236899fa
Add some optional debug tracing to the parser
2021-12-17 15:09:15 -08:00
Joshua Warner
bb5b9677a3
Allow specifying failing parse tests
2021-12-17 15:09:15 -08:00
Joshua Warner
2e85c19101
Require explicit cloning of State
2021-12-16 17:13:58 -08:00
Joshua Warner
49818343dd
extract state
2021-12-16 17:13:53 -08:00
Joshua Warner
0786e554c6
Extract spacing from parse::header::* items into explicit Spaced enum
2021-12-14 19:53:20 -08: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
Joshua Warner
49228c8100
Refactor format_sequence to be a function
2021-12-07 18:53:47 -08:00
Joshua Warner
f3dd9e411f
Keep trailing comments at the end of a file
2021-12-05 12:19:58 -08:00
Joshua Warner
fdeafe4bab
Make assert output more understandable
2021-11-30 17:48:24 -08:00
Joshua Warner
f25323e8a7
Implement platform header formatting
2021-11-25 08:19:31 -08:00
Joshua Warner
24f7692a73
Implement [more] app header formatting
...
Also, refactor out a utility method to format a Collection. This method can currently
replace some of the formatting done in module headers - but the goal is eventually
to be able to replace the code in fmt_list as well, such that there is 'one true way'
to format collections.
2021-11-23 12:19:43 -08:00
ayazhafiz
8a60162a1e
Rename roc_module::operator -> roc_module::called_via
...
A bit of a nit, but this file is now more general than just keeping
track of operator methods.
2021-11-18 20:20:33 -05: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
6fab6e20f5
Fix clippy
2021-11-14 10:40:09 -08:00
Joshua Warner
fb960d98b8
Remove unused macros
2021-11-14 10:14:53 -08:00
Joshua Warner
6c82b1789a
Convert effects to collection_trailing_sep_e
2021-11-14 10:14:53 -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
3ff3695758
Add a manual Debug formatter for Collection to make debugging nicer
2021-11-13 16:24:35 -08:00
Joshua Warner
9bf1674946
Shrink Collection to make parse_expr_size test pass
2021-11-13 16:17:44 -08:00
Joshua Warner
1fabc64fdf
Use Collection in Expr::TagUnion
2021-11-13 07:38:39 -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
9a74ca441d
Name all "error" enums in the parser starting with E
2021-11-12 08:38:29 -08:00
Joshua Warner
8a54bb6f6b
fmt
2021-11-11 19:15:07 -08:00