Commit Graph

132 Commits

Author SHA1 Message Date
Erik Svedäng
0bf2d2bcaf Merge branch 'master' of https://github.com/carp-lang/Carp 2017-12-10 19:45:59 +01:00
Erik Svedäng
6ac76fc39e Subarray. 2017-12-08 15:12:50 +01:00
Erik Svedäng
42ce182669 Better "platform-only" macros. 2017-12-07 14:59:55 +01:00
hellerve
95dc737950 sdl: aded str and copy to keycode; compiler: use str function on member even if its external 2017-12-04 19:20:05 +01:00
hellerve
e17b6b892c core: minor fixes 2017-12-04 19:17:52 +01:00
Erik Svedäng
e15b35e58f Working on conditional compilation macros (not done). 2017-12-04 09:29:15 +01:00
Erik Svedäng
f902ea2be9 Revert "Adopt a length-prefixed string type"
This reverts commit d573372c7b.
2017-12-04 09:24:31 +01:00
Erik Svedäng
b0cdc65f4b Implemented 'add-ref' and 'zero' for Int/Float/Double. Allows nice 'Array.sum' function. 2017-12-04 07:21:35 +01:00
Erik Svedäng
270f54a1de Worked around a BUG: Importing Int and Array when defining String functions break things. 2017-12-04 06:58:06 +01:00
Erik Svedäng
ad6b1a9b6d Added 'words' and 'lines' function 2017-12-03 22:30:48 +01:00
Felipe Oliveira Carvalho
d573372c7b Adopt a length-prefixed string type 2017-12-03 19:15:25 +01:00
Felipe Oliveira Carvalho
17542b0bf4 Change type of Array.len to size_t 2017-12-03 19:14:58 +01:00
Felipe Oliveira Carvalho
3ba1ebfe65 Replace CARP_STRDUP with String_copy 2017-12-03 19:14:28 +01:00
Erik Svedäng
46004c7e69 A function for getting the numeric meaning of the chars '0' - '9'. 2017-12-01 12:02:36 +01:00
Erik Svedäng
5efecc1c8a Turned the def* commands into special forms to not evaluated their args. 2017-12-01 10:36:14 +01:00
Erik Svedäng
778b0d465e Args to commands are not evaluated at the REPL, for now. 2017-11-30 23:00:00 +01:00
Erik Svedäng
9e51b110af Added 'Dynamic' module that will contain dynamic versions of various functions. 2017-11-30 14:47:21 +01:00
Erik Svedäng
699e64d9ed Tried out writing a conditional compilation function. 2017-11-30 13:43:58 +01:00
hellerve
4e53130f53 long & int: updated tests 2017-11-29 17:28:05 +01:00
hellerve
fba4e8ba5e long & int: added binary arithmetic 2017-11-29 17:26:51 +01:00
Erik Svedäng
7d3931c46a
Merge pull request #117 from hellerve/misc
Miscellaneous fixes
2017-11-29 15:50:12 +01:00
Erik Svedäng
7bbdf2c041
Merge pull request #115 from hellerve/long-to-int
Added int conversion to long module
2017-11-29 15:49:24 +01:00
hellerve
911076276e all: miscellaneous fixes 2017-11-29 15:28:21 +01:00
hellerve
0e8558f6c3 long: added int conversion 2017-11-29 11:45:20 +01:00
Erik Svedäng
5dc648c93c Use carp malloc. 2017-11-28 10:08:17 +01:00
Erik Svedäng
6998bb04d7 File reading function. 2017-11-28 10:07:46 +01:00
Erik Svedäng
f4f9eed551 Interfaces for +-*/ would be cool. 2017-11-27 21:55:52 +01:00
hellerve
843402c42f fixed test cases 2017-11-27 14:51:33 +01:00
hellerve
89eb010045 tests: simplified 2017-11-27 14:45:14 +01:00
Erik Svedäng
1ae5385ad8 Merge branch 'master' of https://github.com/carp-lang/Carp 2017-11-27 12:56:08 +01:00
Erik Svedäng
7b5a0aa7eb All tests run, but can still confuse the type checker, see "expression_problem.carp" 2017-11-27 12:36:17 +01:00
tamamu
a5c90feab8 Add CFLAG to build on typical Linux OSes 2017-11-26 16:17:48 +09:00
Erik Svedäng
88fd0dc32c Adding an interface for '/='. 2017-11-24 17:17:49 +01:00
Erik Svedäng
de4cae3a9c
Merge pull request #106 from hellerve/simplify-geometry
Simplify Geometry module
2017-11-24 17:06:24 +01:00
hellerve
e874111093 geometry: simplified conversion 2017-11-24 16:22:53 +01:00
hellerve
cb2e278576 geometry: simplify functions for converting between degree and radians 2017-11-24 16:21:47 +01:00
Erik Svedäng
fb8d559cd9
Merge pull request #104 from hellerve/pi-and-e
Improve precision of π and e
2017-11-22 22:58:56 +01:00
Erik Svedäng
f566d080d8 Interfaces more typeclass-like, all tests run. 2017-11-22 22:03:08 +01:00
hellerve
ba2aa70a55 double: improve precision of pi and e 2017-11-22 18:25:03 +01:00
Erik Svedäng
6f86e2802a New compiler flag: --log-memory 2017-11-22 16:33:03 +01:00
Erik Svedäng
9f60aba18d strdup is handled properly by the memory balancer 2017-11-22 16:25:05 +01:00
Erik Svedäng
c3f5f233cc Disable memory logging. 2017-11-22 16:08:19 +01:00
Erik Svedäng
be74ad5a1e Fixed a few cases where plain malloc was used (should be CARP_MALLOC) 2017-11-22 16:04:14 +01:00
hellerve
6954766aa7 testing: with-test macro should return non-null on failure 2017-11-22 13:48:58 +01:00
Erik Svedäng
50c9c90d21 Interfaces! 2017-11-21 16:56:39 +01:00
Erik Svedäng
e172a736ea New compiler flag: '--no-core' for running the compiler without the core libraries. 2017-11-21 12:21:36 +01:00
hellerve
b3d19ae9da int/long: added math functions 2017-11-17 12:26:01 +01:00
hellerve
40c19b138e int/long: added safe arithmetic 2017-11-16 21:19:39 +01:00
hellerve
64a82c2730 float: added all math function in math.h 2017-11-16 09:46:06 +01:00
hellerve
d346673a74 double: added all math function in math.h 2017-11-15 14:06:49 +01:00