apfl/src
Laria Carolin Chabowski 874638748b Make iterative runner not panic on OOM
The iterative runner used functions that could throw errors on OOM before
protecting itself using apfl_call_protected. An error at that point would
have resulted in calling the panic handler as a last resort.

This now introduces the apfl_do_protected function which allows running C
code protected without needing to wrap it in a cfunc value, thus removing
the need for the functions that could throw in the iterative runner.
2022-11-20 21:44:00 +01:00
..
functional-tests Implement functions for concatenating strings 2022-11-20 21:44:00 +01:00
alloc.c Introduce allocator abstraction 2022-02-08 22:53:13 +01:00
alloc.h Move allocation macros from internal.h to alloc.h 2022-04-22 21:43:19 +02:00
apfl.h Implement functions for concatenating strings 2022-11-20 21:44:00 +01:00
bytecode.c Implement assigning into dictionaries 2022-11-19 23:26:52 +01:00
bytecode.h Implement assigning into dictionaries 2022-11-19 23:26:52 +01:00
CMakeLists.txt Implement functions for concatenating strings 2022-11-20 21:44:00 +01:00
compile.c Implement assigning into dictionaries 2022-11-19 23:26:52 +01:00
compile.h Implement mark&sweep garbage collection and bytecode compilation 2022-04-11 22:24:22 +02:00
context.c Make iterative runner not panic on OOM 2022-11-20 21:44:00 +01:00
context.h Make iterative runner not panic on OOM 2022-11-20 21:44:00 +01:00
error.c Implement assigning into dictionaries 2022-11-19 23:26:52 +01:00
eval.c Make iterative runner not panic on OOM 2022-11-20 21:44:00 +01:00
expr.c Ditch that weird internal.h header 2022-04-22 23:17:28 +02:00
format.c Implement global "gc" function 2022-11-19 22:21:32 +01:00
format.h Implement first global function "print" 2022-07-12 22:13:07 +02:00
functional-test-runner.c Make apfl_string_builder_init easier to use 2022-10-30 22:51:51 +01:00
gc.c Implement assigning into dictionaries 2022-11-19 23:26:52 +01:00
gc.h Implement global "gc" function 2022-11-19 22:21:32 +01:00
globals.c Implement functions for concatenating strings 2022-11-20 21:44:00 +01:00
globals.h Implement first global function "print" 2022-07-12 22:13:07 +02:00
hashmap.c hashmap: Improve cursor / peek API 2022-04-11 23:31:20 +02:00
hashmap.h hashmap: Improve cursor / peek API 2022-04-11 23:31:20 +02:00
hashmap_test.c hashmap: Improve cursor / peek API 2022-04-11 23:31:20 +02:00
main.c main+playground: Don't print nil values in repl 2022-10-30 22:51:51 +01:00
messages.c Implement comparison operators 2022-11-20 13:47:38 +01:00
parser.c Move variable out of switch 2022-06-05 22:30:18 +02:00
parser_test.c Use formatter for expr printing 2022-04-22 22:52:53 +02:00
position.c Initial commit 2021-12-15 21:47:17 +01:00
resizable.c Implement mark&sweep garbage collection and bytecode compilation 2022-04-11 22:24:22 +02:00
resizable.h gc+context: Make stack no longer a gc object 2022-07-01 22:40:43 +02:00
resizable_test.c Introduce allocator abstraction 2022-02-08 22:53:13 +01:00
scope.c Implement assigning into dictionaries 2022-11-19 23:26:52 +01:00
scope.h Implement functions and function calls 2022-07-11 21:41:05 +02:00
source_readers.c Redo source reader interface 2022-04-15 22:35:36 +02:00
strings.c Implement functions for concatenating strings 2022-11-20 21:44:00 +01:00
strings.h Ditch that weird internal.h header 2022-04-22 23:17:28 +02:00
strings_test.c Implement a simple test runner for functional tests 2022-10-30 22:51:51 +01:00
test.h Introduce allocator abstraction 2022-02-08 22:53:13 +01:00
token.c Implement mark&sweep garbage collection and bytecode compilation 2022-04-11 22:24:22 +02:00
tokenizer.c Make apfl_string_builder_init easier to use 2022-10-30 22:51:51 +01:00
tokenizer_test.c Redo source reader interface 2022-04-15 22:35:36 +02:00
value.c Implement functions for concatenating strings 2022-11-20 21:44:00 +01:00
value.h Implement functions for concatenating strings 2022-11-20 21:44:00 +01:00