Skip to content

TheWeirdDev/calcool-rust

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Calcool-Rust

My calcool cli app and library re-written in rust. Calcool uses a pratt parser to parse and evaluate expressions

How to run

Simple. Run this command:

cargo run

Examples

Simple expressions:

2 * 3 + 4 * 8

Function calls:

sin(90deg) ^ cos(45deg) + tan(2rad)

Variables:

result = 12 * abs(-42)
result + 10e+3

Define functions:

def f2c(f) = (f - 32)/1.8
f2c(70)

License

Calcool is free software and it is licensed under GPL-3 or newer. For more info see LICENSE.

About

A CLI calculator and library using pratt parsing and rust

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages