OpenCores
URL https://opencores.org/ocsvn/sc2v/sc2v/trunk

Subversion Repositories sc2v

[/] [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 */

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.