A basic Forth parser written in Go.
Go
Latest commit 6b8ecaf Jun 11, 2011 @ox it's a working repl now.
Permalink
Failed to load latest commit information.
.gitignore
README big improvements, added . .S 0SP + - * / DUP ?DUP 2DUP PICK TUCK NIP Jan 16, 2010
goforth initial release, basic math only Jan 16, 2010
main.go it's a working repl now. Jun 10, 2011
sample.fth now using .fth extension Jan 16, 2010

README

GoForth
=======

I got really interested in Forth and thus I began making a parser, of sorts, in
Go. Though I don't intend for it to catch on, it's still a nifty piece of code 
and can easily be disected if you want some Forth in your code. 

Currently Supports:
	. .S 0SP + - * / DUP ?DUP 2DUP PICK TUCK NIP 
	DROP 2DROP OVER 2OVER SWAP 2SWAP 2SWAP ROT -ROT  
	( comments ) 
	
I added a "t" command that checks if the popped value is greater then the DataStack
length so that if you need to make sure that you have at least 2 numbers on the 
stack, you can call " 2 t " and it will tell you there's not enough, and then 
crash and burn, as per Go.

Enjoy!
--
Artem Titoulenko