Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

stakku

A simple RPN calculator now, a potential Forth interpreter later

Installation

Clone the repo:

git clone https://github.com/slothscript/stakku.git
cd stakku

Build:

mkdir build && cd build
cmake ..
cmake --build .

Install (Optional):

cmake --install .

Development

Format the C/C++ sources in place (uses the repo-root .clang-format):

find include src -type f \( -name '*.h' -o -name '*.cpp' \) -print0 | xargs -0 clang-format -i

Quick Start

Run a command: stakku 4 6 + . 10 ok

Run a file: stakku example.stku

125
25
100 ok

Open a REPL: stakku or stakku repl

> 4 6 + .
10 ok
> 10
ok
> 12
ok
> +
ok
> .
22 ok

Current Status

Currently, stakku is a WIP, but aims to become a full Forth interpreter/compiler. As of now, it supports: + - * / . dup drop swap over emit clear cr

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages