I am not sure what you mean here.

In the current 902 beta-k, I get an error and not a tokenization with
an unbalanced quote:

  ;:'asf''asdf'
|open quote

If you are talking about the {{ }} nesting -- the implementation
doesn't actually use the ;: monad for that. Instead, it uses a
technique where the entire nested {{...}} structure is essentially
handled as a single token.

You can't do that with the ;: dyad, because nesting requires
stack-like behavior (though, since there's only one kind of nesting, a
numeric counter could serve as the "stack structure").

(I hope I'm making sense?)

Thanks,

-- 
Raul

On Wed, Nov 4, 2020 at 12:14 PM John Baker <[email protected]> wrote:
>
> I was going to look at this very state machine the other day.  The original
> machine has one property that I have found very useful.
>
>  It can handle unbalanced quotes on the code lines.  Monadic pre  9.02 ;:
> throws errors and does not return the tokenization.
>
> The JOD system tokenizers J code in some places and it's nice to handle the
> case of whacked syntax.
>
> On Wed, Nov 4, 2020 at 10:04 AM Henry Rich <[email protected]> wrote:
>
> > I thought that might be the case.  I would rather add to (x ;: y), if
> > you know just what's needed.
> >
> > Henry Rich
> >
> > On 11/4/2020 12:01 PM, Raul Miller wrote:
> > > After studying this: the rules you implemented for {{ and }} require
> > > either an additional sequential machine operation (somewhat analogous
> > > to ev, but non-repeating), or post-processing the result (to break up
> > > offending {{. and {{: sequences).
> > >
> > > FYI,
> > >
> >
> >
> > --
> > This email has been checked for viruses by AVG.
> > https://www.avg.com
> >
> > ----------------------------------------------------------------------
> > For information about J forums see http://www.jsoftware.com/forums.htm
> >
>
>
> --
> John D. Baker
> [email protected]
> ----------------------------------------------------------------------
> 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