Switch branches/tags
Nothing to show
Find file History
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
..
Failed to load latest commit information.
README.md Changed the name of the 02 folder to reflect the name of the style Oct 25, 2013
forth.py
tf-02.py Typo in comment Mar 8, 2014

README.md

Style #2

Constraints:

  • Existence of an all-important data stack. All operations (conditionals, arithmetic, etc.) are done over data on the stack

  • Existence of a heap for storing data that's needed for later operations. The heap data can be associated with names (i.e. variables). As said above, all operations are done over data on the stack, so any heap data that needs to be operated upon needs to be moved first to the stack and eventually back to the heap

  • Abstraction in the form of user-defined "procedures" (i.e. names bound to a set of instructions), which may be called something else entirely

Possible names:

  • Go-Forth (as in the Forth programming language)
  • Stack machine