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: John W. Millaway
Subject: Re: Help eliminate backing-up states
Date: Sun, 23 Dec 2001 16:06:49 -0800 (PST)

> 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]