Commit graph

82 commits

Author SHA1 Message Date
Nathan Kramer
be4e3b5983
Suggest link to tutorial's operator desugaring table 2024-09-30 18:14:35 +10:00
Anton-4
0a0bc897f6
add final expression tip 2024-09-26 20:17:35 +02:00
Sam Mohr
2da08be8ef
Remove old record builder syntax 2024-09-21 04:44:44 -07:00
Anton-4
02cf61f985
Merge pull request #7038 from mulias/expr-dbg
Support `dbg` in expressions
2024-09-02 13:30:32 +02:00
Elias Mulhall
2242e9b2c3 Remove error handling for dbg in expression position 2024-08-28 11:53:44 -04:00
Sam Mohr
7e72541a79 Merge branch 'main' into builtin-task 2024-08-12 23:12:38 -07:00
Sam Mohr
cb8040f629
Ignore underscore-prefixed fields in record builders 2024-08-06 22:49:35 -07:00
Luke Boswell
eca453d07f
Merge remote-tracking branch 'remote/main' into builtin-task 2024-07-29 16:05:51 +10:00
Joshua Warner
df915b936d
Feedback: add doc comments, verbiage changes, capitalize Roc, remove a resolved TODO 2024-07-28 14:45:32 -07:00
Joshua Warner
4f32f43048
Implement block / indent based parsing
... and enforce that defs can only occur in blocks (or, inside parenthesized expressions)
2024-07-27 13:34:16 -07:00
Luke Boswell
b489c44b19
Merge remote-tracking branch 'remote/main' into builtin-task 2024-07-19 19:51:50 +10:00
Sam Mohr
f415017c90
Implement new builder syntax alongside old one 2024-07-07 03:28:59 -07:00
Sam Mohr
700c7ae9aa
Add Task as a built-in module/type 2024-06-25 00:03:56 -07:00
Anton-4
d921d77ab6
removed TODO
Signed-off-by: Anton-4 <17049058+Anton-4@users.noreply.github.com>
2024-06-19 19:33:12 +02:00
Anton-4
05a61e2210
clippy + fmt 2024-06-19 12:34:10 +02:00
John Konecny
a189e3ab20 Warnings are now yellow 2024-06-09 13:23:31 -04:00
Agus Zubiaga
2e4306279c
Handle record update found in module params 2024-05-09 08:01:46 -03:00
Agus Zubiaga
f3b71c46e7
Handle record apply found in module params 2024-05-09 07:55:39 -03:00
Agus Zubiaga
b8280bf69a
Handle import params indent error in reporting 2024-05-09 07:49:21 -03:00
Agus Zubiaga
e5a09b5de6
Parse module params in import 2024-05-09 07:42:07 -03:00
Agus Zubiaga
760ffaf68f
Report module params parse error 2024-05-09 07:27:58 -03:00
Agus Zubiaga
5b1a3c8f03
Parse params in module header
module {echo, read} -> [menu]

Formatter isn't implemented yet.
2024-05-09 07:27:43 -03:00
Agus Zubiaga
9a66abf95f
Report ingested file colon syntax error 2024-05-06 23:46:38 -03:00
Agus Zubiaga
27a9f6051e
Report ingested file name syntax error 2024-05-06 23:46:06 -03:00
Agus Zubiaga
755e16cb10
Report exposing list end error in imports 2024-05-06 23:38:12 -03:00
Agus Zubiaga
dc18597a0e
Report unfinished exposing in imports 2024-05-06 23:24:56 -03:00
Agus Zubiaga
f81985533c
Report import lowercase alias 2024-05-06 23:16:18 -03:00
Agus Zubiaga
97ed8fdbbd
Report unfinished import as 2024-05-06 23:03:40 -03:00
Agus Zubiaga
bfb77b78cb
Report import ending syntax error 2024-05-06 22:22:00 -03:00
Agus Zubiaga
007e03891e
Report module name / path syntax error in imports 2024-05-06 21:00:17 -03:00
Agus Zubiaga
233310cabf
Report space problem in import 2024-05-06 20:26:07 -03:00
Agus Zubiaga
520dc389f3
Report ingested file annotation syntax error 2024-05-05 17:45:37 -03:00
Agus Zubiaga
057a18573a
New module header
Implements the new `module` header syntax as described in "module and package changes" [1]:

```
module [Request, Response, req]
```

The old syntax should still work fine, and is automatically upgraded to the new one
when running `roc format`.

[1] https://docs.google.com/document/d/1E_77fO-44BtoBtXoVeWyGh1xN2KRTWTu8q6i25RNNx0/edit
2024-05-01 10:39:12 -03:00
Luke Boswell
ca01913ab3
add EExpr error for unexpected comma 2024-04-02 20:48:13 +11:00
Richard Feldman
878042bc3d
Revise error for single-quote interpolation 2024-02-27 12:11:54 -05:00
Richard Feldman
ffd72b184b
Fix tests 2024-02-27 11:35:06 -05:00
Richard Feldman
6f84e24fa5
Merge remote-tracking branch 'origin/main' into more-dollars 2024-02-26 23:06:23 -05:00
Anton-4
f47b2eb2eb
change wording
Signed-off-by: Anton-4 <17049058+Anton-4@users.noreply.github.com>
2024-02-03 12:05:15 +01:00
Asher Mancinelli
da261be209
[parse] Better error message for bad packages list
When an appropriate list end is not found in the packages list, give a
more informative error message.
2024-01-27 11:25:19 -08:00
Richard Feldman
8ea38d3a04
Parse deprecated interpolation syntax differently 2024-01-06 18:26:27 -05:00
Richard Feldman
7189104df8
Update roc code base to use $(...) syntax 2024-01-06 18:03:00 -05:00
Luke Boswell
f837870a63
handle TrailingOperator error 2023-12-09 19:42:09 +11:00
Anton-4
ba1a1e9243
minor wording change
Signed-off-by: Anton-4 <17049058+Anton-4@users.noreply.github.com>
2023-11-28 11:42:52 +01:00
caryoscelus
2fc8e88cca
Report lacking platform name in app header 2023-11-28 05:52:43 +00:00
caryoscelus
d141237a17
Report lacking to while parsing app header 2023-11-28 02:18:24 +00:00
jecaro
57f55dbe7e
Fix typo 2023-11-21 19:47:27 +01:00
jecaro
0781232940
Set a better error msg for non uft8 encoded files 2023-11-14 15:22:22 +01:00
Anton-4
f0795e6935
minor improvements 2023-09-15 19:51:13 +02:00
Fabian Schmalzried
3e41f6eb5a
implement error message for HasMisplacedCarriageReturn
Also had to filter out the escape characters
so the erroe message does not get messed up
2023-09-10 17:17:26 +02:00
Fabian Schmalzried
49a1a3b46d
Implement error message for ASCII control characters 2023-09-10 15:58:36 +02:00