p j wrote:
> A much simpler version of my earlier rules is:
> -replace " " to the right of a noun with ") "
> -replace " " to the left of a noun with
> <b>closing</b>" (" (sufficient number to close all
> open ")"
> So:
> 5 + 3-2 - 5 *3 is (5) + (3-2) - ((5) *3)With an additional caveat that an "edge" (an explicit left parenthesis or the left edge of the string) closes all implicit parenthesis, that is implementable. On the other hand, it would break a lot of existing code. For example x +"1 y would become a syntax error. You'd be compelled to use some other form, such as x +"1]y or x (+"1) y I expect there are a number of other cases with analogous problems. I'm not sure this is an improvement. -- Raul ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm
