Bashforth
Encyclopedia
Bashforth is a free Forth interpreter
, written entirely in the Bash scripting language
. It requires GNU
Bash v2.04 or higher. Its virtual machine
makes use of string threading
.
Due to being written in a scripting language
, Bashforth runs slowly, but does not need any installation for those who want to try out the Forth language.
An object-oriented programming
environment is available for Bashforth, by means of the SmallOOPS extension to Bashforth, allowing interactive OOPS
programming right from the Bash prompt.
More alternatives, which do not require installation, exist, notably JSforth a Forth interpreter written in JavaScript
.
Interpreter (computing)
In computer science, an interpreter normally means a computer program that executes, i.e. performs, instructions written in a programming language...
, written entirely in the Bash scripting language
Scripting language
A scripting language, script language, or extension language is a programming language that allows control of one or more applications. "Scripts" are distinct from the core code of the application, as they are usually written in a different language and are often created or at least modified by the...
. It requires GNU
GNU
GNU is a Unix-like computer operating system developed by the GNU project, ultimately aiming to be a "complete Unix-compatible software system"...
Bash v2.04 or higher. Its virtual machine
Virtual machine
A virtual machine is a "completely isolated guest operating system installation within a normal host operating system". Modern virtual machines are implemented with either software emulation or hardware virtualization or both together.-VM Definitions:A virtual machine is a software...
makes use of string threading
Threaded code
In computer science, the term threaded code refers to a compiler implementation technique where the generated code has a form that essentially consists entirely of calls to subroutines...
.
Due to being written in a scripting language
Scripting language
A scripting language, script language, or extension language is a programming language that allows control of one or more applications. "Scripts" are distinct from the core code of the application, as they are usually written in a different language and are often created or at least modified by the...
, Bashforth runs slowly, but does not need any installation for those who want to try out the Forth language.
An object-oriented programming
Object-oriented programming
Object-oriented programming is a programming paradigm using "objects" – data structures consisting of data fields and methods together with their interactions – to design applications and computer programs. Programming techniques may include features such as data abstraction,...
environment is available for Bashforth, by means of the SmallOOPS extension to Bashforth, allowing interactive OOPS
Object-oriented programming
Object-oriented programming is a programming paradigm using "objects" – data structures consisting of data fields and methods together with their interactions – to design applications and computer programs. Programming techniques may include features such as data abstraction,...
programming right from the Bash prompt.
More alternatives, which do not require installation, exist, notably JSforth a Forth interpreter written in JavaScript
JavaScript
JavaScript is a prototype-based scripting language that is dynamic, weakly typed and has first-class functions. It is a multi-paradigm language, supporting object-oriented, imperative, and functional programming styles....
.