Skip to content

desktopgame/zig-calc

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

37 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

zig-calc

zig-calc is simple calculator, written in zig.
only basic arithmetic operations, constant, and function supported.

example

zig build run -- 3 + 4
> 7
zig build run -- 12 + (3 * 4)
> 24
zig build run -- -3 * 2
> -6
zig build run -- 5 + (-3)
> 2
zig build run -- max(1,2)
> 2
zig build run -- min(1,2)
> 1
zig build run -- avg(4,4,4,4)
> 4

When used from Powershell, enclose the parentheses in double quotation marks.

zig build run -- "5 + (-3)"
> 2

About

simple calcuulator written in zig

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages