home *** CD-ROM | disk | FTP | other *** search
- CREATE TREE
- CREATE DDD
- EDIT
- ( EXEC -> )
- : DDD
- i->d
- <#
- begin
- dup c@@
- while
- dup c@@ hold
- 1-
- repeat
- #> drop count type
- ;
- ~UP
- CREATE LEVEL
- EDIT
- variable level
- ~UP
- CREATE TREE.ALL
- EDIT
- : tree.all
- dup 0= if drop exit endif
- cr level @ 2 * spaces
- dup ddd
- 1 level +!
- dup child tree.all
- -1 level +!
- next tree.all
- ;
- ~UP
- EDIT
- : tree
- ' dup ddd
- 1 level !
- child tree.all
- ;
- ~UP
- ABORT
-