Commit graph

41 commits

Author SHA1 Message Date
Richard Feldman
f90b64edd9 Use a custom macro for builtin_defs 2020-06-20 10:58:12 -04:00
Richard Feldman
07689ca9dc Switch back to builtin_defs returning Def 2020-06-20 10:57:44 -04:00
Richard Feldman
16ceb895c1 Fix some Bool.isEq stuff 2020-06-19 20:45:14 -04:00
Richard Feldman
dec5c3a062 Get low-level ops compiling 2020-06-19 20:07:04 -04:00
Richard Feldman
1b3b9ee1c4 Merge remote-tracking branch 'origin/trunk' into specialize-separately 2020-06-13 23:54:30 -04:00
Richard Feldman
269da82840 Make VarStore no longer use atomics 2020-06-13 21:59:01 -04:00
Richard Feldman
245a9fc951 Merge remote-tracking branch 'origin/trunk' into specialize-separately 2020-06-13 21:03:38 -04:00
Chad Stearns
5ad05efa39 Merging in remote 2020-06-07 23:50:20 -04:00
Richard Feldman
e726d838ea Don't have builtins return Defs 2020-06-06 23:55:05 -04:00
Richard Feldman
1ef85fa061 Store builtins as a Map 2020-06-06 23:47:00 -04:00
Richard Feldman
9e02537ebb Store builtins as a Map 2020-06-06 23:41:09 -04:00
Richard Feldman
60e583fb78 Improve debug stuff a bit 2020-05-26 21:19:47 -04:00
Richard Feldman
887ec9860a wip 2020-05-26 21:19:46 -04:00
Chad Stearns
5c1c9efb89 Added trigonometric functions to code gen and builtins 2020-05-25 16:28:41 -04:00
Chad Stearns
c83a6dc7b8 Float function isPositive, isNegative, and isZero 2020-05-22 23:05:17 -04:00
Chad Stearns
a01bdd66c5 isZero, isPositive, isNegative 2020-05-18 12:49:27 -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
Chad Stearns
198716498c Used negate instead of multiplying by -1 for INT_ABS implementation 2020-05-09 21:43:41 -04:00
Chad Stearns
dea2fe2382 Moved exiting builtin functions to use defn helper 2020-05-09 18:11:21 -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
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
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
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
Chad Stearns
516f5736c2 Merging in remote trunk 2020-04-29 18:01:55 -04:00
Chad Stearns
9107880928 Implemented generated built in int division, with the return type as a result 2020-04-29 17:36:02 -04:00
Richard Feldman
353377c29e Re-enable List.get 2020-04-28 19:46:33 -04:00
Richard Feldman
1bee16decd Temporarily disable List.get in favor of getUnsafe 2020-04-26 09:37:46 -04:00
Richard Feldman
a2e6c4ba12 Restore some things 2020-04-26 08:59:52 -04:00
Richard Feldman
310595c108 Revert "Only add builtins if they're referenced"
This reverts commit 8e9b02560e9b172def0e915631e1d116c64859f2.
2020-04-26 08:45:47 -04:00
Richard Feldman
d2a9d24626 Only add builtins if they're referenced 2020-04-26 08:45:47 -04:00
Richard Feldman
afbe871e6d wip 2020-04-26 08:45:41 -04:00
Richard Feldman
d0c9c433a6 Have List.first return Err ListWasEmpty 2020-04-25 07:57:41 -04:00
Richard Feldman
e78b126207 Give List.first the right name 2020-04-25 07:51:56 -04:00
Richard Feldman
a399614824 Use helpers in can builtins 2020-04-25 07:51:45 -04:00
Richard Feldman
d6d453d120 Add a TODO comment 2020-04-25 07:00:44 -04:00
Richard Feldman
07001131b2 Add can::builtins 2020-04-25 06:30:01 -04:00