Skip to content

gerey73/RFR64

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

69 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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!

About

STC Forth for Linux 64bit

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages