Calculator/programming language with multiprecision, RPN
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
docs
examples
extras/vscode-extension
ezc
mini.src
.gitignore
.travis.yml
CMakeLists.txt
FindGMP.cmake
FindMPFR.cmake
FindReadline.cmake
LICENSE
README.md
buildezc.sh
buildgmp.sh
buildmpfr.sh
ezcconfig.h.in
staticlink.sh

README.md

EZC

What is EZC?

EZC is an RPN language that supports multiprecision, a live interpereter, and more all without the end user needing to know memory management. EZC also includes lots of mathematical functions, even at high precisions (using MPFR).

Online documentation: http://chemicaldevelopment.us/ezc/

INSTALLING

Release

These are found from the releases page, and can be installed like this (uses cmake as a buildsystem):

mkdir build && cd build
cmake ..
make -j4
make install

(you may need to run sudo make install if you need priviledges to install in /usr/local).

Development Versions

Just clone this repo:

git clone https://github.com/ChemicalDevelopment/ezc.git, then follow the Release installation.

Usage

Run the program to view help:

ec -h

If you are building from a build/ directory, replace ec with ./ezc/ec

And it will output the help message.

Examples

Here are some quick examples:

 $ ec -e'cade is a boss print()'

boss

The print function prints the last item on the stack, which was boss

Use a function like FUNCTION()

 $ ec -e'cade is a boss concat() dump()'

aboss

It concatenated the last two items, then printed the result

Some functions are implemented as repeaters, using FUNCTION&() (which will repeatedly call the function).

 $ ec -e'cade is a boss concat&() dump()'

cadeisaboss

This concatenated all of the stack together

TODOs

  • Add checks

AUTHORS