gnupic: Re: special numbers
Subject:
Re: special numbers
From:
pico ####@####.####
Date:
10 Sep 2004 09:37:58 +0100
Message-Id: <41416769.3020006@sourceforge.net>
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;
< }