Commit Graph

2870 Commits

Author SHA1 Message Date
Erik Svedäng
6e428a07c6 Merge branch 'fix-slash-char' of https://github.com/hellerve/Carp into hellerve-fix-slash-char 2018-10-22 21:22:44 +02:00
Erik Svedäng
8040d40156
Merge pull request #310 from hellerve/optional-colors
Compiler: only use colored errors on ttys
2018-10-22 21:21:34 +02:00
Erik Svedäng
f985e5aa75 Merge branch 'master' of https://github.com/carp-lang/Carp 2018-10-22 21:17:33 +02:00
Erik Svedäng
28d811498b Merge branch 'random-seeding' of https://github.com/hellerve/Carp into hellerve-random-seeding 2018-10-22 21:15:48 +02:00
Erik Svedäng
7af30165b7
Merge pull request #308 from hellerve/moar-io
Add more file IO functions
2018-10-22 21:14:18 +02:00
hellerve
d028f81456 emit: fix emitting slash character 2018-10-20 18:04:31 -04:00
hellerve
498af1ad45 compiler: only use colored errors on ttys 2018-10-19 08:33:26 -04:00
hellerve
59f636f051 core: Random.seed with a good default, rename old version to Random.seed-from 2018-10-19 10:31:00 +02:00
hellerve
3877f3988c core: add more file io functions 2018-10-18 17:22:35 +02:00
hellerve
3f4cad15ad core: add fread, fflush, and rewind to IO 2018-10-17 11:46:11 +02:00
Erik Svedäng
f795b221a3
Merge pull request #305 from hellerve/master
Fix typo in manual
2018-10-14 12:20:41 +02:00
hellerve
40af5c3a5a docs: fix #304 2018-10-14 10:06:05 +02:00
Erik Svedäng
f2de6aafd3
Merge pull request #302 from hellerve/add-headerparse-to-loc
Add headerparse to lines_of_code.sh
2018-10-04 16:37:00 +02:00
hellerve
06f6c1be83 loc: add headerparse 2018-10-04 15:20:01 +02:00
Erik Svedäng
eb811848ff
Merge pull request #270 from cammellos/tests/add-args-tests
Add tests for args
2018-10-01 20:43:53 +02:00
Andrea Maria Piana
e59d16090a
Add tests for args 2018-10-01 08:40:58 +02:00
Erik Svedäng
3432f42a56
Merge pull request #297 from hellerve/bool-macros
Proposal: make `and` and `or` macros
2018-09-30 20:20:14 +02:00
Erik Svedäng
fc6c349d96
Merge pull request #298 from hellerve/use-closures-in-core
Use closures in core
2018-09-30 20:17:14 +02:00
hellerve
e4ee7cd153 eval: rename mor and mand to Dynamic.or and Dynamic.and 2018-09-28 10:08:06 +02:00
Erik Svedäng
cf4f4da084 BUGFIX: Don't emit lambdas where some captured type is not concretized. 2018-09-26 22:15:45 +02:00
Erik Svedäng
71289dc029
Merge pull request #300 from hellerve/case-chars
Add Char.upper-case and Char.lower-case
2018-09-25 17:00:57 +02:00
Erik Svedäng
584e9fc53f Don't crash compiler when a type is missing from the env (it happens when the type is external). 2018-09-25 16:51:23 +02:00
Erik Svedäng
531ad4de05 BUGFIX: Handle refs and pointers in 'concretizeType'. 2018-09-25 16:49:02 +02:00
Erik Svedäng
83314ec9d9 Bug #299 doesn't seem to depend on lambdas actually... 2018-09-25 16:44:07 +02:00
hellerve
2d4239ed6b core: rename Char.upper-case and Char.lower-case with ? 2018-09-25 16:40:02 +02:00
Erik Svedäng
9c9911c542 Call concretizeTypeOfXObj on lambda args and the lambda itself. 2018-09-25 16:37:45 +02:00
Erik Svedäng
a4b250ad2c Bug, see issue #299. 2018-09-25 16:30:48 +02:00
hellerve
d4aeee29b6 compiler: revert mangling hack 2018-09-25 16:24:10 +02:00
hellerve
620bc4c5c5 all: use closures in core 2018-09-25 16:20:59 +02:00
hellerve
57ece77b48 test: add tests for Char.upper-case and Char.lower-case 2018-09-25 16:19:30 +02:00
hellerve
0114ae806a core: add Char.upper-case and Char.lower-case 2018-09-25 16:14:38 +02:00
Erik Svedäng
85a2c56598 Make lambdas carry a SymPath instead of a String to their lambda function. 2018-09-25 15:59:55 +02:00
hellerve
023dfa1ae3 all: make and and or macros 2018-09-23 09:34:38 +02:00
Erik Svedäng
58a51af7fd BUGFIX: Missing case in GenerateConstraints patched. 2018-09-21 23:31:29 +02:00
Erik Svedäng
6f457a3aa3 Interesting memory bug with 'and' (and 'or'?) 2018-09-21 19:59:49 +02:00
Erik Svedäng
7a1b70b947 Weird bug with memory management inside 'and'? Workaround for now... 2018-09-21 19:46:55 +02:00
Erik Svedäng
88466c5de1 Comment out failing test. 2018-09-21 19:42:43 +02:00
Erik Svedäng
2d1a8205d4 reload.carp tests 2018-09-21 18:09:14 +02:00
Erik Svedäng
2aed141ac7 Tests for ensuring that recursion works properly. 2018-09-21 18:02:43 +02:00
Erik Svedäng
6d813837ac Move example functions of functions/lambdas from temp. 2018-09-21 17:47:37 +02:00
Erik Svedäng
beadcfa324 Weird bug found. 2018-09-21 17:23:09 +02:00
Erik Svedäng
021cfd04da One more test for error message. 2018-09-21 15:17:12 +02:00
Erik Svedäng
eebd00a479 Test for type mismatch error. 2018-09-21 14:57:41 +02:00
Erik Svedäng
53dc991129 Enable testing for error messages, using the check.sh functionality. 2018-09-21 14:53:06 +02:00
Erik Svedäng
e15e7b93b0 Can make error reporting when using --check print long or short file paths. 2018-09-21 13:57:39 +02:00
Erik Svedäng
cc093ddbc7
Merge pull request #295 from hellerve/macro-info
Add file, line, and column commands
2018-09-19 18:42:49 +02:00
hellerve
cfee23c429 core: fix stray usage of outdated debug functionality 2018-09-19 17:53:09 +02:00
hellerve
76d86f13e1 eval: refactor file, line, and column; Debug: better trace 2018-09-19 17:46:16 +02:00
Erik Svedäng
d1c0cffaab
Merge pull request #296 from hellerve/fix-mode-resolution
Fix mode resolution for multisymbols
2018-09-19 16:45:11 +02:00
hellerve
eed1e06e78 concretize: add command about duplication in modeFromPath 2018-09-19 16:44:36 +02:00