Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/blitz/clac

A reverse polish calculator - a modern replacement for dc
https://github.com/blitz/clac

Last synced: 1 day ago
JSON representation

A reverse polish calculator - a modern replacement for dc

Awesome Lists containing this project

README

        

# CLAC - A Reverse Polish Calculator

[![stability-experimental](https://img.shields.io/badge/stability-experimental-orange.svg)](https://github.com/emersion/stability-badges#experimental)
![GitHub](https://img.shields.io/github/license/blitz/clac.svg)
![GitHub commit activity](https://img.shields.io/github/commit-activity/m/blitz/clac)

Clac is a reverse-polish calculator _like_
[dc](https://en.wikipedia.org/wiki/Dc_(computer_program)), but vastly
simpler and with display of the current argument stack.

## Building and Running (Nix)

```sh
% nix run
```

## Installing (Cargo)

```sh
% cargo build
% cargo install
```

## Usage Example

```sh
% clac
| 1 1 +
2 | 10 <<
2048 | hex
0x800 | 0x10 |
0x810 |
```