Luke Boswell
33075285b7
Merge pull request #6767 from wontem/comments-in-repl
...
Ignore comments in repl
2024-05-22 11:26:10 +10:00
Kiryl Dziamura
8d574a93a3
better message for bad ident name in repl
2024-05-22 01:00:31 +02:00
Kiryl Dziamura
fb108af73e
ignore comments in repl
2024-05-22 00:51:38 +02:00
Anton-4
975162b53b
improve error message
2024-05-10 17:18:23 +02:00
Joshua Warner
d667e3c2d8
Simplify task await bang parsing to no longer require suffixed_found
2024-05-08 20:48:33 -07:00
Agus Zubiaga
2a8ecbba28
Do not drop import parse errors
2024-05-07 22:39:43 -03:00
Anton-4
c3cabf7840
Merge pull request #6685 from roc-lang/repl-import
...
Support imports in REPL
2024-04-30 19:49:26 +02:00
Agus Zubiaga
a8a829aadd
Merge branch 'main' into inline-imports
2024-04-28 00:11:29 -03:00
Luke Boswell
db4607125b
remove suffixed from Pattern
2024-04-28 08:47:08 +10:00
Agus Zubiaga
46f640ca73
Support ingested files in the REPL
2024-04-26 23:43:36 -03:00
Agus Zubiaga
52f84910a7
Support importing local files in the REPL
2024-04-26 23:33:19 -03:00
Agus Zubiaga
d5a38a26db
Merge branch 'main' into inline-imports
2024-04-20 12:01:11 -03:00
Luke Boswell
4625926486
suffixed tests passing
2024-04-14 13:45:06 +10:00
Luke Boswell
3c3e523b45
add suffixed to Identifer and QualifiedIdentifier
2024-04-14 13:45:00 +10:00
Anton-4
f085b96f78
removed unused deps, added CI test
2024-04-09 19:47:31 +02:00
Brendan Hansknecht
6dc5bfb1b7
Use roc_target over target_lexicon
...
Tailors a target class for our needs.
Replaces tons of uses across the entire compiler.
This is a base for later adding new targets like thumb.
2024-03-31 10:50:26 -07:00
Anton-4
56bf36fc90
green should have been cyan
2024-02-17 11:34:06 +01:00
Anton-4
38467394cc
fmt
2024-02-14 18:09:41 +01:00
Anton-4
c6b5e2f8c3
less colors more contrast
2024-02-14 17:20:44 +01:00
Agus Zubiaga
710d62f754
Load and can new top-level imports
...
Previously, all imports were available in the header, so we could start
processing dependencies as soon as we parsed it. However, the new imports
are treated as defs, so we have to parse the whole module to find them.
This commit essentially moves the dependency resolution from the `LoadHeader`
phase to the `Parse` phase, and it updates canonicalization to introduce
module symbols into scope when a `ValueDef::ModuleImport` is encountered.
NOTE:
- The `imports` header still parses, but it's no longer wired up. I will remove
it in an upcoming commit.
- Ingested files and imports that appear in nested expressions are not
yet supported by load
2024-01-20 08:39:31 -03:00
Richard Feldman
d35c578924
Make it easier to exit roc repl
2023-12-05 12:30:31 -05:00
Richard Feldman
4b5b718241
cargo fmt
2023-10-30 21:15:53 -04:00
Richard Feldman
fddca7501a
Make a bunch of improvements to homepage and repl
2023-10-29 21:56:29 -04:00
Richard Feldman
3a1755d860
Drop an extraneous newline
2023-09-18 16:21:32 -05:00
Richard Feldman
1f396871f9
Simplify repl tips
2023-09-18 15:26:09 -05:00
Richard Feldman
e6b9446755
Move WELCOME_MESSAGE to be cli-specific
2023-09-18 15:26:09 -05:00
Anton-4
8194930dfb
Merge pull request #5819 from roc-lang/repl-changes
...
Remove the whole #val1 thing from repl
2023-09-18 19:45:47 +02:00
Sekerez
6750b304d4
Add newline for partial record definition
2023-09-17 13:04:57 -04:00
Richard Feldman
074401fbdf
Remove the whole #var1 thing
2023-09-17 06:31:51 -04:00
Richard Feldman
f4937e72cc
Try printing #val1 at end of previous line
2023-09-17 01:01:58 -04:00
Richard Feldman
ca33e4f64c
Try a different way of writing val1
2023-09-17 01:01:57 -04:00
Brian Carroll
b8e66d08de
Don't parse twice in ReplState::step
2023-09-10 18:36:41 +01:00
Brian Carroll
7dfd4ada48
Support both Shift-Enter and Ctrl-Enter for multi-line input
2023-09-09 16:55:08 +01:00
Brian Carroll
4367e357e6
Neater approach for Wasm compile-time options
2023-09-09 14:23:36 +01:00
Brian Carroll
8eaa79e72c
clippy & spellcheck
2023-09-09 14:01:28 +01:00
Brian Carroll
3923dad203
Remove duplicated code from roc_repl_cli and get tests compiling
2023-09-09 13:01:31 +01:00
Brian Carroll
8f59ee9492
Create a new crate roc_repl_ui for shared CLI/web UI code
2023-09-09 11:55:55 +01:00