RE-Evaluating Forth

In which I take another crack at the evaluation cherry

Just a short post to note that I have finally cracked evaluate. After the refactoring exercise, I still had a number of issues mostly caused by the design decision to put the currently interpreting word in the word list at position 0 and to use the return to it to flag that we need to get another word from the input parser.

The trouble I had with this and the hacky nature of the patch tells me that I have made one or two bad decisions here. I’ll probably have to revisit it at some point. For now, I’m just glad that this is done.

The code is tagged blog-1345.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.