R.E.  Boss wrote:
> 
> Do you agree on this?
> 
> S -> .shop
> A -> apple
> B -> bag
> T -> the
> the shop -> my brother
> a never used -> .terminating rule
> 
> Sample text of:
>    "I bought in S a B of As from T S." 
> 
> Should generate:
>    "I bought in shop a bag of apples from T S."
> 
I think the result should be: 

   "I bought in shop a bag of As from T S."



> And how about this?
> 
> S -> .shop
> A -> apple S
> B -> bag
> T -> the
> the shop -> my brother
> a never used -> .terminating rule
> 
> Sample text of:
>    "I bought B of As from T S." 
> 
> Should generate:
>    "I bought a bag of apple shops from T S."
> 
The result here should be:

   "I bought B of As from T shop." 

In both cases the first rule is applied and
the rewriting terminated.

-- 
View this message in context: 
http://old.nabble.com/Tacit-exercise-tp26812445s24193p26832231.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