stage1_2/iec_flex.ll
changeset 701 562c01f82afb
parent 637 1b6f337222e0
child 793 268bf4ca5fa1
equal deleted inserted replaced
639:f0ef73eceb57 701:562c01f82afb
   853 		 yytext[strlen(yytext)-cut] = '\0';
   853 		 yytext[strlen(yytext)-cut] = '\0';
   854 		 yylval.ID=strdup(yytext+cut);
   854 		 yylval.ID=strdup(yytext+cut);
   855 		 return pragma_token;
   855 		 return pragma_token;
   856 		}
   856 		}
   857 <body_state>{pragma} {/* return the pragmma without the enclosing '{' and '}' */
   857 <body_state>{pragma} {/* return the pragmma without the enclosing '{' and '}' */
   858 		 yytext[strlen(yytext)-1] = '\0';
   858 		 int cut = yytext[1]=='{'?2:1;
   859 		 yylval.ID=strdup(yytext+1);
   859          yytext[strlen(yytext)-cut] = '\0';
       
   860 		 yylval.ID=strdup(yytext+cut);
   860 		 return pragma_token;
   861 		 return pragma_token;
   861 		}
   862 		}
   862 
   863 
   863 
   864 
   864 	/*********************************/
   865 	/*********************************/