DSL Ideas and Suggestions :: DSL Calc
xcalc is useless. I was thinking of building a terminal based calculator for dsl that would process C style equations on a line by line basis and have support for user variables. Does something like this already exist?
not sure whether to do it in C (fun) or C++ (easy).
http://www.gnu.org/software/bc/bc.html
hmmm, yeah I knew some one somewhere would have done it already
cheers
EDIT: meh no binary or hex support....I'll make my one
_pathos, I'd like to see what you come up with.
http://www.kyz.uklinux.net/evaluate/
I found a mind reader...
I'll build a front end and add binary/octal support. Maybe even arbitary length numbers with GMP Bignum.
I had been hoping to use a hack I had worked out using a separater operator stack for precedence...it would work but the code would have been just too cryptic and wouldn't handle syntax errors well. meh
Next Page...
original here.