Commit graph

87 commits

Author SHA1 Message Date
Richard Feldman
df7d017287 cargo fmt 2020-05-10 15:15:09 -04:00
Richard Feldman
64fd0ceed9 Address some unused warnings via TODOs 2020-05-10 15:13:18 -04:00
Richard Feldman
bf11262e61 Move layout_id from mono to gen
This is because it's actually important that mono never use this.
It should only be used in gen, because it's only safe to use
synchronously, and it's important that mono be done in parallel.

Moving it to gen guarantees that mono will not use it, even accidentally!
2020-05-10 15:13:18 -04:00
Richard Feldman
6e05ba816f Have CallByName use Layout 2020-05-10 15:13:18 -04:00
Richard Feldman
8572879e0d Remove unused procs argument 2020-05-09 22:41:59 -04:00
Richard Feldman
c49abfe2de Add layout to CallByName 2020-05-09 22:41:59 -04:00
Richard Feldman
510ab36f51 Use LayoutCache to avoid recomputing layouts 2020-05-09 22:11:32 -04:00
Richard Feldman
6a79a75648 Don't regenerate anonymous function symbols 2020-05-09 12:56:55 -04:00
Richard Feldman
d7ee713bc5 Have the editor theoretically take filepaths 2020-05-04 21:41:45 -04:00
Richard Feldman
7e7c6ef4af Drop obsolete symbol_counter field 2020-05-04 20:32:21 -04:00
Richard Feldman
b0e2134121 Launch editor when given no CLI args 2020-05-03 22:04:28 -04:00
Richard Feldman
ce9e7a91f6 Clean up some Cargo.toml files 2020-05-03 21:37:59 -04:00
Richard Feldman
13dd937a71 Revert "Attempt to add builtin_defs to CLI"
This reverts commit 2679077de9.
2020-05-01 22:00:06 -04:00
Richard Feldman
2679077de9 Attempt to add builtin_defs to CLI 2020-05-01 21:59:38 -04:00
Richard Feldman
101dc80ae5 Move parse::operator into module::operator 2020-05-01 21:58:53 -04:00
Richard Feldman
095844c2c1 Use iterator chaining over hash insertion 2020-05-01 19:40:59 -04:00
Richard Feldman
ee31eac0c5 Code gen toplevel module functions 2020-05-01 19:30:55 -04:00
Richard Feldman
1a2367c8aa appease clippy 2020-05-01 19:30:55 -04:00
Richard Feldman
5c31369072 Code gen thunks for top-level module decls 2020-05-01 19:30:55 -04:00
Richard Feldman
072cf4e844 Revert "wip canonical builtins in modules"
This reverts commit e1935a1e9f0c7ea1ffefe5f2f4f07f2c7666363b.
2020-05-01 19:30:55 -04:00
Richard Feldman
a1750567ff wip canonical builtins in modules 2020-05-01 19:30:55 -04:00
Richard Feldman
929e2240d4 Appease clippy 2020-04-21 23:44:13 -04:00
Richard Feldman
526d7cb4ba Support multiline repl input 2020-04-21 23:35:39 -04:00
Richard Feldman
0b670baad4 Make welcome message more helpful. 2020-04-18 16:58:26 -04:00
Richard Feldman
dd223c5d5c clippy clip 2020-04-18 16:39:39 -04:00
Richard Feldman
088df46a76 cargo fmt 2020-04-18 16:38:47 -04:00
Richard Feldman
c9ef2deb80 Have the repl loop 2020-04-18 16:02:33 -04:00
Richard Feldman
a99a339672 Spice up the repl visuals a bit 2020-04-18 16:01:58 -04:00
Richard Feldman
114815a323 Add types to the repl 2020-04-18 15:45:48 -04:00
Richard Feldman
73fbc0e490 Add basic 1-iteration repl 2020-04-18 15:32:04 -04:00
Richard Feldman
d4a45ed489 Add CLI subcommands roc run and roc build 2020-04-18 14:32:50 -04:00
Folkert
7f299356d3 define our own cargo features 2020-04-18 15:56:54 +02:00
Folkert
98d451b240 only enable arm and wasm when the feature is enabled 2020-04-18 15:28:10 +02:00
Richard Feldman
6f75ce6680 Add CLI test for Hello World 2020-04-17 06:38:29 -04:00
Richard Feldman
e61ac3b41b Clippy doin' clippy things 2020-04-16 22:21:26 -04:00
Richard Feldman
16ff40a836 Use clap to parse CLI flags 2020-04-16 22:02:29 -04:00
Richard Feldman
d2e242ccbe Have cli accept an --optimize flag and use it 2020-04-16 20:26:37 -04:00
Richard Feldman
b19386c1f6 Have CLI use the given file's directory as src_dir 2020-04-16 19:26:25 -04:00
Richard Feldman
57c4261b08 Fully qualify roc_load::file::load 2020-04-16 19:26:25 -04:00
Folkert
719ef5b70e parse error infrastructure 2020-04-15 21:10:42 +02:00
Richard Feldman
8f2a5f2133 cargo fmt 2020-04-15 07:06:21 -04:00
Richard Feldman
0e48f512fd Use tokio for CLI process stuff 2020-04-15 07:06:11 -04:00
Richard Feldman
1517581ced Load main in the CLI and use it for gen 2020-04-15 07:06:11 -04:00
Richard Feldman
9ca754b8fd First pass at loading modules from cli 2020-04-15 07:06:11 -04:00
Folkert
97c10e1211 setup for mono reports 2020-04-12 01:56:57 +02:00
Folkert
a67fe6540c update cli 2020-04-10 23:34:03 +02:00
Folkert
fcb62cdf8e add titles to errors 2020-04-09 23:58:28 +02:00
Richard Feldman
9288e20469 Upgrade to LLVM 10 2020-04-08 06:41:53 -04:00
Richard Feldman
30df69af4f Improve error message when example fails to run 2020-04-08 06:41:53 -04:00
Richard Feldman
950ca4436b Replace build.sh with cargo run 2020-04-06 23:32:47 -04:00