Added version info output to Hello Forth World script and

made initial pass at outputing command line arguments.
This commit is contained in:
Ed Braaten 2015-05-08 23:18:50 -07:00
parent f09f508324
commit fdbb99aeeb

View file

@ -3,5 +3,15 @@
\ Sample Hello World! Forth script...
\
.( Hello Forth World! ) cr
: verinfo s" git describe --abbrev=7 --dirty --always --tags" system ;
\ Obligatory Hello World with some version info
.( Hello Forth World! Version: ) verinfo cr
\ Show list of command line arguments
: printargs
argc @ 0 do i arg type cr loop ;
.( Command line args: ) cr
printargs
bye