help-flex
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: Help eliminate backing-up states


From: Stephano Mariani
Subject: RE: Help eliminate backing-up states
Date: Mon, 24 Dec 2001 00:20:23 -0000

Thanks.

Stephano Mariani

PS: Perhaps this deserves a mention in the documentation...


-----Original Message-----
From: John W. Millaway [mailto:address@hidden 
Sent: Monday, 24 December 2001 12:7
To: Stephano Mariani; address@hidden
Subject: Re: Help eliminate backing-up states


> I cannot seem to eliminate a backing up state... The corresponding 
> rule
> is:
> 
> \.([+-][0-9]{1,10})?  { do_something; }
> 
> Ie: the rule must match a literal ".", optionally followed by a "+" or

> a "-" followed by a number. It must not match a "." followed by 
> number.
> 
> Ie all the following are valid:
> 
> .
> .+1
> .-3145785
> .+783655

Add one "error" rule to match the text that would have backed up (see
the
manual):

\.[+-]    { printf("error, illegal token. but no backing up anymore"); }



__________________________________________________
Do You Yahoo!?
Send your FREE holiday greetings online! http://greetings.yahoo.com





reply via email to

[Prev in Thread] Current Thread [Next in Thread]