Commit Graph

2497 Commits

Author SHA1 Message Date
Erik Svedäng
87cf50fad9 Merge branch 'string-functions' of https://github.com/hellerve/Carp into hellerve-string-functions 2018-03-13 14:29:41 +01:00
Erik Svedäng
9d36c9e220 Fixed: 'assert' macro. Also -- reporting of errors in expanded macros now works. 2018-03-13 13:10:15 +01:00
hellerve
da91127563 core: add useful string functions 2018-03-13 12:13:29 +01:00
Erik Svedäng
b55bdd8e38 Preparations for making assert macro work. 2018-03-13 10:16:48 +01:00
Erik Svedäng
a9fd73ab2a Load 'Debug.carp' by default. 2018-03-13 09:43:08 +01:00
Erik Svedäng
832212d3fe The 'relative-include' macro works. 2018-03-13 09:36:18 +01:00
Erik Svedäng
139fee6d9f
Merge pull request #197 from hellerve/patch-1
Update license notice
2018-03-13 03:05:30 +01:00
Veit Heller
f4f5736023
README: update license notice 2018-03-13 00:06:32 +01:00
Erik Svedäng
5d9987461a Allow any argument type to 'macro-error'. 2018-03-12 22:12:11 +01:00
Erik Svedäng
ac6afff264 Started working on 'relative-include' macro - not working yet though. 2018-03-12 16:30:36 +01:00
Erik Svedäng
b8b06fa636 Fix 'cat' command. 2018-03-12 15:03:19 +01:00
Erik Svedäng
6335bfc227 Remove four spaces before .capacity 2018-03-12 15:01:05 +01:00
Erik Svedäng
605a724765 Fixed memory leak in 'from-chars'. 2018-03-12 14:56:05 +01:00
Erik Svedäng
b5ab5cebca Fixed leaks in Array.reverse and Array.swap. 2018-03-12 14:37:53 +01:00
Erik Svedäng
f4d84c80fc Memory tests for all Array functions (some errors found but not solved). 2018-03-12 13:48:31 +01:00
Erik Svedäng
0301837072 More useable signature for 'Array.element-count'. 2018-03-12 12:11:33 +01:00
Erik Svedäng
b23d60616b More permissive signature for 'Array.index-of'. 2018-03-12 12:04:23 +01:00
Erik Svedäng
1b1e0b599c Started working on a 'source-dir' special command. 2018-03-11 20:17:40 +01:00
Erik Svedäng
7f3eeb392d Don't kebab case macros. 2018-03-11 20:17:26 +01:00
Erik Svedäng
2a79007a18 Todo. 2018-03-11 15:15:30 +01:00
Erik Svedäng
16cd751790 A String.join function. 2018-03-11 15:09:30 +01:00
Erik Svedäng
fcc01ff268 Some new functions and macros. 2018-03-11 14:53:50 +01:00
Erik Svedäng
4e0cdf50d0 Todo done. 2018-03-11 14:32:45 +01:00
Erik Svedäng
a83d343a98 Optimized 'Array.subarray', 3.90575s -> 25.046ms for taking the first half of an array of 10k ints. 2018-03-11 14:30:38 +01:00
Erik Svedäng
ef6c7ac620 Support for a "~/.carp/profile.carp" file that is auto-loaded after Core, if it exists. 2018-03-11 14:15:40 +01:00
Erik Svedäng
95fa034297 Support for setting output-directory with Project.config. 2018-03-11 14:03:38 +01:00
Erik Svedäng
f3b55e7937 Optimized Array.aupdate from 5.93691s to 2.75493s for array of 1000000 ints. 2018-03-11 13:56:07 +01:00
Erik Svedäng
8683df4032 Todos. 2018-03-11 13:28:00 +01:00
Erik Svedäng
c83f03d2bc Added benchmark for mutating version of 'swap' ('swap!') for comparison. 2018-03-11 10:44:02 +01:00
Erik Svedäng
ff6852d839 Changed signature of Array.swap. Optimized from 2.66486s -> 1.32265s for 1000000 Int elements. 2018-03-11 10:38:24 +01:00
Erik Svedäng
8da3aed90a Benchmark for swapping two elements in array. 2018-03-11 10:33:02 +01:00
Erik Svedäng
bf8cc4de0c Some todos. 2018-03-10 19:33:36 +01:00
Erik Svedäng
9941d7dcb2 Merge branch 'master' of https://github.com/hellerve/Carp 2018-03-10 18:08:38 +01:00
Erik Svedäng
31780b04c3 Sorting of globals can handle dependencies between modules. 2018-03-10 18:07:12 +01:00
Erik Svedäng
acdae505f0 Mutual recursion doesn't hang. 2018-03-10 17:31:08 +01:00
Erik Svedäng
66facb16de Accidentally pushed buggy code, fixed now (though mutual recursion is still problematic). 2018-03-10 17:13:35 +01:00
Erik Svedäng
78122e46fb Globals are sorted in dependency order. 2018-03-10 17:02:57 +01:00
Erik Svedäng
92950f63c9
Merge pull request #196 from hellerve/fix-pattern-parsing
Fix errors in pattern parsing
2018-03-09 19:20:41 +01:00
hellerve
a7f47cbb7e compiler: add quote to escapable characters within a pattern string 2018-03-09 17:20:07 +01:00
hellerve
afb06d7324 compiler: fix errors in pattern parsing 2018-03-09 17:15:53 +01:00
Erik Svedäng
db93ae5494 Intero 0.1.24 -> 0.1.28. 2018-03-09 07:29:57 +01:00
Erik Svedäng
a21d7a6566 Merge branch 'pattern-compiler-validation' of https://github.com/hellerve/Carp into hellerve-pattern-compiler-validation 2018-03-08 19:10:08 +01:00
Erik Svedäng
e173116cb4 Todo. 2018-03-08 18:49:09 +01:00
Erik Svedäng
2e6dacf4a1 Playing around with functions as members in structs. 2018-03-08 18:47:09 +01:00
Erik Svedäng
e12ae7669a Ignore examples/out (generated by repl in emacs) 2018-03-08 18:46:16 +01:00
hellerve
673a0a58fe compiler: remove stale code from parser 2018-03-08 12:19:40 +01:00
hellerve
bfeaa5eb50 compiler: add pattern parser validation 2018-03-08 12:16:25 +01:00
Erik Svedäng
ee2b31d311 Can set custom prompt with --prompt command line argument. 2018-03-08 07:33:16 +01:00
Erik Svedäng
55b7acce83 Improved emacs mode. 2018-03-08 07:15:07 +01:00
Erik Svedäng
da1ab600b8 Array will shrink when it's a fourth of its capacity. 2018-03-07 15:49:32 +01:00