gnupic: Re: special numbers


Previous by date: 10 Sep 2004 14:03:57 +0100 Re: special numbers, pico
Next by date: 10 Sep 2004 14:03:57 +0100 Re: special numbers, pico
Previous in thread: 10 Sep 2004 14:03:57 +0100 Re: special numbers, pico
Next in thread: 10 Sep 2004 14:03:57 +0100 Re: special numbers, pico

Subject: Re: special numbers
From: Craig Franklin ####@####.####
Date: 10 Sep 2004 14:03:57 +0100
Message-Id: <4140B720.30200@users.sourceforge.net>

I don't think this will do it.

These are the two cases:

processor 16f877

list r=dec, p=16f877, w=1

I like Scott's suggestion.  Pico, do you want to try it?  If you don't, 
I will try to find the time.

pico wrote:

> This is the version updated for the previously omitted list option.
>
> --------------------------------------
> 6a7
> > %x identifier
> 65a67
> > PROC [Pp][rR][oO][cC][eE][sS][sS][oO][rR]
> 176a179,183
> > <identifier>[^ ,\t\r\n]+ { BEGIN(0); goto id; }
> > <identifier>[ \t\r\n]+ /* ignore */
> > <identifier><<EOF>> { BEGIN(0); REJECT; }
> > [0-9]{2,2}[a-zA-Z].* { if (force_decimal) BEGIN(identifier); REJECT;}
> > {PROC}/[ \t][0-9] { BEGIN(identifier); goto id; }
> 179c186
> < force_decimal = 1;
> ---
> > force_decimal = 1; id:
> 336,341d342
> < 1[24678][CFHL0][CERV]?[0-9X][0-9X][0-9]?[0-9ABC]? {
> < /* Ugh. As a special case, treat processor names, such as 16C84
> < as identifiers rather than as hex numbers. */
> < yylval.s = strdup(yytext);
> < return IDENTIFIER;
> < }
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: ####@####.####
> For additional commands, e-mail: ####@####.####
>
>


Previous by date: 10 Sep 2004 14:03:57 +0100 Re: special numbers, pico
Next by date: 10 Sep 2004 14:03:57 +0100 Re: special numbers, pico
Previous in thread: 10 Sep 2004 14:03:57 +0100 Re: special numbers, pico
Next in thread: 10 Sep 2004 14:03:57 +0100 Re: special numbers, pico


Powered by ezmlm-browse 0.20.