> The red zero should be omitted. I want to dispute this. Input classes don't need to be disjoint.
I can't recall seeing any document which says they should -- but tell me if I'm wrong, because any such document needs to be fixed. IMO the example is simpler to follow if (quote) "the hexadecimal characters" means exactly what is commonly understood, viz. 0 to 9 with 'a' to 'f', and with 'A' to 'F' for good measure. Even if '0' is shared with another class. (But isn't that logical? '0' is dual-use.) Maybe the NuVoc page for (;:) could do with making it clearer. Come to think of it, the NuVoc page for (;:) could do with making a lot of things clearer. (I'll see to it.) On Mon, 16 Sep 2019 at 08:16, Arnab Chakraborty <[email protected]> wrote: > I just want to report a minor inconsistency in the NuVoc page for > sequential machine: > > In the example for recognizing C hex strings, we have > > We see that the input characters are in 4 classes > > - the character 0 > - the character x > - the hexadecimal characters *0*123456789abcdefABCDEF > - all other characters. > > > The red zero should be omitted. The code BTW is correct. > > > Thanks and regards, > > Arnab > ---------------------------------------------------------------------- > For information about J forums see http://www.jsoftware.com/forums.htm > ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm
