-----"Richard Fateman" <fateman at cs.berkeley.edu> wrote: -----
>The parser should produce ((matseq) 3 ((matseq) 1/2 4)) which should
first
>be simplified to something like ((matseq) 3 1/2 4)
Thanks, I didn't think about that---we can do this without altering the
parser:
(%i1) infix("..", 50, 50);
(%o1) ..
(%i2) a..(1/2)..c;
(%o2) a .. 1/2 .. c
(%i3) ?print(%);
(($.. SIMP) (($.. SIMP) $A ((RAT SIMP) 1 2)) $C)
The binding power of dot-dot needs to be changed:
(%o3) a .. 1/2 .. c
(%i4) a..1/2..c;
(%o4) a .. 1/(2*c)
Barton