Add mkdir, cd, and more, refactor.

This commit is contained in:
Brad Nelson
2022-09-05 21:25:46 -07:00
parent 0dbe262abf
commit 234d85bf71
6 changed files with 95 additions and 33 deletions

View File

@ -53,6 +53,16 @@ forth definitions internals
again
;
DEFINED? read-dir [IF]
: ls ( "path" -- )
bl parse open-dir throw { dh } begin
dh read-dir dup 0= if
2drop dh close-dir throw exit
then type cr
again
;
[THEN]
internals definitions
( Leave some room for growth of starting system. )
0 value saving-base