A simple calculator made with lex and yacc. Trying to make it feature compatable with jisoncalc. Supports floating point math.
$ make $ echo '5 + 5' | ./calc 10 $ ./calc >> foo = 2 * 3 => 6 >> bar = foo ^ 2 => 36 >> baz = foo + bar => 42 >> 3 + 4.3 => 7.3
calc is licensed under the terms of the GPLv2.
khash.h which is licensed under the terms of the MIT license. More info can be found here: http://attractivechaos.awardspace.com/khash.h.html