On Jul 5, 2009, at 10:54 AM, Eduardo Cavazos wrote:
OK, so... I'm trying to keep the core algorithm really simple. When I
added unary '-' it seemed to make it quite a bit more complicated to
deal with this overloading. So for now, I keep it simple by using
'neg' as the unary negate.
Abdulaziz Ghuloum wrote:
So, ..., it appears that I need an infix->prefix converter for a project
that I'm working on, but the infix expression may contain any C operator
(including unary *and* binary - and +). I cannot pre-convert the unary
versions to use different names.
Do you have the code for handling those?
Sorry I don't... the last version I hacked is:
http://proteus.freeshell.org/_shunting-yard-unary-b.scm
It was "good enough" for what I needed at the time.
Ed