test.4th 331 B

123456789101112131415161718192021222324
  1. hi
  2. : .CR . CR ;
  3. : 1+ 1 + ;
  4. : DUP2 OVER OVER ;
  5. : 0= 0 = ;
  6. VARIABLE TOTO 0 TOTO !
  7. : T TOTO @ DUP .CR 1+ TOTO ! ; T T T T
  8. : dupstrlen -1 BEGIN 1+ DUP2 + C@ 0= UNTIL ;
  9. : zTYPE dupstrlen TYPE ;
  10. : dumpargc argc @ .CR ;
  11. : dumpargv argv @ argc @ 1 -
  12. FOR
  13. DUP @ zTYPE
  14. CR CELL+
  15. NEXT ;
  16. : dumpargs dumpargc dumpargv ;
  17. dumpargs
  18. BYE