Commit graph

2989 commits

Author SHA1 Message Date
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
53ecf6df3e Drop some unnecessary parens 2020-04-18 15:32:17 -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
Richard Feldman
f0d76825d2 Extract specializations from PartialProc 2020-04-18 11:24:25 -04:00
Richard Feldman
ee481e6713
Merge pull request #319 from rtfeldman/architecture-features
only enable arm and wasm when the feature is enabled
2020-04-18 10:21:06 -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
62b5f165f6
Merge pull request #318 from rtfeldman/cli-tests
Add CLI test for Hello World
2020-04-17 07:05:26 -04:00
Richard Feldman
6f75ce6680 Add CLI test for Hello World 2020-04-17 06:38:29 -04:00
Richard Feldman
16a783328e
Merge pull request #317 from rtfeldman/cli-optimize
More CLI improvements
2020-04-16 22:44:58 -04:00
Richard Feldman
e61ac3b41b Clippy doin' clippy things 2020-04-16 22:21:26 -04:00
Richard Feldman
62723824dd Drop obsolete examples/hello-world/HelloStr.roc 2020-04-16 22:21:19 -04:00
Richard Feldman
16ff40a836 Use clap to parse CLI flags 2020-04-16 22:02:29 -04:00
Richard Feldman
f5c18ff4d4 Move examples' .gitignore files up a level 2020-04-16 21:19:38 -04:00
Richard Feldman
d2e242ccbe Have cli accept an --optimize flag and use it 2020-04-16 20:26:37 -04:00
Richard Feldman
ea713023e8 Add explicit OptLevel to add_passes 2020-04-16 20:26:08 -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
Richard Feldman
2a03a74135 Use the equivalent of -O3 in Inkwell 2020-04-16 19:26:25 -04:00
Richard Feldman
1c1fee7e31 Trim trailing space off pretty_assertions dep 2020-04-16 19:24:24 -04:00
Richard Feldman
50bd43eac8
Merge pull request #316 from rtfeldman/parse-errors
Parse errors
2020-04-15 21:19:53 -04:00
Folkert
aea48f703a working parser error 2020-04-16 01:30:28 +02:00
Folkert
719ef5b70e parse error infrastructure 2020-04-15 21:10:42 +02:00
Folkert
e21cdfc689 bring parse errors into the reporting tests 2020-04-15 19:49:05 +02:00
Richard Feldman
5e500f55ae
Merge pull request #315 from rtfeldman/cli-modules
Run modules from the CLI
2020-04-15 07:29:34 -04:00
Richard Feldman
d31247cbe3 cargo update 2020-04-15 07:08:21 -04: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
Richard Feldman
62186fdda4 Add load tests for apps 2020-04-15 07:06:11 -04:00
Richard Feldman
6c6e1d9ee3 Update some interface tests 2020-04-15 07:06:11 -04:00
Richard Feldman
d994d11760 Parse app module headers. 2020-04-15 07:06:11 -04:00
Richard Feldman
61f836e964 Switch examples to use app modules 2020-04-15 07:06:11 -04:00
Richard Feldman
c4157f0ae0
Merge pull request #236 from rtfeldman/order-of-ops
Order of ops
2020-04-15 05:17:09 -04:00
Richard Feldman
5980bc38da Merge remote-tracking branch 'origin/trunk' into order-of-ops 2020-04-15 05:03:42 -04:00
Richard Feldman
b4771b2c9b
Merge pull request #314 from rtfeldman/exhaustiveness-errors
various error messages
2020-04-14 22:12:24 -04:00
Folkert
c42b5a1e5b improved phantom type message 2020-04-14 21:27:29 +02:00
Folkert
7e4a1ef4bd better message for duplicate fields/tags 2020-04-14 21:18:37 +02:00
Chad Stearns
3f7d1cf33a Merge branch 'trunk' of github.com:rtfeldman/roc into format-precedence-conflict 2020-04-13 22:30:34 -04:00
Folkert
18c6c37c04 fix self-recursive alias case 2020-04-14 01:33:16 +02:00
Folkert de Vries
19761a5d44
Merge branch 'trunk' into exhaustiveness-errors 2020-04-14 01:10:45 +02:00
Folkert
63bc923b37 remove panic 2020-04-13 22:54:24 +02:00
Folkert
f6af66f342 record, tag, alias errors
- duplicate fields and tags are reported
- circular aliases are reported
2020-04-13 20:53:16 +02:00
Richard Feldman
dadfe42730
Merge pull request #313 from rtfeldman/exhaustiveness-errors
Exhaustiveness errors
2020-04-13 02:16:15 -04:00
Folkert
0372b34e86 fix comments 2020-04-12 22:00:44 +02:00
Folkert
c69b0d69e5 fix enum and bool pattern match suggestions 2020-04-12 21:47:15 +02:00
Folkert
7632a4b484 highlight code snippets better 2020-04-12 20:59:16 +02:00