URL
https://opencores.org/ocsvn/sc2v/sc2v/trunk
[/] [sc2v/] [trunk/] [src/] [sc2v_step2.l] - Diff between revs 16 and 20
Go to most recent revision |
Show entire file |
Details |
Blame |
View Log
Rev 16 |
Rev 20 |
Line 74... |
Line 74... |
"\"" if(!includefound & !linecomment & !multilinecomment) return QUOTE;
|
"\"" if(!includefound & !linecomment & !multilinecomment) return QUOTE;
|
[a-zA-Z][a-z_A-Z0-9]* if(!includefound & !linecomment & !multilinecomment) {
|
[a-zA-Z][a-z_A-Z0-9]* if(!includefound & !linecomment & !multilinecomment) {
|
yylval=(int)strdup(yytext);
|
yylval=(int)strdup(yytext);
|
return WORD;
|
return WORD;
|
}
|
}
|
|
"[" if(!includefound & !linecomment & !multilinecomment) {
|
|
yylval=(int)strdup(yytext);
|
|
return OPENCORCH;
|
|
}
|
|
"]" if(!includefound & !linecomment & !multilinecomment) {
|
|
yylval=(int)strdup(yytext);
|
|
return CLOSECORCH;
|
|
}
|
|
|
"*" if(!includefound & !linecomment & !multilinecomment) return ASTERISCO;
|
"*" if(!includefound & !linecomment & !multilinecomment) return ASTERISCO;
|
"\n" includefound = 0; linecomment = 0; lineno++;
|
"\n" includefound = 0; linecomment = 0; lineno++;
|
"\\\n" lineno++;/* no new line */
|
"\\\n" lineno++;/* no new line */
|
"$" /* ignore */
|
"$" /* ignore */
|
"." /* ignore */
|
"." /* ignore */
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.