Toy scripting language to calculate math
Everything in this language are math expressions
- Intuitive scripting experience for math
- Eazy to learn with simple language syntax
- With VSCode language extension support
- Mathematic skills are all matters!
- get the
math-langbinary
make sure you have installed git, rustc and cargo
using the rustup will be helpful
git clone https://github.com/revival0728/math-lang.git
cd math-lang
cargo build --profile releasemake sure you have installed git, rustc and cargo
using the rustup will be helpful
git clone https://github.com/revival0728/math-lang.git
cd math-lang
cargo install --path .You can download math-lang binary from Release page.
- run the binary
./target/release/math-lang # build from source
math-lang # install from source
$(DOWNLOAD_FOLDER)/math-lang # download from release$ math-lang --help
toy scripting language to calculate math
Usage: math-lang [SOURCE]
Arguments:
[SOURCE] Path of source file
Options:
-h, --help Print help
-V, --version Print version
please checkout the document
- clone the repository
- run
cargo doc --opento checkout the document
- added builtin function
scifmt(x) - improved builtin math function domain check
- improved builtin math function result when passing +INF, -INF, NaN
- log(0), log2(0), ln(0) returned +INF
- improve error message
- fix tail call optimization to recursion
- add function info expression
- add custom type support (parsed as None but bytes has meanings)
- fix cannot access parent scope with same function name (?)
- flatten inst, flat Inst::Mul with new inst Inst::Jump(cond, dest)
- package manager