Joshua Warner
07be8ec000
Refactor Parser trait to pass min_indent
...
This removes the need to explicitly pass thru min_indent when using the parser combinators.
My ultimate goal here is to evolve the current parser closer toward a purely combinator-based parser,
at which point we can more easily transition smoothly to a formal(ish) grammar, or expand the meanings of combinators
to include things like:
* Incremental (re)parsing
* Unified parsing and formatting code
* Better error recovery
* Using the main parser directly for syntax highlighting
2022-10-31 13:31:47 -07:00
Folkert de Vries
9f62e65892
Merge pull request #4406 from roc-lang/windows-effect-loop
...
Windows effects.roc
2022-10-29 00:29:35 +02:00
Richard Feldman
67a8bbd6a2
Merge pull request #4414 from roc-lang/i4412
...
Parse and format list patterns
2022-10-26 19:49:12 -07:00
Richard Feldman
c894d522c3
Drop some commented-out lines
...
Signed-off-by: Richard Feldman <oss@rtfeldman.com>
2022-10-26 22:48:37 -04:00
Richard Feldman
93c6b65a4d
Merge pull request #4409 from roc-lang/parse-single-def
...
Extract parse_single_def
2022-10-26 19:44:35 -07:00
Richard Feldman
719387bb0a
Merge pull request #4387 from lukewilliamboswell/std-lib-bool
...
updated docs for Bool.roc
2022-10-26 19:43:51 -07:00
Richard Feldman
9d5705146d
Merge pull request #4392 from lukewilliamboswell/std-docs-box-and-dict
...
updating docs for Box and Dict
2022-10-26 19:39:44 -07:00
Ayaz Hafiz
89867a4dc5
Add parsing error reporting for list patterns
2022-10-26 18:05:52 -05:00
Ayaz Hafiz
9bb523ce97
Format list patterns
2022-10-26 17:08:10 -05:00
Ayaz Hafiz
4d35ab9957
Parse list patterns
2022-10-26 17:03:22 -05:00
Richard Feldman
40498d71c3
clip clap clorp
2022-10-26 16:11:30 -04:00
Folkert de Vries
02a76bb8bd
Merge pull request #4399 from roc-lang/no-types-in-constraining-api
...
Have most constraining APIs take a type index rather than `Type`
2022-10-26 19:45:55 +02:00
Richard Feldman
c748d88c0d
Fix typo in docs
2022-10-26 13:44:13 -04:00
Richard Feldman
785e0d5ef6
Revise things to be more concise
2022-10-26 13:44:13 -04:00
Richard Feldman
9b19ed8b3b
Refactor out Next
2022-10-26 13:44:12 -04:00
Richard Feldman
a1104ce5fa
Refactor out Next::Fixup
2022-10-26 13:44:12 -04:00
Richard Feldman
107f37219f
Document Fixup
2022-10-26 13:44:12 -04:00
Richard Feldman
131c4b2bb1
Extract parse_single_def
2022-10-26 13:44:12 -04:00
Ayaz
316ae7d30b
Merge pull request #4398 from roc-lang/emplace-type-variables
...
Leave variables behind when converting `Type`s to variables
2022-10-26 12:41:55 -05:00
Folkert
bb19644d40
make inc/dec private on non-windows
2022-10-26 16:47:12 +02:00
Folkert
38d7e57248
make refcounting functions link as External
2022-10-26 16:41:20 +02:00
Folkert
52404a4085
fix wrong flag passed to zig
2022-10-26 16:31:20 +02:00
Luke Boswell
90a9103413
fix doc comments examples breaking tests
2022-10-25 21:20:00 +11:00
Luke Boswell
344ffc5542
fix the formatting for CI
2022-10-25 19:28:49 +11:00
Luke Boswell
d4d654f850
add spaces to doc comments to format correctly when rendered
2022-10-25 19:24:32 +11:00
Anton-4
c7e46df57d
minor corrections
...
Signed-off-by: Anton-4 <17049058+Anton-4@users.noreply.github.com>
2022-10-25 10:00:33 +02:00
Anton-4
d342815494
add space
...
Signed-off-by: Anton-4 <17049058+Anton-4@users.noreply.github.com>
2022-10-25 10:00:09 +02:00
Luke Boswell
01da174c2f
Merge remote-tracking branch 'upstream/main' into std-docs-box-and-dict
2022-10-25 18:15:14 +11:00
Luke Boswell
3d2bdff0e1
adding more descriptions for Dict.roc
2022-10-25 18:09:00 +11:00
Luke Boswell
74a337d508
updated description for Boxing from Zulip discussion
2022-10-25 17:20:27 +11:00
Luke Boswell
dc77e9a6cd
formated Bool.roc for CI
2022-10-25 17:07:34 +11:00
Richard Feldman
9bb45f5856
Merge pull request #4381 from roc-lang/windows-rust-platforms
...
Windows rust platforms
2022-10-24 18:27:26 -07:00
Ayaz Hafiz
a4d7ee33c1
Apply lints
2022-10-24 18:23:36 -05:00
Ayaz Hafiz
084393c326
store_index is now redundant
2022-10-24 18:21:05 -05:00
Ayaz Hafiz
bff3d534f6
Store expects type index
2022-10-24 18:20:18 -05:00
Ayaz Hafiz
278754506f
lookup expects type index
2022-10-24 18:14:28 -05:00
Ayaz Hafiz
97d47cc05f
includes_tag expects type index
2022-10-24 18:08:45 -05:00
Ayaz Hafiz
556222caa1
is_open_type expects type index
2022-10-24 17:51:39 -05:00
Ayaz Hafiz
0f0c02965a
pattern_presence expects type index
2022-10-24 17:49:02 -05:00
Ayaz Hafiz
0990eda0cb
equal_pattern_types takes type index
2022-10-24 17:41:13 -05:00
Ayaz Hafiz
c53e08f63c
equal_types_with_storage takes type index
2022-10-24 17:35:09 -05:00
Ayaz Hafiz
cca5f53e98
equal_types_var requires a type index
2022-10-24 17:30:04 -05:00
Ayaz Hafiz
91eb9aaea4
Rename variables
2022-10-24 14:30:50 -05:00
Ayaz Hafiz
83e35fa40d
Get rid of another clone
2022-10-24 14:29:05 -05:00
Ayaz Hafiz
0b8ac07287
Get rid of more type clones
2022-10-24 14:25:19 -05:00
Ayaz Hafiz
7c3fe5bc44
Remove some type clones
2022-10-24 14:11:53 -05:00
Ayaz Hafiz
55d7f3f658
Require type and expected indices in equal_types constraints
2022-10-24 14:05:19 -05:00
Ayaz Hafiz
1f498b52d5
Better name solve test
2022-10-24 14:02:38 -05:00
Ayaz Hafiz
fc6f7d2613
Basic support for multi-ability docs
2022-10-24 14:00:46 -05:00
Ayaz Hafiz
1053c11907
Basic formatting of multi-abilities
2022-10-24 14:00:46 -05:00