p j, I think these discussions belong in the general
forum, not the programming forum.  Are you subscribed
to the general forum?

Could we move further discussion there?

p j wrote:
> The dictionary does not describe what a verb phrase
> is.

At the bottom of appendix E. it points the user at the 
trace facility which does an adequate job of presenting 
this issue, and then it goes on to give the formal rules,
leaving out only the possible result types for each
of the rules.

I'll agree with you if you're suggesting that the right
side of that table should be changed to

0 Monad   -> NOUN
1 Monad   -> NOUN
2 Dyad    -> NOUN
3 Adverb  -> CAVN
4 Conj    -> CAVN
5 Trident -> VERB
6 Bident  -> VERB+ADV
7 Is      -> CAVN
8 Paren   -> CAVN

I suppose an additional paragraph could be
warranted:

A "phrase" is a potential argument to an adverb,
and may also be an argument to a conjunction.  If a 
phrase produces a noun, it's a noun phrase.  If a 
phrase produces a verb, it's a verb phrase.

> Are the following statements true?:
> Consecutive conjunctions in a phrase is a syntax
> error.

Consecutive conjunctions are a syntax error.

This was a change introduced in J5.01.  See:
http://www.jsoftware.com/books/help/release/noncpat.htm
for mention of this.

> A verb phrase evaluates to a single verb.
> so parentheses added around the verb phrase that left
> bonds a conjunction matches the expression without
> parentheses. (because no additional trains can be
> formed)

No.  Arithmetic mean in boxes is a counter example:

   (+/%#)&.>

> If in the following expression, the conjunction c
> bonds with verb phrase u and word y, then 
> u c y -: (u c y) 

True.

> If you were to parse out words leftward from a
> conjunction to find the verb phrase that bonds to it,
> (ignoring parentheses) then:
> 1.keep accumulating if word is adv or conj.
> 2.if word is a verb or noun, then keep accumulating if
> left word is conjunction.

Assuming a verb phrase is present, yes.

> Resulting expression is either the verb phrase that
> bonds with rightmost conjunction or a syntax error.

A syntax error is not a verb phrase.

A sequence of adverbs is not a verb phrase and is
not a syntax error.

-- 
Raul


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

Reply via email to