[Maxima] parser strangeness wrt > (greater than sign)
Robert Dodier <firstname.lastname@example.org>
Sat, 16 Jul 2005 23:21:56 -0600
(def-nud (|$>| 80.) (op) ; > is a single-char object
'($any . |$>|))
There is no similar declaration for $<.
NUD = null left denotation, meaning an operator which doesn't
have stuff to the left, e.g., unary + or -. So the following is all OK.
> + >; => 2 >
> : 42;
is (> > 17); => true
I'm guessing that at some point > was being used as a prompt
or some other special symbol. However I can't find any use of $>
to mean something other than greater-than at present.
I'm not seeing the usefulness of allowing > to act like anything
other than greater than. Are there any objections to cutting the
above two lines from src/nparse.lisp ?
You'll let me know if I've overlooked something here.