Skip to content

andrewf/froth

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Froth

A very slapdash forth-like language interpreter, written in an afternoon to make me feel better.

Anything that's not a recognized word is pushed to the stack as a literal. Blocks, delimited by [], are also pushed to the stack. There is a force word that executes a block (aka thunk) at the top of the stack. There are enough arithmetic primitives to write a fahrenheit-to-celsius converter and FizzBuzz. New words are defined by pushing a block for the body, a name, and running the def word.

About

A slapdash forth-like interpreter

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages