Commit Graph

346 Commits

Author SHA1 Message Date
Erik Svedäng
7fcb870c2b Presentation could work (not really "done" though...) 2017-10-13 16:36:00 +02:00
Erik Svedäng
09fc80599a Renamed some functions in Double and Float. 2017-10-13 16:11:23 +02:00
Erik Svedäng
cebc0a98d9 Modules explained. 2017-10-13 16:04:06 +02:00
Erik Svedäng
6bf7bf453d Put foreach macro into the Array module. 2017-10-13 13:50:15 +02:00
Erik Svedäng
49b13592fb foreach-macro 2017-10-13 13:48:40 +02:00
Erik Svedäng
b9f57a9511 Changed signature of 'Array.transform' function. 2017-10-13 13:44:27 +02:00
Erik Svedäng
aee6e713b3 Removed left-over trace. 2017-10-13 12:48:18 +02:00
Erik Svedäng
d6bac91d68 Detect unresolved generic variables. 2017-10-13 09:44:30 +02:00
Erik Svedäng
68304c495e Use cond instead of ifs. 2017-10-13 09:10:29 +02:00
Erik Svedäng
8ddeb948fc Referencing a given-away value leads to compile error. 2017-10-12 22:18:43 +02:00
Erik Svedäng
02af9ffb38 Made push-back use realloc again. 2017-10-12 21:40:02 +02:00
Erik Svedäng
6c28e19c0c Todos. 2017-10-12 21:20:18 +02:00
Erik Svedäng
cba677ee89 Range function works again. 2017-10-12 20:13:53 +02:00
Erik Svedäng
614ad0845a Todo. 2017-10-12 17:10:59 +02:00
Erik Svedäng
bcb757e461 Tweaked array.carp 2017-10-12 17:03:01 +02:00
Erik Svedäng
3b0ff523eb Array tests work again. 2017-10-12 17:02:00 +02:00
Erik Svedäng
e08683e7d2 Relaxed the requirement for all multi symbols to be resolved. Allows for some bugs though... 2017-10-12 14:35:28 +02:00
Erik Svedäng
46681f4cd5 Print strings with @ in front of them. 2017-10-12 08:38:53 +02:00
Erik Svedäng
3f80d494d3 Filename is stored with info for each s-expression. 2017-10-12 08:23:22 +02:00
Erik Svedäng
fc63c73417 Printing of external types works too (their address is printed instead). 2017-10-11 16:22:14 +02:00
Erik Svedäng
8a454de169 The str-functions don't leak memory. 2017-10-11 16:09:05 +02:00
Erik Svedäng
bb367e284a Example of printing struct with array member. 2017-10-11 15:34:37 +02:00
Erik Svedäng
150dd68b3a Printing structs with array members work now too. 2017-10-11 15:31:09 +02:00
Erik Svedäng
68c58f149d Can generate str functions for arrays of primitives and of other arrays. 2017-10-11 15:19:36 +02:00
Erik Svedäng
6083d17b84 Getting there... 2017-10-11 15:13:40 +02:00
Erik Svedäng
cdc763fbff Started working on str for arrays. 2017-10-11 13:44:19 +02:00
Erik Svedäng
d4f1910bce Added Bool module. Fixed error in test selection.carp 2017-10-11 10:52:18 +02:00
Erik Svedäng
8573098dca str-function generated for structs 2017-10-10 20:13:58 +02:00
Erik Svedäng
2f4b187d5b Let-expressions can't return references. 2017-10-10 15:38:43 +02:00
Erik Svedäng
a6b0ef0b1a Don't discard results in ManageMemory when checking function application. 2017-10-10 15:22:30 +02:00
Erik Svedäng
52d6d4196e Bug. 2017-10-10 13:50:47 +02:00
Erik Svedäng
b180dbbb2b A todo-file. 2017-10-10 13:20:59 +02:00
Erik Svedäng
65d17b732c Tweaks to the memory logger. Also, replicate now takes a reference. 2017-09-29 14:54:49 +02:00
Erik Svedäng
b17780aa79 Fixed bugs in replicate and with nameofpolymorphicfunction. 2017-09-29 14:07:42 +02:00
Erik Svedäng
8cae7a7a3b A way to run all tests in one go. 2017-09-08 12:24:57 +02:00
Erik Svedäng
a6051220fe The function setFullyQualifiedSymbols visits arrays also. 2017-09-07 21:05:37 +02:00
Erik Svedäng
3308652c75 Use the type (Ptr Char) to express raw C strings. 2017-09-07 19:44:02 +02:00
Erik Svedäng
9781c5f7cb Fixed all examples after changing string literals to refs. 2017-09-07 18:55:43 +02:00
Erik Svedäng
515bc03664 Changed string literals to be Ref:s. Fixed basics.carp, more to go... 2017-09-06 15:03:37 +02:00
Erik Svedäng
e37a3e679b s/import/use in carp files. 2017-09-06 10:05:19 +02:00
Erik Svedäng
d4bd748518 Can emit score of each binding, will help catch this bug! 2017-09-05 15:38:33 +02:00
Erik Svedäng
2cf6b0cd7f Even less duplication. 2017-09-05 14:11:18 +02:00
Erik Svedäng
2ec9b947fc Remove some more code duplication. 2017-09-05 13:49:53 +02:00
Erik Svedäng
a29d0852ae Allow arrays as members again. 2017-09-05 11:43:33 +02:00
Erik Svedäng
9f6418022f Better error messages for weird types in typedef. 2017-09-05 11:32:32 +02:00
Erik Svedäng
ecfe36a7c0 Don't visit type object in concretizing of "the"-expression. 2017-09-04 16:03:15 +02:00
Erik Svedäng
c6e7ba890e Final ref gone. 2017-09-04 11:42:48 +02:00
Erik Svedäng
ab19c2323f More &. 2017-09-04 11:42:09 +02:00
Erik Svedäng
f463fa4e44 Use & instead of ref. 2017-09-04 11:40:55 +02:00
Erik Svedäng
27d0baefba Got rid of special "insideArrayDeps" functions that were just duplication. 2017-09-01 16:57:09 +02:00