Commit Graph

14 Commits

Author SHA1 Message Date
Sage Vaillancourt 13d1168401 Wire up basic readline history/completion. 2022-04-08 10:23:12 -04:00
Sage Vaillancourt 056ea9eb13 Implement simple fn docstrings.
Adds usage of this new feature for pebblisp.pbl's (alias).
2022-04-08 00:36:12 -04:00
Sage Vaillancourt 03d3247be3 Clean us tests.sh
Use EDITOR in pebblisp.pbl config alias.
Toying with a promptUpdater function.
2022-04-07 16:43:05 -04:00
Sage Vaillancourt fc4f0bef28 Move main() etc. into main.c 2022-04-05 20:05:58 -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 13fa4ce54f More cd-related sugar.
Add preprocess pl func for repl.
Add basic aliases to repl.
2022-04-02 04:57:53 -04:00
Sage Vaillancourt 1a13fe4814 Add `unused` macro.
Prefer malloc() over calloc() in env.c
2022-04-01 15:07:19 -04:00
Sage Vaillancourt 980a1c42ab Add (cd) and (cwd).
Handle quotes in printColored().
2022-03-31 21:31:24 -04:00
Sage Vaillancourt b770a618e0 Simpler listEvalFunc() implementation.
Simpler simpleFuncEval(), which should eventually be removed, anyway.
 - Something with it or (reduce) is a bit leaky, but actually less so than before.
Small plfunc.c reordering.
2022-03-31 15:44:18 -04:00
Sage Vaillancourt 32e21bf758 Replace (struct's field) with (struct.field)
It was cute, but hard to read in space-delimited lists.
Convert (map) to a normal pl function.
Add trueObject() falseObject() macros.
2022-03-31 10:29:10 -04:00
Sage Vaillancourt b4e0f57029 Use (env "HOME") in pebblisp.pbl for reload.
Show current working directory in prompt.
2022-03-30 16:59:05 -04:00
Sage Vaillancourt b5f6a7d951 Add more colors to pebblisp.pbl
Plus a type comment on (time)
2022-03-30 16:54:17 -04:00
Sage Vaillancourt d76e3f5341 Make (def) a normal function.
Remove (defe) for now.
2022-03-30 16:32:42 -04:00
Sage Vaillancourt 342eba3a0d Add basic (time) function and Time struct.
Also add pebblisp.pbl config file to examples/
2022-03-30 16:04:30 -04:00