The monadic verb  ;:  only works on a single (J) sentence at a time.  You 
cannot use it to parse multiple sentences properly.  If you're parsing multiple 
lines of J code (say, a script), then I suggest:

           require 'strings'
           ;: each LF cut DATA_GOES_HERE

Or, if you're parsing explicit definitions, I suggest you look at  5!:7  .  
That splits explicit definitions into J sentences. 

Or, If you're parsing arbitrary English text (i.e. text not written or 
controlled by you), I suggest avoiding monadic  ;:  .  Because  

   ;:  'You can''t depend upon it'

Use  <;.  or a create a custom parser with dyadic  ;:  instead.

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

Reply via email to