Raul Miller <[email protected]> writes:

> On Fri, Aug 20, 2010 at 11:15 AM, Johann Hibschman
> <[email protected]> wrote:
>> I should be able to work this out myself, but why does that parse in the
>> right way?  Since both " and @: are conjunctions, I would have thought
>> the precedence rules would give +/@:(*"1), rather than (+/@:*)"1 .
>
> if c and C are conjunctions and x y and z are nouns or verbs, then
>    x c y C z
> is
>    (x c y) C z
>
> You can see this in the conjunction rule at
> http://www.jsoftware.com/help/dictionary/dicte.htm
>
> c y C z does not fit that rule.  In fact, it does not
> match any rule: so J will shift another value onto
> its stack when it encounters that pattern.

Thanks, that explains it.  I was forgetting that adverbs and
conjunctions associate left.

-Johann

----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to