Commit Graph

638 Commits

Author SHA1 Message Date
Richard Feldman
9e70fceb33 Wrote a bunch of string docs 2020-05-11 23:43:30 -04:00
Richard Feldman
c752d1607a Update Float to mention binary and decimal floats 2020-05-11 23:43:30 -04:00
Richard Feldman
101e90e437 Go back to Float 2020-05-11 23:43:30 -04:00
Richard Feldman
045f1627a0 Try Real 2020-05-11 23:43:30 -04:00
Richard Feldman
1a348d1731 Write some docs 2020-05-11 23:38:18 -04:00
Richard Feldman
b5e4066c49 clippy clop 2020-05-10 15:22:05 -04:00
Richard Feldman
33a5f36d7c Refactor out name arg from from_can 2020-05-10 15:13:18 -04:00
Richard Feldman
85ec1e0f72 Fix anonymous function code gen 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
bd6228de8b Prevent infinite looping in code gen 2020-05-10 15:13:18 -04:00
Richard Feldman
e26df0d8cb Drop unused ContentHash 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
4bfdea03a9 Drop dead code 2020-05-10 09:58:42 -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
efa486251e Add LayoutCache 2020-05-09 22:11:32 -04:00
Chad Stearns
198716498c Used negate instead of multiplying by -1 for INT_ABS implementation 2020-05-09 21:43:41 -04:00
Chad Stearns
c435cd2a19 increase stack of quicksort test 2020-05-09 21:34:17 -04:00
Chad Stearns
09ef6b2734 Merge branch 'trunk' of github.com:rtfeldman/roc into int-abs 2020-05-09 18:12:29 -04:00
Chad Stearns
dea2fe2382 Moved exiting builtin functions to use defn helper 2020-05-09 18:11:21 -04:00
Chad Stearns
d2cea5237b Remove commented out INT_ABS implementation 2020-05-09 18:01:36 -04:00
Chad Stearns
f5ebdf49e4 More int_abs documentation 2020-05-09 18:01:22 -04:00
Chad Stearns
1d1f620090 Int Abs 2020-05-09 17:56:10 -04:00
Richard Feldman
6a79a75648 Don't regenerate anonymous function symbols 2020-05-09 12:56:55 -04:00
Richard Feldman
ca0b6fde31 Drop unused mono test helper 2020-05-09 09:46:24 -04:00
Richard Feldman
8fbfae5e62 Expand some docs 2020-05-09 09:46:24 -04:00
Chad Stearns
7331e55a25 Cargo fmt 2020-05-08 04:07:07 -04:00
Chad Stearns
8e8412bf94 FLOAT_ABS test, and NUM_ABS generally, but not implemented 2020-05-08 00:49:08 -04:00
Richard Feldman
7e7c6ef4af Drop obsolete symbol_counter field 2020-05-04 20:32:21 -04:00
Richard Feldman
2904f29c36 Have mono::expr::Env use IdentIds::gen_unique 2020-05-04 20:29:36 -04:00
Richard Feldman
ce9e7a91f6 Clean up some Cargo.toml files 2020-05-03 21:37:59 -04:00
Richard Feldman
56cc7c013f Drop obsolete dbg! 2020-05-03 08:51:11 -04:00
Richard Feldman
ff953021d5 Fix parser bug with newline after '=' in def
Fixes #51
2020-05-03 08:50:55 -04:00
Richard Feldman
c856314e13 Reproduce parser bug with newline after '=' in def
See #51
2020-05-03 08:50:32 -04:00
Richard Feldman
20648958eb Revise some future fmt tests 2020-05-03 08:50:21 -04:00
Richard Feldman
2eea57a51a Add some more detail to a todo 2020-05-02 22:19:29 -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
f47d96e1a4 Update a comment 2020-05-01 21:56:44 -04:00
Richard Feldman
5f33073703 fix tests 2020-05-01 19:30:55 -04:00
Richard Feldman
ee31eac0c5 Code gen toplevel module functions 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
a70f6cfdb0
Merge branch 'trunk' into int-ne 2020-05-01 18:43:15 -04:00
Chad Stearns
d1b00633be INT NEQ for i1 and i8 integer types 2020-05-01 17:29:43 -04:00
Chad Stearns
4b5f7bfded Changed Int div implementation to use != 2020-05-01 17:29:12 -04:00
Chad Stearns
6b6e6f0eec Changed Int div implementation to use != 2020-05-01 17:17:41 -04:00