Skip to content

hubenchang0515/cmdcal

Repository files navigation

awsl

Tiny command-line calculator - 轻量级命令行计算器

  • Only support double, and maybe overflow.

Build & Install

make
sudo make install

If you build failed, Please install makemake and run makemake to generate a new Makefile.

Demo

Syntax detail is in syntax.ebnf

$ awsl '1+1'
2.000000

$ awsl 'pow(2, 10)'
1024.000000

$ awsl
> pow(sin(233), 2) + pow(cos(233), 2)
= 1.000000
> log(1024) / log(2)
= 10.000000

About

Command-line calculator - 命令行计算器

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published