Commit Graph

7 Commits

Author SHA1 Message Date
Asdine El Hrychy
d981a577c0 db: introduce row type 2023-12-01 20:39:23 +04:00
agonist
71477da66c Add random function (#514) 2023-11-24 20:26:03 +04:00
Asdine El Hrychy
b00f075039 Add types.As and types.Is 2022-05-15 23:23:07 +04:00
Asdine El Hrychy
575498d67e Remove Wasm related code 2022-01-15 23:29:21 +04:00
Jean Hadrien Chabran
1659ae24e5 Add more math functions (#421)
* Add math.acos and math.abs

* Add acosh, asin, asinh, atan and atan2

* Test for proper function documentation

* Cast to double on math functions

* Use the new types.Value interface
2021-07-22 15:47:56 +02:00
Asdine El Hrychy
f966172cee Introduce Value interface (#422)
This replaces the Value struct by an interface to allow us to override some
values behavior in the future.
It also introduces a new package types, which contains type definitions, comparison,
and arithmetics.
Concerning encoding, Genji now only uses on type of encoding for values. This simplifies
indexing logic as well as table access in general.
2021-07-21 22:05:44 +04:00
Jean Hadrien Chabran
e556fc3048 Add functions packages support (#419)
* Add packaged functions support

* Add tests for math.floor func

* Export FunctionsTable

* Extract func stuff into its own package

* Rename stuff

* Fix tests

* Move doc package to cmd/genji

* Adjust naming, typos
2021-07-17 13:07:16 +02:00