Commit Graph

22 Commits

Author SHA1 Message Date
Veit Heller
fd9ceef1ae
docs: add docstrings to some dynamic functions (#1191) 2021-03-30 10:22:18 +02:00
Veit Heller
dacc13560b
feat: add dynamic Map type (#1168)
* feat: add dynamic map prototype

* feat: feature parity for dynamic map

* docs: document dynamic map

* test: add dynamic map tests

* fix: defdynamics are handled in getBinderDescription

* test: i forgot to add dynamic tests, whoops
2021-02-11 09:12:58 +01:00
Veit Heller
e42922e96e
feat: add Introspect.arguments (#1163)
* feat: add Introspect.arguments

* fix: fix struct case of Introspect.arguments
2021-02-01 17:03:38 +01:00
Veit Heller
a6a52c7605
feat: a proper dynamic numeric tower (#1140)
* feat: a proper dynamic numeric tower

The following things were changed and/or added:
- `Dynamic.neg` was added
- `Dynamic.mod` was changed to work on float values
- `Dynamic.cxr` was changed to work with `0` instructions
- `Dynamic.=` was changed to ignore the type of the number
- `Dynamic.round` was added
- dynamic arithmetic was changed to respect the numeric type tower
- the instances of `Eq` and `Ord` for `Number` are no longer derived, so that they work across numeric types
- the instance of `Num` for `Number` was changed to work across numeric types
- `promoteNumber` was added as a type function to implement the numeric tower.

The numeric tower is as follows:
Byte -> Int -> Long -> Float -> Double

* test: add tests for cxr, neg, and =

* test: add tests for Dynamic.round
2021-01-26 06:19:00 +01:00
Veit Heller
8c1999d656
feat: add fstr (#1142)
* feat: add fstr

* test: add fstr test

* fix: memory error in test

* fix: fix backslash parser

* feat: add octal escape literals
2021-01-26 06:18:16 +01:00
Scott Olsen
9a8c8582f2
feat: add Dynamic.mod (#1051) 2020-12-03 19:24:52 +01: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
Jorge Acereda
e6cf941187 Added add-c to include additional compilation units in the compiler invocation. 2020-06-21 17:22:24 +02:00
Jorge Acereda
6656d96791 Add pkgconfigflags. 2020-06-01 21:34:12 +02:00
Erik Svedäng
8e04cb476e Renamed Dynamic.String.join and Dynamic.Symbol.join to concat. 2020-04-30 13:32:54 +02:00
hellerve
22c53406a3 all: fixes for new evaluator 2020-04-17 11:58:28 +02:00
hellerve
ee812b37e6 core: make subarry/substring slice 2020-02-11 09:09:30 +01:00
hellerve
ba1fb68fe1 core: add dynamic string functions tail, prefix, and suffix 2019-09-11 15:03:44 +02:00
Jorge Acereda
7ed48b733b Refactored flags handling (add-pkg). 2019-06-17 09:02:34 +02:00
Erik Svedäng
fbd9c83f0d Documented the Dynamic module. 2019-06-07 15:19:07 +02:00
Erik Svedäng
0049c13111 Renamed 'defdynamic' to 'defndynamic'. 2019-03-13 18:49:48 +01:00
Erik Svedäng
669aca2b96 Added dynamic function 'Project.no-echo' to disable echoing in examples. 2018-06-05 10:05:33 +02:00
Erik Svedäng
fefce23b90 New Project.config command, the old project-set! is deprecated. 2018-02-08 17:12:32 +01:00
hellerve
2d183768fe compiler: added dynamic +, -, *, and / on integers 2017-12-30 15:13:00 +01:00
Erik Svedäng
778b0d465e Args to commands are not evaluated at the REPL, for now. 2017-11-30 23:00:00 +01:00
Erik Svedäng
9e51b110af Added 'Dynamic' module that will contain dynamic versions of various functions. 2017-11-30 14:47:21 +01:00