I guess I can ammend the rules again...
- Conjunctions and adverbs have precedence over spaces
(solves your x +"1 y case)

the rules below seem to account for pairing monads as
well:

2++:4 - 2 is (2+(+:4)) - 2 --> which would already
parses as (2++:4) - 2, so the above is the same as:
2+ +:4 - 2 is (2+ +:4) - 2 , and
2+ +: 4 - 2 is 2+ +: (4 - 2)

The special syntax would not work when pairing user
verbs and user variables (because spaces are necessary
for those), but would still get applied often.

--- "Miller, Raul D" <[EMAIL PROTECTED]> wrote:

> 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
> 


__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to