Carp/examples
Veit Heller 02936cc74c
feat: Derive (#1120)
* core: add derive

* fix: fix errors with set!

Notably, don't type check dynamic bindings (which can be set to
whatever) and eliminate a hang that resulted from not handling an error
at the end of the `set!` call. Also refactors some of the code in
efforts to make it a bit cleaner.

Also adds an error when `set!` can't find the variable one calls set!
on.

* feat: better derive

* test: add error test for derive

* document derive

* add derive to core documentation to generate

* core: add derive

* fix: fix errors with set!

Notably, don't type check dynamic bindings (which can be set to
whatever) and eliminate a hang that resulted from not handling an error
at the end of the `set!` call. Also refactors some of the code in
efforts to make it a bit cleaner.

Also adds an error when `set!` can't find the variable one calls set!
on.

* feat: better derive

* document derive

* feat: first completely working version of derive

* feat: make name of derivable customizable (thanks @scolsen)

* refactor: implement doc edits provided by @scolsen

* feat: change argument order for derive

* fix: change deriver error test

* test: add derive tests

* fix: change order of derive back

* docs: fix typo in derive document

Co-authored-by: scottolsen <scg.olsen@gmail.com>
2021-01-15 10:48:34 +01:00
..
headers chore: Move some examples to test/produces-output (#989) 2020-11-23 06:30:43 +01:00
bugs.carp Bug example. 2020-05-05 15:48:56 +02:00
carp_demo.carp chore: Move some examples to test/produces-output (#989) 2020-11-23 06:30:43 +01:00
derive.carp feat: Derive (#1120) 2021-01-15 10:48:34 +01:00
external_struct.carp chore: Move some examples to test/produces-output (#989) 2020-11-23 06:30:43 +01:00
fonts.carp chore: Move some examples to test/produces-output (#989) 2020-11-23 06:30:43 +01:00
functor.carp Update test to account for constrained interfaces 2020-06-01 23:39:19 -04:00
game_of_life.carp chore: Move some examples to test/produces-output (#989) 2020-11-23 06:30:43 +01:00
generic_structs.carp Fix all nth usage 2019-10-31 06:23:23 -03:00
glfw.carp chore: Move some examples to test/produces-output (#989) 2020-11-23 06:30:43 +01:00
guessing_game.carp chore: Move some examples to test/produces-output (#989) 2020-11-23 06:30:43 +01:00
langtons_ant.carp chore: Move some examples to test/produces-output (#989) 2020-11-23 06:30:43 +01:00
maps.carp Renamed example/map.carp because it got loaded by core.carp when 2019-03-21 14:31:19 +01:00
minimal_sdl.carp Added dynamic function 'Project.no-echo' to disable echoing in examples. 2018-06-05 10:05:33 +02:00
mutual_recursion.carp Updates mutual recursion example (#983) 2020-11-20 15:12:49 +01:00
nested_lambdas.carp Fixed lambda capture in presence of let bindings 2020-06-15 21:44:11 +02:00
no_core.carp refactor: Move code out of Macros.carp into other files (#1014) 2020-11-28 12:53:18 +01:00
reptile.carp Return reference from unsafe-first/unsafe-last (#1027) 2020-11-27 10:19:06 +01:00
sorting.carp Add some more calls to implement to make tests pass 2020-05-10 13:32:22 -04:00
sounds.carp Merge 2020-05-11 16:10:35 +02:00
static_array.carp Remove bad example. 2020-04-29 11:29:39 +02:00
sumtypes.carp More bugfixes concerning wildcards. 2019-02-12 23:01:33 +01:00
unicode.carp Allow unicode identifiers 2020-05-11 16:10:41 +02:00
updating.carp Deftype generates 'update' functions that expect refs to functions too. 2018-11-14 14:21:12 +01:00
vector.carp The '(load)' command will work relative to the file containing it, if 2019-03-22 20:33:06 +01:00