Commit Graph

39 Commits

Author SHA1 Message Date
hellerve
8e2cff8dcf core: manual merge 2018-02-27 15:30:22 +01:00
hellerve
01f366f2c8 core: remove interdependencies between modules 2018-02-27 15:10:42 +01:00
hellerve
1ec7ee184d core: split up core 2018-02-27 15:09:13 +01:00
Erik Svedäng
e80af19a39 Added prn for Strings, make 'str' not print with @ and quotes. 2018-02-06 18:37:15 +01:00
Erik Svedäng
5c6bdb87d8 Define 'prn' function for built in types. 2018-02-06 16:48:14 +01:00
Erik Svedäng
26887f3716 Changed type signature of (set! ...) form. 2018-02-02 07:19:10 +01:00
Erik Svedäng
0f99128f9c Moved simplified dictionary code to generic struct examples. 2018-01-28 22:54:59 +01:00
Erik Svedäng
5042415109 Could avoid copying the array in String.repeat now. 2018-01-16 16:28:05 +01:00
hellerve
41ac52af99 core: fixed behavior of from-chars and ends-with? 2018-01-03 12:50:47 +01:00
hellerve
d32fe4102f core: added a few more functions to stdlib 2018-01-02 18:13:52 +01:00
hellerve
7c9eaeac9f core: made format not leak memory; test: added test for format and fmt 2017-12-30 20:16:31 +01:00
hellerve
eccddd00fe format: added simple versions of format (work on issue #108) 2017-12-30 15:13:56 +01:00
hellerve
6897606f39 core: added random & random-between to char, random to string 2017-12-28 18:10:38 +01:00
Erik Svedäng
69b6c43a59 Comment. 2017-12-23 14:32:24 +01:00
Erik Svedäng
ef1dd0a45e Fixed memory bug in String.repeat that was discovered when running with -fsanitize=address 2017-12-23 14:30:45 +01:00
hellerve
1c861d9f4d interim commit 2017-12-22 11:17:19 +01:00
hellerve
9ebd2c7997 core: moved from C for String./= to Carp 2017-12-19 18:01:06 +01:00
hellerve
d04cd6dfb1 core: added = and /= for regular strings, not just refs, fixed String./= 2017-12-19 17:53:27 +01:00
Erik Svedäng
a3dd41cea7
Merge pull request #134 from hellerve/string-lib
Strings I: A few functions
2017-12-18 22:39:08 +01:00
hellerve
9116d16e4c tests: tested new string functions 2017-12-18 16:19:29 +01:00
hellerve
582543a1cf core: simplified String.head 2017-12-18 16:06:17 +01:00
hellerve
309f1377dd core: added more string functions: compiler: added array reverse 2017-12-18 15:46:25 +01:00
hellerve
2f4505bf73 core: added char-at to String 2017-12-18 12:31:33 +01:00
hellerve
ea2f378cbf string: fixed padding functions 2017-12-18 12:31:33 +01:00
hellerve
9a521ef42a string: added head and tail 2017-12-18 12:31:33 +01:00
hellerve
5451c0367f string: started lib as specified in #94, currently blocked by #118 2017-12-18 12:31:08 +01:00
Erik Svedäng
dc49804068 Raise error when applying a non-existing macro / dynamic function. 2017-12-17 15:20:06 +01:00
Erik Svedäng
6938b65f01 Investigating bugs with symbol lookup in modules. 2017-12-12 12:57:13 +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
hellerve
99573e335f core: bugfix in String.from-chars; added Char.to-int and Char.from-int 2017-11-14 18:33:03 +01:00
hellerve
631e2ab95f testing: added Test module 2017-10-23 16:07:54 +02:00
Erik Svedäng
b1f86624fb Allow &t instead of (Ref t) in type declarations. 2017-10-17 16:05:42 +02:00
Erik Svedäng
b1819ef259 Started working on a slide show presentation. 2017-10-13 15:07:34 +02:00
Erik Svedäng
aee6e713b3 Removed left-over trace. 2017-10-13 12:48:18 +02:00
Erik Svedäng
8573098dca str-function generated for structs 2017-10-10 20:13:58 +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
c80526cfaa REPLACE WITH HASKELL VERSION 2017-06-26 11:15:03 +02:00