A streamlined, stack-based interpreter developed in Rust. The interpreter brings to life a high-level, reverse-Polish language, reminiscent of Forth, and draws inspiration from the command interface of the pioneering HP scientific calculators from the 1970s. The postfix language is composed of element lists, with each element representing either a value to be pushed onto the stack or an operation to be performed. For instance, 'comp 3 4 +' adds the values 3 and 4, while 'comp 3 dup x' calculates the square of 3.
For more information, see the comp command usage documentation.
The basic usage of the comp interpreter can be accessed in the output of the comp help
command. A detailed usage guide with descriptions of each available command can be found in USAGE.md
.
comp help
Release binaries are provided on the Releases page and can be installed manually.
The comp interpreter can be installed by installing the Rustup
toolchain installer and using the cargo
build management system to build comp from on your system from the source code. Detailed installation instructions can be found in INSTALL.md
.
The comp interpreter is available under the MIT License. The MIT License is a permissive free software license with very limited restrictions on reuse. The full license text can be found in the LICENSE.md
file.