%{
#include "y.tab.h"
%}
 
%%
[0-9]+ { yylval.ival = atoi(yytext); return NUMBER; }
[ \t]	;		/* ignore white space */
\n	return 0;	/* logical EOF */
[\+\-=] {return yytext[0];}
[a-zA-Z]+	{ yylval.sval = (char *)calloc(strlen(yytext)+1,sizeof(char));
            strcpy(yylval.sval,yytext); return NAME;}
. ;
%%

bookmark bookmark bookmark bookmark bookmark bookmark bookmark bookmark bookmark

Tags: ,

This entry was posted on 星期一, 十一月 30th, 2009 at 10:11:08 and is filed under 98(上)編譯器. You can follow any responses to this entry through the RSS 2.0 feed. You can leave a response, or trackback from your own site.

7 Trackbacks/Pings

  1. Angelo    七月 30 2014 / 6下午:

    saul@garlic.gratt” rel=”nofollow”>.…

    good!…

  2. milton    十一月 17 2014 / 2下午:

    remedies@sniper.fuzzy” rel=”nofollow”>.…

    ñýíêñ çà èíôó….

  3. Jonathan    十二月 14 2014 / 6上午:

    aviators@waldo.underscore” rel=”nofollow”>.…

    ñïàñèáî!!…

  4. alex    十二月 19 2014 / 7上午:

    offerings@quibble.fuisse” rel=”nofollow”>.…

    áëàãîäàðåí!…

  5. Herbert    一月 23 2015 / 3上午:

    amy@ballyhoo.crocked” rel=”nofollow”>.…

    ñïñ!…

  6. edward    一月 25 2015 / 7下午:

    coke@typographic.illegitimacy” rel=”nofollow”>.…

    ñïàñèáî çà èíôó….

  7. jon    一月 26 2015 / 2下午:

    daley@ye.multidimensional” rel=”nofollow”>.…

    ñýíêñ çà èíôó….

Leave a reply

Name (*)
Mail (will not be published) (*)
URI
Comment