Not sure of your context around this, but does this help (perhaps used in
conjunction with "try." and "catch.")?

   a. i. '(`'3
|syntax error
|   a.    i.'(`'3
   13!:11''    NB. Last error code
19
   a. i. '(`'3'
|open quote
|   a. i. '(`'3'
|              ^
   13!:11''
13


On Sat, Feb 11, 2012 at 1:04 PM, R.E. Boss <r.e.b...@planet.nl> 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
>



-- 
Devon McCormick, CFA
^me^ at acm.
org is my
preferred e-mail
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to