Higher Order Calculator implemented in go language
go get -u github.com/surabhig412/hoc
go get -u golang.org/x/tools/cmd/goyacc
$ make clean
$ make
$ ./hoc
$ 2 + 3
$ 2 * 3
$ 15 / 3
$ 20 % 3
$ -2 - 3
$ 2 ^ 3
$ sin(90)
$ cos(90)
$ atan(45)
$ log(10)
$ logten(10)
$ exp(10)
$ sqrt(4)
$ abs(-90)
>, >=, <, <=, ==, !=, &&, ||, !
Example: (5 < 7) && (2 < 9)
Program returns 0(false) or 1(true)
while (3<5) 4+5
if (3<5) 4+5 else 6+7
print 4*7