On Fri, Jul 18, 2008 at 11:34 AM, Tracy Harms <[EMAIL PROTECTED]> wrote:
>  As for my more complicated example, though, I
> find that I actually don't quite follow what is going on.
...
>   3 : 0 (8)
> 3 : 0
>>:y
> )
> +:y
> )
> 9

Let's look at the sentences that are being executed, syntactically,
using the system described at http://www.jsoftware.com/help/dictionary/dicte.htm

The top level sentence's syntactic handling looks like this:
queue                 stack            action
§ 3 : 0 ( 8 )                          move
§ 3 : 0 ( 8           )                move
§ 3 : 0 (             8  )             move
§ 3 : 0               (  8  )          8 Paren
§ 3 : 0               8                move
§ 3 :                 0  8             move
§ 3                   :  0  8          move
§                     3  :  0  8       4 Conj
§                     verb  8          move
                      §  verb  8       0 Monad
                      §  9             done

However, when the verb gets executed, two additional
sentences get executed.  The syntactic handling of the first
sentence within that verb looks like this:
queue                 stack            action
§ 3 : 0                                move
§ 3 :                 0                move
§ 3                   :  0             move
§                     3  :  0          4 conj
§                     verb2            move
                      §  verb2         done

In other words, it defines some new verb which is
the result of that sentence.  This consumes the script
which you provided as the verb body, and then discards it.

The second sentence within the top level verb is also
the last sentence, so it will provide the top level verb's
result:

queue                 stack            action
§ >: y                                 move
§ >:                  y                move
§                     >:  8            move
                      §  >:  8         0 Monad
                      §  9             done

So, in essence, the first script is the main verb's body, and
the second script is what I would call the "nested verb".
Anyways, that second script does not get used because you
never used it.

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

Reply via email to