我正在尝试在Gforth中编写解释器,但它不起作用。我得到的只是一个无限的列表 num num num ...
: ?refill
source nip >in @ =
if
refill drop
then
;
: inter
begin
?refill
bl word find dup
if
state @ =
if
." comp "
,
else
." exec "
execute
then
else
dup rot count >number
if
abort
then
drop drop state @
if
." lit "
['] lit , ,
else
." num "
then
then
again
;
inter
: test 10 20 ;