- LZAR
Lzar is a very simple, very fast program that gives importance to the priority of operations, and in which you can do more than just addition, subtraction, multiplication and division.
lzar "1+1"
lzar "1+2*3"
lzar "((1+2)+3)+4"
lzar "[1+2*3+(4-5)*6/7]/2"
lzar "(30*15)-(PI*5^2)"
lzar "3!*2"
$ lzar
> 1+1
2
> (35*15)-(PI*5^2)
446.46018366025515
> 3!*2
12
> █
Tip
Press Ctrl + C to exit the program.
Important
You can donwload the latest release from the releases page.
The answer to this question depends on your operating system and processor type.
OS | Processor | Release |
---|---|---|
Windows | x64 | lzar-win-64.exe |
Windows | x86 | lzar-win-32.exe |
Linux | x64 | lzar-linux-64 |
Linux | x86 | lzar-linux-32 |
macOS | x64 | lzar-mac-64 |
"x86" means the 32-bit version of the program and "x64" means the 64-bit version of the program.
I am currently learning go language and I wrote this program to make what I learned in go language permanent. But since I am not very knowledgeable in go language, I first wrote this program on node.js and then translated it into go language, so I wrote it for both languages. I added it so that anyone who wants to use the release written in node.js can also use it.
lzar "1+1"
lzar "1+2*3"
lzar "((1+2)+3)+4"
lzar "[1+2*3+(4-5)*6/7]/2"
lzar "(35*15)-(PI*5^2)"
lzar "3!*2"
$ lzar
> 1+1
2
> 1+2*3
7
> ((1+2)+3)+4
10
> [1+2*3+(4-5)*6/7]/2
3.0714285714285716
> 3!*2
12
> █
$ lzar
> (35*15)-(PI*5^2)
446.46018366025515
> █
for node version: 99
for go version: 121
GPL-V3
Thanks to the egonelbre/gophers repository for gophers.