Commit graph

174 commits

Author SHA1 Message Date
Ayaz
5652e72f99
Missing test 2022-04-14 12:50:28 -04:00
Ayaz Hafiz
233ea23979
Revert "Detect outdents too far"
This reverts commit 1c2ca2e3f5ae12d114cc72970035caf937d6e413.
2022-04-14 10:47:20 -04:00
Ayaz Hafiz
362ca1d914
Fix parse tests 2022-04-14 10:47:18 -04:00
Ayaz Hafiz
0c21821b04
Make sure outdented records parse 2022-04-14 09:31:55 -04:00
Ayaz Hafiz
bd8333ebb1
Parse multiple abilities behind each other 2022-04-06 11:20:51 -04:00
ayazhafiz
d7abc3897b Parse abilities 2022-03-12 21:29:06 -06:00
Richard Feldman
887a07b455
Merge pull request #2596 from rtfeldman/joshuawarner32/listclosing-braces
Allow closing braces in collections to be at any indent level
2022-02-28 20:00:44 -05:00
Joshua Warner
611d1784a9 Add tests 2022-02-26 14:15:46 -08:00
Joshua Warner
b2bb9dcd65 improve parser snapshot test error messages 2022-02-26 13:34:53 -08:00
Joshua Warner
333234aad9 Improve error message for no_extra_snapshot_test_files test 2022-02-26 13:32:20 -08:00
Brendan Hansknecht
f7c0e2ef19 Merge remote-tracking branch 'origin/trunk' into single-quote-literal 2022-02-24 10:13:39 -08:00
ayazhafiz
6104a27b45 Parse opaque references 2022-02-19 21:30:42 -05:00
ayazhafiz
3c10ad2a9f Test for opaque definitions 2022-02-19 20:51:12 -05:00
Anton-4
d6681f4e0a
Merge pull request #2160 from rtfeldman/editor-comments
support tld comments in docs and editor(reading only)
2022-02-10 11:49:10 +01:00
ayazhafiz
a6f7579c07 Parse and expand numeric bounds in canonicalization pass 2022-02-01 22:50:46 -05:00
ayazhafiz
f7a055fc78 Fix parser tests 2022-02-01 22:49:52 -05:00
ayazhafiz
320827167f Parse number literal width suffixes
Supports [u,i][8,16,32,64,128] and [nat,dec]

Part of #2350
2022-02-01 22:48:48 -05:00
Richard Feldman
2eb9243942
Add parse tests for hosted modules 2022-01-30 20:40:50 -05:00
ayazhafiz
8ae2d9d407 Parse interfaces with leading newlines
Closes #2420
2022-01-29 23:58:41 -05:00
Richard Feldman
c1c0ffb25f Use UppercaseIdent over PlatformRigids 2022-01-23 11:13:23 -05:00
Richard Feldman
620e3f2913 parse tests for provided/required types in module headers 2022-01-23 10:11:17 -05:00
Joshua Warner
70156b0a90 Simplify advancing 2022-01-01 18:20:05 -08:00
Joshua Warner
8e1241adea Remove line/column fields 2022-01-01 18:20:05 -08:00
Joshua Warner
eb35e9914f Fix tests 2022-01-01 18:20:05 -08:00
Joshua Warner
4b04ec6bbc Add Position::offset, and recompute line/column info based on source 2022-01-01 18:20:05 -08:00
Joshua Warner
721233f9c8 More incremental changes 2022-01-01 18:20:05 -08:00
Joshua Warner
bd7b1e5013 Make Loc::new take Positions 2022-01-01 18:20:05 -08:00
Anton-4
f941e30b86 Merge branch 'trunk' of github.com:rtfeldman/roc into editor-comments 2022-01-01 11:10:54 +01:00
ayazhafiz
0c81302d29 Admit tag destructuring in definitions 2021-12-30 19:50:50 -06:00
ayazhafiz
b3ddfa7515 Parse destructured tag annotations as annotations rather than aliases
Closes #178
2021-12-26 16:11:29 -06:00
ayazhafiz
46b4a3e6d5 Add test for nested if parsing
Closes #169

It seems the above issue was resolved a long time ago but there wasn't a
test for it
2021-12-23 19:39:54 -06:00
Joshua Warner
f19220473a Rename Located -> Loc 2021-12-22 19:18:22 -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
bb5b9677a3 Allow specifying failing parse tests 2021-12-17 15:09:15 -08:00
Joshua Warner
49818343dd extract state 2021-12-16 17:13:53 -08:00
Richard Feldman
5ad14553fd Handle non-finite floats in test 2021-12-12 22:11:18 -05: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
ab99abc63d Remove unused items, add todo for improving formatting 2021-11-14 18:39:51 -08:00