Quantcast
Channel: Articles on JeeLabs
Viewing all articles
Browse latest Browse all 296

Forth in 7 easy steps

$
0
0
Forth is a simple language, with simple rules and a simple execution model. It’s also self-hosted and interactive - you can type this at the prompt: 1 2 + .<cr> What you’ll get as response is this (details may differ, everything below is for Mecrisp Forth): 1 2 + . 3 ok.<lf> ^^^^^^^^^^^ added by Forth All code is parsed into a sequence of “words”, which is anything between whitespace. The above code consist of 4 words: 1, 2, +, and .

Viewing all articles
Browse latest Browse all 296

Trending Articles