Skip to content
STC Forth for Linux 64bit
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.gitignore
Makefile
README.md
builtin.fs
examples.fs
rfr64.asm
watch.sh

README.md

Linux 64bit用 Forth

仕様

  • サブルーチン・スレッディング
  • TOSをレジスタに置く

TODO

  • プリミティブワードのインライン展開

起動

$ ./RFR64

ファイル読み込み

$ cat yourfile.fs - | ./RFR64

サンプル

$ ./RFR64
load examples.fs

( Mark&Sweep Garbage Collection Test )
gc-test


: counter:  create 0 ,  does> dup @ .  1 swap +! ;

: [get]  [compile] lit  read-token find >body , [compile] @ ; immediate
: countdown  begin  dup 0>=  while  dup .  1 -  repeat  drop ;

counter: i
: GO!  i i i i i i i i i i  [get] i countdown  bye ;

GO!
You can’t perform that action at this time.