Chadtech
5442eba044
Check if there was no list of Roc modules to generate docs for, and if not, then search for all roc modules under the current directory
2021-07-11 02:09:23 -04:00
Richard Feldman
6fd8db7d2b
roc docs
now accepts directories
2021-06-06 02:22:10 -04:00
Richard Feldman
d7b64b000d
Netlify shouldn't build the editor
...
...and anyway it can't, because it's missing the
xcb-shape and xcb-xfixes libraries.
2021-06-06 01:12:12 -04:00
Richard Feldman
b05342c678
Split out an optional "llvm" feature
...
Also move OptLevel out of roc_gen (which
should really be called gen_llvm) and into roc_mono,
so it's no longer coupled to LLVM.
2021-06-06 00:32:58 -04:00
Richard Feldman
da7dffe0e9
roc run
passes through arguments and exit code
2021-04-15 18:32:57 -04:00
Chadtech
9f5ed5816b
Cargo fmt
2021-03-22 01:31:23 -04:00
Chadtech
807250f3e3
Moved docs/src/main.rs to docs/src/lib.rs and imported it into the repl. Commented out doc code to avoid it deleting my entire roc project (which happened)
2021-03-21 22:37:39 -04:00
Richard Feldman
26dfa01205
Extract target triple and linking logic
2020-10-04 16:34:11 -04:00
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
Richard Feldman
62fdae8b45
Don't send separate start_time arg
2020-08-03 23:16:46 -04:00
Richard Feldman
7f1e666ad3
Add some basic timings
2020-08-03 22:46:14 -04:00
Richard Feldman
9e0cf4cd35
Restore CLI
2020-08-02 22:04:31 -04:00
Richard Feldman
1c49e116b3
wip
2020-07-30 00:59:03 -04:00
Richard Feldman
e1fdabd5ef
Fix problem with CLI paths
2020-07-22 19:34:14 -04:00
Richard Feldman
d6c54645ce
cargo fmt
2020-07-22 19:33:36 -04:00
Richard Feldman
2465c204e3
Restore CLI
2020-07-22 19:33:36 -04:00
Richard Feldman
b5ad6e17b4
Don't print subs on error
...
It's way too verbose and unhelpful!
2020-07-06 21:23:59 -04:00
Richard Feldman
9d31c667fa
Merge remote-tracking branch 'origin/trunk' into specialize-separately
2020-06-18 21:02:50 -04:00
Richard Feldman
b638970c84
Make repl Windows-friendly
2020-06-18 00:24:27 -04:00
Richard Feldman
68f64835f0
Add target triple for Windows
2020-06-16 23:04:00 -04:00
Richard Feldman
639c132ce0
wip
2020-05-26 21:18:25 -04:00
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
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
088df46a76
cargo fmt
2020-04-18 16:38:47 -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
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