Extend an R to allow dual syntaxes (a "AND" b on "string") and you have it,
trivially, from here.

BTW, you cannot handle JCL without it.... cleanly...

On Tue, Jan 27, 2009 at 10:15 AM, Roger Hui <[email protected]> wrote:

> In J, a numeric constant begins with _ or 0-9,
> continues with _  or 0-9 or . or a-z or A-Z, and ends
> with a character which is not one of the preceding
> or at the end of the string.  This is modeled in the ;:
> dictionary page.
> http://www.jsoftware.com/help/dictionary/d332.htm
> The model also handles numeric vector constants.
>
> The word formation rules specify as "number"
> strings that are currently not interpreted as numbers.
> For example 2i3j4k5 (future quaternion?)
>
>
>
> ----- Original Message -----
> From: bill lam <[email protected]>
> Date: Monday, January 26, 2009 22:29
> Subject: Re: [Jprogramming] regex for j numeric constants
> To: [email protected]
>
> > I think that does not yet cover the case of base and rational,
> > eg,
> >
> >    r0 rxall '16babde 123r222'
> > +--+---+---+
> > |16|123|222|
> > +--+---+---+
> >    ". '16babde 123r222'
> > 43998 0.55405405
> ----------------------------------------------------------------------
> For information about J forums see http://www.jsoftware.com/forums.htm
>



-- 
Use Reply-To: & thread your email
after the first: or it may take a while, as
I get 2000+ emails per day.
--

Roy A. Crabtree
UNC '76 gaa.lifer#  11086

703-318-2106 (msgs only, use my name)

(mail, residence)
Roy A. Crabtree
3322 Wheeler Road SE
Oak Hill Apartments #T-4
Washington, DC 20032-4166

(secondary mail)
Roy A. Crabtree
USPS POB 58097
Washington, DC 20034-8097
[When you hear/read/see/feel what a y*ehudi plays/writes/sculpts/holds]
[(n)either violinist {Menuhin} (n)or writer {"The Y*ehudi Principle"} (n)or
molder (n)or older]
[you must strive/think/look/sense all of it, or you will miss the meanings
of it all]

[email protected] Forwards only to:
[email protected]
[email protected] CC: auto to ^

http://musings-roy-crabtree.blogspot.com [& others]
http://www.authorsden.com/royacrabtree
http://skyscraper.fortunecity.com/activex/720/resume/full.doc
--
(c) RAC/IP, ARE,PRO,PAST
(Copyright) Roy Andrew Crabtree/In Perpetuity
   All Rights/Reserved Explicitly
   Public Reuse Only
   Profits Always Safe Traded
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to