proglangbase / bbhw

Bye Bye Hello World
Mozilla Public License 2.0
4 stars 4 forks source link

Gforth version #13

Closed lonetech closed 1 month ago

lonetech commented 2 months ago

Forth is a stack based, minimal syntax, extremely imperative programming language which encourages tacit code. It's one of the early languages, and the source of phrases such as "refactor". While there exist standards, many Forths do things subtly differently, and programs frequently use shortcut words. Forth's design makes it very easy to bootstrap, and it is therefore popular for small (e.g. sectorforth) or exotic (e.g. pbforth) targets.

This is a reasonably complete implementation of bye bye hello world in Gforth. The main quirk is some assumption the user won't enter very large numbers, and the countdown loop uses -do -loop which is not standard.