version 1.101, 2002/12/04 16:56:31
|
version 1.102, 2002/12/19 20:14:57
|
Line 1696 While working at the Forth command line
|
Line 1696 While working at the Forth command line
|
examples and short one-off code, you probably want to store your source |
examples and short one-off code, you probably want to store your source |
code in files for convenient editing and persistence. You can use your |
code in files for convenient editing and persistence. You can use your |
favourite editor (Gforth includes Emacs support, @pxref{Emacs and |
favourite editor (Gforth includes Emacs support, @pxref{Emacs and |
Gforth}) to create @var{file} and use |
Gforth}) to create @var{file.fs} and use |
|
|
@example |
@example |
s" @var{file}" included |
s" @var{file.fs}" included |
@end example |
@end example |
|
|
to load it into your Forth system. The file name extension I use for |
to load it into your Forth system. The file name extension I use for |
Line 1708 Forth files is @samp{.fs}.
|
Line 1708 Forth files is @samp{.fs}.
|
You can easily start Gforth with some files loaded like this: |
You can easily start Gforth with some files loaded like this: |
|
|
@example |
@example |
gforth @var{file1} @var{file2} |
gforth @var{file1.fs} @var{file2.fs} |
@end example |
@end example |
|
|
If an error occurs during loading these files, Gforth terminates, |
If an error occurs during loading these files, Gforth terminates, |
Line 1721 I often put all the tests in a file, the
|
Line 1721 I often put all the tests in a file, the
|
tests with |
tests with |
|
|
@example |
@example |
gforth @var{code} @var{tests} -e bye |
gforth @var{code.fs} @var{tests.fs} -e bye |
@end example |
@end example |
|
|
(often by performing this command with @kbd{C-x C-e} in Emacs). The |
(often by performing this command with @kbd{C-x C-e} in Emacs). The |