Changeset 9 for trunk/zoo-kernel/main_conf_read.l
- Timestamp:
- Sep 14, 2010, 2:04:55 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/zoo-kernel/main_conf_read.l
r1 r9 1 1 /* pour pouvoir acceder au numero de ligne dans bison */ 2 2 %option yylineno 3 4 3 5 4 %{ … … 114 113 {newline}+{whitesp}* {if (affichetrace==1) printf ("\n\nNEWLINE 1\n") ; return NEWLINE;} 115 114 116 <INITIAL,HORSBALISE>"["{attname}"]" {if (affichetrace==1) printf ("\n\nANID:%s\n",yytext); crlval.chaine= strdup(yytext);crlval.chaine[strlen(crlval.chaine)-1]=0;crlval.chaine+=1;return ANID; }115 <INITIAL,HORSBALISE>"["{attname}"]" {if (affichetrace==1) printf ("\n\nANID:%s\n",yytext); crlval.chaine=yytext;crlval.chaine[strlen(crlval.chaine)-1]=0;crlval.chaine+=1;return ANID; } 117 116 118 <INITIAL,HORSBALISE>{attname} {if (affichetrace==1) printf ("\n\nATT_NAME:%s\n",yytext); crlval.chaine= strdup(yytext); return SPAIR; }117 <INITIAL,HORSBALISE>{attname} {if (affichetrace==1) printf ("\n\nATT_NAME:%s\n",yytext); crlval.chaine=yytext; return SPAIR; } 119 118 120 <PAIRSTART,HORSBALISE>{attvalue1} {if (affichetrace==1) printf ("\n\nATT_VALUE:%s\n",yytext);crlval.chaine= strdup(yytext);BEGIN(INITIAL);return EPAIR;}119 <PAIRSTART,HORSBALISE>{attvalue1} {if (affichetrace==1) printf ("\n\nATT_VALUE:%s\n",yytext);crlval.chaine=yytext;BEGIN(INITIAL);return EPAIR;} 121 120 122 121 <PAIRSTART,INITIAL,HORSBALISE>{whitesp}*"="{whitesp}* {BEGIN(PAIRSTART);} … … 161 160 162 161 163 <DANSBALISE>{Name} {if (affichetrace==1) printf ("\n\nID:%s\n",yytext) ; crlval.s= strdup(yytext);return ID;}162 <DANSBALISE>{Name} {if (affichetrace==1) printf ("\n\nID:%s\n",yytext) ; crlval.s=yytext;return ID;} 164 163 165 164 … … 175 174 176 175 177 int yywrap()176 int crwrap() 178 177 {return 1;}
Note: See TracChangeset
for help on using the changeset viewer.