Commit Graph

170 Commits

Author SHA1 Message Date
Erik Svedäng
b745b1fcdb build: 0.5.3 2021-09-17 13:54:26 +02:00
Erik Svedäng
5cc691be56 build: 0.5.2 2021-09-08 19:59:00 +02:00
Erik Svedäng
3b429541a3
refactor: Clean up memory management functions (#1240)
* refactor: Mid-refactor save point.

* feat: Code compiles

* refactor: Remove unused imports

* refactor: Move functions out of massive `manageMemory` block

* refactor: Move out even more functions from `manageMemory`

* refactor: Made most patterns match on "head form" of each s-expression

e.g. (if a b c) matches on 'if', 'a', 'b' and 'c'

* refactor: Use the pattern synonyms in Memory

* refactor: Remove a little cruft

* refactor: whenOK function

* refactor: Use 'whenRight' functions to avoid directly matching on Either

* docs: Comment the 'getConcretizedPath' function

* refactor: Move functionFinding-functions into Polymorphism module
2021-06-16 21:41:58 +02:00
Erik Svedäng
99c4284f27 build: Release 0.5.1 2021-06-06 20:55:54 +02:00
Scott Olsen
1458bf4031
feat: Add support for emitting literal C (#1178) 2021-03-04 07:29:52 +01:00
Erik Svedäng
528228373f build: Release v0.5.0 2021-02-01 19:22:42 +01:00
Veit Heller
b83ff8a024
Make sure output directory is right in test (#1089)
* chore: make sure output directory is right in test

* chore: make --no-profile work again
2020-12-22 10:36:43 +01:00
Erik Svedäng
a152a0d6e1
fix: Bumped Ormolu version to 0.1.4.1 (#1050) 2020-12-03 12:02:58 +01:00
Erik Svedäng
7920a751bf
refactor: Apply Ormolu auto-formatting (#1045) 2020-12-02 16:33:37 +01:00
Veit Heller
fe07a3f062
Refactor error reporting and add CARP_DIR check (#1033)
* compiler: refactor error reporting and add CARP_DIR check

Co-authored-by: Tim Dévé <TimDeve@users.noreply.github.com>

* set CARP_DIR in tests

Co-authored-by: Tim Dévé <TimDeve@users.noreply.github.com>
2020-11-30 15:58:25 +01:00
Erik Svedäng
d74b90c8ce
Update Main.hs 2020-11-26 08:26:11 +01:00
Jorge Acereda
58a61dd42e Add support for cross-compilation. 2020-10-10 20:01:18 +02:00
Jorge Acereda
134d9a5b02 Implement load-stack. 2020-06-28 19:53:43 +02:00
Jorge Acereda
0d7533e887 Register additional modules in project. 2020-06-27 21:48:46 +02:00
Erik Svedäng
7e440cae8c
Merge pull request #856 from jacereda/c99fixes
C99 fixes
2020-06-08 22:08:31 +02:00
Jorge Acereda
6656d96791 Add pkgconfigflags. 2020-06-01 21:34:12 +02:00
Jorge Acereda
121e3fa56d C99 fixes 2020-05-30 22:37:01 +02:00
Erik Svedäng
ea372b1728
Merge pull request #827 from jacereda/cmdline-eval
Command line switches to evaluate code
2020-05-24 11:45:44 +02:00
Scott Olsen
fbc226ce2f Move Info into its own module
Unlike many of the other datatypes in Obj.hs, Info does not introduce
mutually recursive dependencies. Obj.hs is quite large and contains a
lot of different functionality, so I think it helps to move anything
that we can separate out into its own module in order to start
simplifying the Obj.hs and its responsibilities.
2020-05-23 13:09:53 -04:00
Jorge Acereda
47c93f5fb6 Remove unused binding. 2020-05-23 18:57:23 +02:00
Jorge Acereda
7691d74c8c Cleaner [a] parsing. 2020-05-23 09:27:48 +02:00
Jorge Acereda
2ac01a1c3e Bad args to execStr. 2020-05-22 23:30:09 +02:00
Jorge Acereda
6bce3b1ee1 Implement --eval-preload and --eval-postload. 2020-05-22 22:45:46 +02:00
Jorge Acereda
0a1069884a Prompt is optional 2020-05-21 20:53:41 +02:00
Jorge Acereda
794d0f99fc Remove default value for prompt 2020-05-21 20:39:42 +02:00
Jorge Acereda
56b98a3149 Bring back --no-core/--no-profile. 2020-05-21 20:36:27 +02:00
Jorge Acereda
dba9ef53c3 Switch option parsing to optparse-applicative, remove tcc dependency. 2020-05-21 20:06:07 +02:00
Jorge Acereda
59ef5bbf2b Added --compile-fast to compile with tcc. 2020-05-21 20:04:54 +02:00
Erik Svedäng
12ec75ba8b Can configure 'force-reload' that makes 'load-once' work just like 'load'. 2020-05-06 10:27:10 +02:00
Erik Svedäng
ca804beace Added support for (load-once). 2020-05-05 15:00:57 +02:00
Erik Svedäng
1eaebb7d33 Make it possible to turn off loading of profile.carp, useful for
tests (especially the --no-core one).
2020-04-30 15:01:30 +02:00
hellerve
a88e4f6fbf core: add toggle for balance hints 2020-04-29 19:39:00 +02:00
hellerve
6185099044 interim 2020-04-17 11:58:26 +02:00
hellerve
378906329e repl: make multi code blocks work again 2020-04-17 11:56:05 +02:00
hellerve
fd78bf07a9 eval: feature parity 2020-04-17 11:56:05 +02:00
hellerve
906a96c66d eval: print results only if necessary 2020-04-17 11:54:39 +02:00
hellerve
32f24689b1 repl: update repl on every iteration 2020-04-17 11:54:39 +02:00
hellerve
407d8aacde eval: add tracebacks 2020-04-17 11:54:38 +02:00
Erik Svedäng
c258296623 Remove trailing slash in out dir, messes up on Windows. 2019-12-18 11:20:34 +01:00
Erik Svedäng
834afb56e7
Merge pull request #613 from hellerve/hlint-fixes
Apply hlint fixes
2019-11-25 12:26:19 +01:00
Erik Svedäng
3f877a84c3 Trailing '/' for "out" dir in project (should be properly fixed by
using Filepath?).
2019-10-31 09:43:52 +01:00
hellerve
1435c465dd main: apply hlint fixes 2019-10-30 12:20:57 +01:00
Erik Svedäng
adbfd97719 Change character for Carp (fixes #578) 2019-10-15 10:25:32 +02:00
Jorge Acereda
28104b0fb2 Path module. 2019-10-09 12:18:30 +02:00
Jorge Acereda
4a4107fffd Preserve includes order in generated output. 2019-10-03 00:23:27 +02:00
Erik Svedäng
4ceb187a06 Bump to version 0.3.0. 2019-07-04 10:34:03 +02:00
Jorge Acereda
bbf8c23281 Use standard NDEBUG instead of OPTIMIZE. 2019-06-13 14:29:47 +02:00
hellerve
c35a83c94c core: add docs-generate-index (references #374) 2019-04-29 19:06:53 +02:00
Chris Dewar-English
0103ef7370 Change the setting name to remove confusion 2019-04-22 21:52:06 +01:00
Chris Dewar-English
7882fc63bf Option to disable compilation (just generate the C source) 2019-04-22 20:02:34 +01:00