Skip to content

usefulmove/comp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

comp

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.


Usage

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


Installation

Binaries

Release binaries are provided on the Releases page and can be installed manually.

From source

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.


License

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.