Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/tetsuo-cpp/onward

A C++ implementation of the Forth programming language
https://github.com/tetsuo-cpp/onward

Last synced: 3 days ago
JSON representation

A C++ implementation of the Forth programming language

Awesome Lists containing this project

README

        

# onward

A C++ implementation of the Forth programming language

## Build

```sh
# Clone repository
git clone https://github.com/tetsuo-cpp/onward.git
cd onward/

# Configure CMake
cmake -B build/ -S .

# Build
cmake --build build/ -j

# Run interpreter in interactive mode
./build/tools/onward

# Run interpreter on FORTH script
./build/tools/onward [file]
```

## Features

```forth
ONWARD> 1 2
ONWARD> +
ONWARD> .
3
ONWARD> : add-five 5 + ;
ONWARD> 10
ONWARD> add-five
ONWARD> .s
[15]
```