I have always used .4
I must have picked this up over 30 years ago. I do not remember where.
I like it. It is short and different.
For Forth we've seen: .f .F .frt .FRT .fth .4th .fs
Are there more?
I'd like to see an official extension.
The gforth authors have the most influence in GNU linux. Unfortunately
they seem to use the .f suffix exclusively.
gforth also uses .fs for non forth files,
scripts
On 5/06/2024 2:11 am, Anton Ertl wrote:
albert@spenarnc.xs4all.nl writes:
For Forth we've seen: .f .F .frt .FRT .fth .4th .fs
Are there more?
I'd like to see an official extension.
At the 2015 Forth200x meeting we decided on ".4th", and that has been
added to the extensions that VFX knows about
The question surely is whether VFX uses it. AFAICS it continues
to use .fth for all its source files.
albert@spenarnc.xs4all.nl writes:
For Forth we've seen: .f .F .frt .FRT .fth .4th .fs
Are there more?
I'd like to see an official extension.
At the 2015 Forth200x meeting we decided on ".4th", and that has been
added to the extensions that VFX knows about ><2016Mar29.122333@mips.complang.tuwien.ac.at>. And indeed:
Including foo.4th
hi
bye
gforth also uses .fs for non forth files,
Examples?
scripts
Sure, why not.
- anton
On 5/06/2024 8:17 pm, Anton Ertl wrote:
dxf <dxforth@gmail.com> writes:
On 5/06/2024 2:11 am, Anton Ertl wrote:
albert@spenarnc.xs4all.nl writes:
For Forth we've seen: .f .F .frt .FRT .fth .4th .fs
Are there more?
I'd like to see an official extension.
At the 2015 Forth200x meeting we decided on ".4th", and that has been
added to the extensions that VFX knows about
The question surely is whether VFX uses it. AFAICS it continues
to use .fth for all its source files.
[/usr/local/src/VfxForth64Lin-5.43:149811] find . -name \*.4th|wc -l
4
[/usr/local/src/VfxForth64Lin-5.43:149812] find . -name \*.fth|wc -l
275
But no, that was not the question. The question was about an
"official" extension, and as far as the Forth200x committee is
concerned, .4th is the official extension. Of course that does not
mean that other extensions are forbidden. And actually the standard
document does not mention extensions at all.
Well that makes it ok then. The Forth200x committee has nominated
an "official extension" that's little more than a flag users can
wave about when they feel like it.
Delivering syntax coloring to editors could be the next step.
Forth actually has no syntax...
Hi,
I sometimes use notepad++ and there is highlighting for gforth .fs
scripts.
It works like this:
for example:
: do-it ( doing test ) 10 0 do cr i . 2 spaces ." It is done!" loop ; \
and that works
is colored as follows:
: do-it ---red
( doing test ) ---green
10 0 ---light blue
do cr i . ---black
2 ---light blue
spaces ---black
" It is done!" ---orange
loop ---black
; ---red
\ that works ---green
: go { a b -- } a b + . ;
{ a b -- } ---blue
and : A B C D E F a b c d e f --- in light blue (but when used with
G...Z g...z it is in black)
G ...Z g ...z --- in black
I don't know how it is configured to do this.
ISTM .4th is a
solution looking for a problem. Given nobody else appears to be using it, >none has been found?
It could be much more. If lina is the official Forth compiler installed
and you have hello.4th
you could say
make hello
That would be similar as having hello.c and saying
make hello
Delivering syntax coloring to editors could be the next step.
albert@spenarnc.xs4all.nl writes:
It could be much more. If lina is the official Forth compiler installed
and you have hello.4th
you could say
make hello
That would be similar as having hello.c and saying
make hello
What do you mean with "official Forth compiler installed"? In order
for something like this to work, Forth systems would also need to
agree on a common OS-command-line interface.
When you have the development version of Gforth installed, you get:
emacs: .fs .fth .4th .fb (where .fb is for block files)
- anton--
In article <2024Jun6.081646@mips.complang.tuwien.ac.at>,
Anton Ertl <anton@mips.complang.tuwien.ac.at> wrote:
When you have the development version of Gforth installed, you get:
emacs: .fs .fth .4th .fb (where .fb is for block files)
Nice. I see that you refrain from using the .f extension lest
emacs think you are using FORTRAN.
Reminds me that it is common to use .blk for block files.
The official extension known to a linux system (make) are:
Sysop: | Keyop |
---|---|
Location: | Huddersfield, West Yorkshire, UK |
Users: | 475 |
Nodes: | 16 (2 / 14) |
Uptime: | 19:15:17 |
Calls: | 9,487 |
Calls today: | 6 |
Files: | 13,617 |
Messages: | 6,121,093 |