Dan Bron wrote:
> 
> Hey all,
> 
> Why are the adverbs in the following stacked by name, rather than value?
> 
>          a =. /
> 
>          a /               NB.  If stacked by value, would expect / /
>       a/
> 
>          a a               NB.  If stacked by value, would expect / /
>       a a
>          
> 
> I see this quote in Section II.E:
> 
>       Parsing proceeds by moving successive elements 
>       (or their values except in the case of proverbs 
>       and names immediately to the left of a copula) 
> 
> The specific rule describing adverb trains is spelled out under Section
> II.F.  I'm not sure this section is relevant, as I suppose
> the descriptions of trains are given in the context of the preceding II.E. 
> Meaning general rules in II.E have been enforced, and
> adverbial names should be replaced by value, and the resultant anonymous
> adverbs passed to II.F for specific treatment.  None the
> less, here it is:
> 
> 
>       Finally, a train of two adverbs produces an adverb, and 
>       (by implication) a train of any number of adverbs also 
>       produces an adverb. For example, /\ is the adverb 
>       "insert scan", and ~/~ is the "commuted table". 
> 
> which is silent on the issue, anyway.
> 
> Can someone explain what I'm missing?
> 
> -Dan
> 
> ----------------------------------------------------------------------
> For information about J forums see http://www.jsoftware.com/forums.htm
> 
> 
I think this is consistent with the DOJ because:
   a=./
   + a a
+//
   b=.a a
   + b
+//
   a=.*
   + b
|domain error: a
|       +b
   b 1
|syntax error
|       b 1
   b
a a
   a=.\
   + b
+\\



-- 
View this message in context: 
http://www.nabble.com/Stacking-by-name-tp24918138s24193p24918992.html
Sent from the J Programming mailing list archive at Nabble.com.

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

Reply via email to