Chunk order must be small to large

Jim Bufalini jim at visitrieve.com
Thu Mar 12 21:36:11 EDT 2009


Hi Craig,

Personally, I don't consider this as a bug. It's just that obviously the Rev
parser considers *word* to be a smaller chunk than *item*. So, even without
parentheses *get word 1 of item 1 of line 1 of "aaa,bbb"* works fine and the
error message, if you change the order, is indicative of this parsing order.


And this is logical as, a. You can set itemDelimiter and lineDelimiter but
not the word delimiter (smallest chunk, which word boundary has undergone a
change recently in Rev 3.0), b. When parsing text, words are generally
smaller chunks than phrases, which are usually delimited with commas, c. As
has been pointed out, you can override this parsing order using parenthesis,
and lastly d. All that's needed here is *item 1 of "aaa,bbb"* ;-)

Aloha from Hawaii,

Jim Bufalini

> -----Original Message-----
> From: use-revolution-bounces at lists.runrev.com [mailto:use-revolution-
> bounces at lists.runrev.com] On Behalf Of DunbarX at aol.com
> Sent: Thursday, March 12, 2009 7:01 AM
> To: use-revolution at lists.runrev.com
> Subject: Re: Chunk order must be small to large
> 
> Stephen;
> 
> Right. I was cavalier in thinking I can validate Rev issues by
> emulating them
> in HC. This is not fair to Rev.
> 
> I like parentheses.
> 
> But is this really a bug? Or just the way the parser works? I have many
> constructs in HC (get word line item 3 of the...) and I hope that this
> probably
> common and well regarded methodology is fully transparent to Rev, too.
> If I have
> to use parentheses, well, OK. So report or no? Anyone?
> 
> Craig Newman
> 
> In a message dated 3/12/09 12:07:47 PM, stephenREVOLUTION2 at barncard.com
> writes:
> 
> Odd. Yet this works properly:
> 
> get word 1 of "aaa,bbb"
> 
> answer item 1 of it
> 
> put it
> 
> 
> Congratulations. You found a bug. Please report it to the QC.
> 
> 
> FYI   - parentheses are your friend.  the below construction works and
> makes
> it clearer anyway:
> 
> 
> answer item 1 of (word 1 of "aaa,bbb")this really a bug? Or just the
> way the
> parser works?
> 
> 
> **************
> A Good Credit Score is 700 or Above. See yours in
> just 2 easy steps!
> (http://pr.atwola.com/promoclk/100126575x1219671244x1201345076/aol?redi
> r=http:%2F%2Fwww.freecreditreport.com%2Fpm%2Fdefault.aspx%3Fsc%3D668
> 072%26hmpgID%3D62%26bcd%3DfebemailfooterNO62)
> _______________________________________________
> use-revolution mailing list
> use-revolution at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-revolution




More information about the use-livecode mailing list