Sage Vaillancourt
11525e9531
More (table) use in Forbble2.
...
Clean objects when adding duplicates to a hash table.
Type-check hash functions.
Add (switch) (first-where) and (match) to lib.pbl.
Support escaping in (standalone) strings.
2022-04-19 15:18:29 -04:00
Sage Vaillancourt
b26771d33c
Fleshing out ObjectTableObject.
...
Also fleshing out forbble2.
Fix _readFile() memory leak.
2022-04-18 22:17:17 -04:00
Sage Vaillancourt
8e30b24e8f
Start work on hash-table objects.
2022-04-18 16:59:35 -04:00
Sage Vaillancourt
7b014ebafa
Fix (reduce) with lambdas.
...
Fix await memory leak.
Allow running specific tests with --run-test x (for valgrinding).
2022-04-11 16:38:49 -04:00
Sage Vaillancourt
85fb91b4ed
Use stripped Objects in hash.c
...
These lack the unused .forward field, reducing table memory by ~25%.
Also bump Object.number up to a long, and add a generic Object.data field.
2022-04-08 11:49:14 -04:00
Sage Vaillancourt
7a0433aa68
Add funcyEval() for equivalent Func/Lambda eval.
...
Still a bit buggy.
Some general renaming for clarification.
2022-04-07 01:20:59 -04:00
Sage Vaillancourt
4baf7e011b
Handle all HASHLESS details in hash.c
2022-04-06 20:12:26 -04:00
Sage Vaillancourt
5ca9fdb042
Tweak (penv) formatting.
...
Remove unused include from hash.c
2022-04-05 16:53:21 -04:00
Sage Vaillancourt
b419826b8e
More robust addToTable().
...
Add several pl string functions: `slen`, `chars`, `matches`, and `substr`.
Add support for comments in native tests.
2022-04-05 15:30:30 -04:00
Sage Vaillancourt
caaa6c53f6
Add simple object hashtable for env.
...
Currently has some issues with accessing parameters in recursive calls.
2022-04-04 14:15:44 -04:00