diff --git a/Readme.md b/Readme.md index 93d8af0..d465748 100644 --- a/Readme.md +++ b/Readme.md @@ -4,28 +4,24 @@ - error: the expression `("/usr/local/var/mlisp")` with message "cannot cast" - should add to what is casting - better error reporting..for example ls_dir on non existing dir should prind `pwd` dir + + ### TODO +- add total tuntime into -p - add debug support, at least call stack - documentation - add url of source/inspiration to clib/*.cpp - add stdtest - to test every functionality -- add -l option (no linenoise) -- add -sb option to remove sheebang line - add instrumentation (time, nr of evals, num of atoms, debug info, debug environment etc) - - add -p (profile/performance option) -- multiline editting (kilo editor) +- multiline editing (kilo editor) - execute system command should capture stderr -- add built in for and, or - add some mem stats to benchmark - support for (), nil, t, in lsp code replace 0 by nil in logicals - file functions - name it here - string functions - compare - needed for sorting - - uppper/lower case - - trim - - replace -- regexp functions + - regexp functions - date support - decode-universal-time - env functions diff --git a/debug.lsp b/debug.lsp index 3e2f9f6..1115117 100644 --- a/debug.lsp +++ b/debug.lsp @@ -44,5 +44,6 @@ ;; (define fdx_list (parse-csv (read-file "tests/csv_data.csv"))) ;; (print fdx_list) +(print (and (print "xx") (= 1 0) (print "yy"))) (sleep 1.5) \ No newline at end of file diff --git a/stdlib/stdlib.lsp b/stdlib/stdlib.lsp index 617304e..99fcac0 100644 --- a/stdlib/stdlib.lsp +++ b/stdlib/stdlib.lsp @@ -42,19 +42,10 @@ (second (system-cmd (+ "echo ${" var "} | tr -d \"\n\"")))) -; return second element of list (defun second (l) (index l 1)) - -; return third element of list (defun third (l) (index l 2)) - -; return fourth element of list (defun fourth (l) (index l 3)) - -; return fifth element of list (defun fifth (l) (index l 4)) - -; return nth element of list, indexing from 0 (defun nth (i l) (index l i)) ; return 1 when list contains item otherwise 0