Crates.io | ajkcalc |
lib.rs | ajkcalc |
version | 0.2.0 |
source | src |
created_at | 2023-09-19 19:16:51.748046 |
updated_at | 2023-09-21 23:20:53.307045 |
description | scriptable hybrid calculator |
homepage | |
repository | |
max_upload_size | |
id | 977127 |
size | 46,012 |
multi-purpose scriptable extendable calculator
uses rhai engine for evaluation and scripting
polynomials using layered closures (function-closures crate)
plotting (kinda works)
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 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.
requires a recent nightly copmiler (for the iter_intersperse feature)
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)