Chad Stearns
5c1c9efb89
Added trigonometric functions to code gen and builtins
2020-05-25 16:28:41 -04:00
Richard Feldman
64583a01bb
move load::file::Module to can::
2020-05-25 16:02:10 -04:00
Richard Feldman
1d6d9ec994
Fix doc parsing bug
2020-05-23 22:43:09 -04:00
Richard Feldman
715b13263c
Reproduce doc parsing bug
2020-05-23 22:43:02 -04:00
Richard Feldman
7471cd5301
Add a test for parsing docs
2020-05-23 22:03:27 -04:00
Richard Feldman
3dac73d8d0
Parse doc comments
2020-05-23 22:03:21 -04:00
Richard Feldman
4d8cbc4811
Drop obsolete contains_newline method
2020-05-23 21:41:11 -04:00
Chad Stearns
c83a6dc7b8
Float function isPositive, isNegative, and isZero
2020-05-22 23:05:17 -04:00
Chad Stearns
3fef390a76
Merging in remote
2020-05-20 20:43:15 -04:00
Richard Feldman
62a399c569
Make things mobile-friendly
2020-05-18 23:21:36 -04:00
Chad Stearns
a01bdd66c5
isZero, isPositive, isNegative
2020-05-18 12:49:27 -04:00
Richard Feldman
33d4af8b5b
Add some stuff to Num docs
2020-05-14 22:02:05 -04:00
Richard Feldman
6e32c31c06
Try moving Int and Float docs into Num
2020-05-14 20:47:34 -04:00
Richard Feldman
7f05678bf8
Merge branch 'trunk' into int-rem
2020-05-13 22:53:31 -04:00
Chad Stearns
0140c4ca9f
Removed div_by_zero function where it wasnt needed
2020-05-13 19:09:50 -04:00
Chad Stearns
c8d62bd838
Int.isOdd and Int.isEven functions in code gen
2020-05-13 18:57:15 -04:00
Chad Stearns
7df4771f7b
Int.rem
2020-05-13 04:27:08 -04:00
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