Release Notes
This version adds a lot of features which makes calc closer to a real programming language.
Changelog:
if-then-else
statements (for exampleif x>5 then {3} else {4}
)while
loops (for examplewhile x>5 do x=x+1
){}
scopes (variables are still global) and;
ignore operator (which executes and ignorelhs
and executes and returnsrhs
).
operator (extracting a value from an array)debug
andprint
functions (finally!)- String manipulation (join,concat,to_array)
- Array manipulation (extract,add to array,concat)
- fix stackoverflow when assigning a variable to itself (for example
x=x+1
).
Thanks Léana for the huge help!
Install mini-calc 4.0.0
Install prebuilt binaries via shell script
curl --proto '=https' --tlsv1.2 -LsSf https://github.com/vanilla-extract/calc/releases/download/4.0.0/mini-calc-installer.sh | sh
Download mini-calc 4.0.0
File | Platform | Checksum |
---|---|---|
mini-calc-aarch64-apple-darwin.tar.xz | Apple Silicon macOS | checksum |
mini-calc-x86_64-apple-darwin.tar.xz | Intel macOS | checksum |
mini-calc-x86_64-pc-windows-msvc.zip | x64 Windows | checksum |
mini-calc-x86_64-unknown-linux-gnu.tar.xz | x64 Linux | checksum |
mini-calc-x86_64-unknown-linux-musl.tar.xz | x64 MUSL Linux | checksum |