Questions:

0.  Even if we can detect an ill-formed string, what do you mean, 
'repair' it?

1.  In what context is the string to be valid?  In particular, are 
control words allowed?

2.  Is the string   '2!:55 $0' a valid string?  What about 'each_z_=:"$0'?

Henry Rich

On 2/11/2012 1:04 PM, R.E. Boss wrote:
> If I want to process an arbitrary string, I may encounter a string which
> might give a "syntax error" or an "open quote" message.
>
> How can I detect such a situation and how can I repair the given string?
>
>
>
>     a. i. '(`'3
>
> |syntax error
>
> |   a.    i.'(`'3
>
>
>
>     a. i. '(`'3'
>
> |open quote
>
> |      a.i.'(`'3'
>
> |               ^
>
>
>
>
>
> R.E. Boss
>
> ----------------------------------------------------------------------
> For information about J forums see http://www.jsoftware.com/forums.htm
>
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to