Languages Features Calendar CSV Lists Blog About Sponsor Add Language
GitHub icon



Forth is a pl created in 1970 by Charles H. Moore.

#113on PLDB 52Years Old 3.2kUsers
7Books 16Papers 2kRepos

Try now: Riju · Replit

Forth is an imperative stack-based computer programming language and environment originally designed by Charles "Chuck" Moore. Language features include structured programming, reflection (the ability to modify the program structure during program execution), concatenative programming (functions are composed with juxtaposition) and extensibility (the programmer can create new commands). Although not an acronym, the language's name is sometimes spelled with all capital letters as FORTH, following the customary usage during its earlier years. Read more on Wikipedia...

Example from Riju:
." Hello, world!" CR
Example from hello-world:
.( Hello World)
Example from the Hello World Collection:
' Hello world in Forth ." Hello World" CR
Example from Linguist:
: HELLO ( -- ) ." Hello Forth (fth)!" ; HELLO
Example from Wikipedia:
hex create AKey 61 c, 8A c, 63 c, D2 c, FB c, : test cr 0 DO rc4_byte . LOOP cr ; AKey 5 rc4_init 2C F9 4C EE DC 5 test \ output should be: F1 38 29 C9 DE

Language features

Feature Supported Example Token
\ (\#|%|&|\-|\+)?[0-9]+
\ (\$[0-9A-F]+)
Print() Debugging .
Line Comments
\ A comment
Postfix Notation
\ Multiplies 25 and 10 and then adds 50 to result
25 10 * 50 +
Case Insensitive Identifiers
Semantic Indentation ϴ
Case Sensitivity ϴ

Books about Forth from ISBNdb

title authors year publisher
Forth Programmer's Handbook (3rd Edition) Elizabeth D. Rather and Edward K. Conklin 2007 BookSurge Publishing
Advanced Spectrum Forth Don Thomasson 1984 Melbourne House
Forth Application Techniques (6th Edition): Programming Course Rather, Elizabeth D. and Ouverson, Marlin 2019 Independently published
FORTH programming (The Blacksburg continuing education series) Scanlon, Leo J 1982 H.W. Sams
Discover FORTH: Learning and programming the FORTH language Hogan, Thom 1982 Osborne/McGraw-Hill
Embedded Controller Forth For The 8051 Family Payne, William H. 1990 Academic Press
Pocket Guide to Forth (Addison-Wesley Programming Pocket Guides) Baker, Linda and Derick, Mitch 1987 Addison Wesley Publishing Company

Publications about Forth from Semantic Scholar

title authors year citations influentialCitations
The evolution of Forth E. D. Rather and Donald R. Colburn and C. H. Moore 1993 38 1
Linear logic and permutation stacks—the Forth shall be first H. Baker 1994 15 0
A FPGA based Forth microprocessor P. Leong and P. Tsang and T. K. Lee 1998 12 0
An architecture for the direct execution of the Forth programming language J. Hayes and M. Fraeman and Robert L. Williams and T. Zaremba 1987 12 0
Forth as a robotics language: part two P. Frenger 1997 8 0
Close encounters of the forth kind P. Frenger 2001 7 0
Forth and AI revisited: BRAIN.FORTH P. Frenger 2004 7 0
The JOY of forth P. Frenger 2003 6 0
FORTH -A good programming environment for laboratory automation? I. Introduction to the language D. Zollinger and M. Bos 1985 6 0
A whirlwind tour of FORTH resources P. Frenger 1996 4 0
Embed with Forth P. Frenger 2004 4 0
Evaluating Forth in the Windows environment P. Frenger 2003 2 0
A Formal Model of Forth Control Words in the Pi-Calculus J.F. Power and D. Sinclair 2004 2 0
Forth sorts fruit down under P. Frenger 2005 2 0
Real-time multi-task simulation in Forth S. Baranov 2016 2 0
The FORTH Programming Language for Control Systems: Potential Advantages C. McCurdy 1987 1 0
purebasic.html · forth.html · udp.html

View source

PLDB - Build the next great programming language · v2022 · Day 33 · Docs · Build · Acknowledgements · Traffic Today · Traffic Trends · Mirrors · GitHub ·