Changed . to not print a newline, which is what it (doesnt) do in forth

This commit is contained in:
russ 2010-09-10 06:48:09 -04:00
parent f11b1c5438
commit 834406e9c1

View file

@ -60,7 +60,7 @@ class RForth
b = @stack.pop b = @stack.pop
@stack << b / a @stack << b / a
end end
d.word('.') { @s_out.print( "#{@stack.pop}\n" ) } d.word('.') { @s_out.print( @stack.pop ) }
d.word('.S') { @s_out.print( "#{@stack}\n" ) } d.word('.S') { @s_out.print( "#{@stack}\n" ) }
d.word('.D') { pp @dictionary } d.word('.D') { pp @dictionary }
d.word('cr') { @s_out.puts } d.word('cr') { @s_out.puts }