ajkcalc

Crates.ioajkcalc
lib.rsajkcalc
version0.2.0
sourcesrc
created_at2023-09-19 19:16:51.748046
updated_at2023-09-21 23:20:53.307045
descriptionscriptable hybrid calculator
homepage
repository
max_upload_size
id977127
size46,012
(Krayfighter)

documentation

README

AJK-Calc

multi-purpose scriptable extendable calculator

uses rhai engine for evaluation and scripting

polynomials using layered closures (function-closures crate)

plotting (kinda works)

Usage

ajkcalc is a text-based application with a couple commands "clear", "reload", "help", and "exit" namely. You can also exit by pressing escape. ajkcalc can evaluate basic math expression but its real power comes from its scripting ability.

Scripting

Scripting is implemented using rhai which is also the evaluation engine for the whole calculator. You can define variable and functions as yuo normally would in rye at the main prompt. You can also put *.rhai script files in $HOME/.config/ajkcalc and they would be compiled and added to the main evaluation context on reload.

Building

requires a recent nightly copmiler (for the iter_intersperse feature)

Warning highly volatile

this is still very very early and likely won't have any reliable API for scripting until version 1.0.0 which may still be a while off. Developement is very active as of 9/21/23 and contributions are welcome (if you dare to poke around my crazy code yet)

Commit count: 0

cargo fmt