Brendan Hansknecht
439c96b823
Split roc_cli into binary and lib
...
Splitting into binary and lib enables using the lib in tests.
main.rs is now a thin wrapper around the lib. In the future, the exact
code split should potentialy be changed so that main.rs does all arg
parsing and then calls into the lib with fully unwrapped parameters.
2020-09-14 16:34:50 -07:00
Folkert
ee017084f7
return 3-element records
2020-09-14 21:56:57 +02:00
Chad Stearns
a318253d48
small str implementation in string literal, and bringing in remote trunk
2020-09-09 21:53:38 -04:00
Richard Feldman
070154e97b
Shorten the repl greeting a bit.
2020-08-31 23:50:27 -04:00
Richard Feldman
7682e09b0a
Fix some fmt stuff
2020-08-31 23:13:50 -04:00
Richard Feldman
f35e43768a
Get things compiling
2020-08-31 23:13:50 -04:00
Richard Feldman
85110b7b9c
Support case-insensitive :exit in repl
2020-08-31 17:28:43 -04:00
Richard Feldman
3c8c41c145
Clipster
2020-08-24 00:03:12 -04:00
Richard Feldman
5288171c0b
Disable some tests that are blocked on #295
2020-08-24 00:03:12 -04:00
Richard Feldman
202b5ae4ee
Add a comment
2020-08-24 00:03:12 -04:00
Richard Feldman
712ea2e1dc
Support structs on 32-bit targets
2020-08-24 00:03:12 -04:00
Richard Feldman
e35bbe61bf
Expand repl tests for float records
2020-08-24 00:03:12 -04:00
Richard Feldman
da9602aef2
Implement floats in nested records
2020-08-24 00:03:12 -04:00
Richard Feldman
00f23be32c
Implement ints in nested records
2020-08-24 00:03:12 -04:00
Richard Feldman
c5f5bb1bef
Use sorted field names for printing records
2020-08-24 00:03:12 -04:00
Richard Feldman
2934864df3
Extract some logic to cli::repl::eval
2020-08-23 22:06:44 -04:00
Richard Feldman
ed4f5afb3c
Rename repl test to repl_eval
2020-08-23 22:06:44 -04:00
Richard Feldman
63a9901b18
Report single-field int structs
2020-08-23 22:06:44 -04:00
Richard Feldman
6827a48dd1
Add some failing repl record tests
2020-08-23 22:06:44 -04:00
Richard Feldman
fc857e2070
Add nested list repl tests
2020-08-23 16:22:11 -04:00
Richard Feldman
7ff7af47c8
Clip-o-matic 9000
2020-08-23 16:17:50 -04:00
Richard Feldman
edb2530bfa
Support nested lists in repl
2020-08-23 16:14:31 -04:00
Richard Feldman
b210cff2e1
Add a repl test for List Str
2020-08-23 14:35:10 -04:00
Richard Feldman
c32bb057f2
Use roc_fmt to render repl output exprs
2020-08-23 14:35:03 -04:00
Richard Feldman
1a0898ca93
Ignore some newlines in repl output
2020-08-23 14:22:15 -04:00
Richard Feldman
6b7e3f3c68
Restore some repl rendering
2020-08-23 14:22:15 -04:00
Richard Feldman
f12410c930
Improve repl crash reporting
2020-08-23 14:22:15 -04:00
Richard Feldman
a632303d15
Revert attempt to do repl JIT better
2020-08-23 14:22:15 -04:00
Richard Feldman
d61bd673fd
Make repl tests more robust to repl crashing
2020-08-23 14:22:15 -04:00
Richard Feldman
d75c13cf26
Fix linker error in --release repl builds
2020-08-23 13:32:34 -04:00
Richard Feldman
4dba926063
Add some more repl tests
2020-08-23 11:57:21 -04:00
Richard Feldman
825de52b83
Add some basic repl tests
2020-08-23 11:49:33 -04:00
Richard Feldman
9a1a0c3c23
Initial repl_run test
2020-08-23 11:15:26 -04:00
Richard Feldman
afa57e57e9
Extract CLI helpers
2020-08-23 10:36:51 -04:00
Richard Feldman
64f0fd42ad
Render types other than i64 in the repl
2020-08-23 09:46:58 -04:00
Richard Feldman
e6bde38de4
Don't crash if there were repl problems
2020-08-22 22:59:03 -04:00
Richard Feldman
793360acdf
Fix repl code gen
2020-08-22 22:49:33 -04:00
Richard Feldman
e29d956b0d
Give repl proper access to builtins
2020-08-22 22:43:04 -04:00
Folkert
0e5283efd2
Merge remote-tracking branch 'origin/trunk' into infer-borrow
2020-08-19 23:56:29 +02:00
Richard Feldman
608c4eebd9
Drop unnecessary arg_basic_types
2020-08-16 16:17:10 -04:00
Folkert
d8c71c23f4
thread in borrow signature inference
2020-08-13 20:56:33 +02:00
Richard Feldman
295cb00499
wip
2020-08-12 23:18:40 -04:00
Richard Feldman
3f0b08a992
Have Stmt::new accept LayoutCache
2020-08-12 23:14:06 -04:00
Folkert
380e34d296
Merge remote-tracking branch 'origin/trunk' into tail-call-elimination
2020-08-12 15:46:50 +02:00
Richard Feldman
edafbfe525
Replace unsorted.csv with algorithm
2020-08-12 08:33:36 -04:00
Richard Feldman
12ed20b5cd
Use fast calling convention internally
2020-08-11 09:02:26 -04:00
Folkert
84a8b69437
generate IR that uses uniqueness
2020-08-11 14:47:14 +02:00
Richard Feldman
f7a905d8ef
Fix expected test output
2020-08-10 23:16:03 -04:00
Richard Feldman
96419a55b0
cargo fmt
2020-08-10 19:27:52 -04:00
Richard Feldman
80b6781b19
Drop unused dbg!
2020-08-10 19:26:46 -04:00