File: README.scripts

package info (click to toggle)
gforth 0.3.0-4
  • links: PTS
  • area: main
  • in suites: slink
  • size: 2,972 kB
  • ctags: 743
  • sloc: ansic: 3,369; sh: 1,410; lisp: 725; makefile: 426; sed: 111
file content (14 lines) | stat: -rw-r--r-- 397 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#! /usr/bin/gforth

\ This is a trivial example of a shell script written using gforth.

\ Forth uses leading backslashes to denote comments.  There is a "word" defined
\ for the character combination "#!" so that the first line of this script will
\ do the right thing.  The space between the exclaimation mark and the path to
\ the interpreter is essential.

'H emit
'I emit
13 emit
10 emit
bye