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

Subversion Repositories sc2v

[/] [sc2v/] [trunk/] [src/] [sc2v_step2.l] - Diff between revs 4 and 9

Go to most recent revision | Show entire file | Details | Blame | View Log

Rev 4 Rev 9
Line 72... Line 72...
                           yylval=(int)strdup(yytext);
                           yylval=(int)strdup(yytext);
                           return WORD;
                           return WORD;
                        }
                        }
"*"                     if(!includefound & !linecomment & !multilinecomment) return ASTERISCO;
"*"                     if(!includefound & !linecomment & !multilinecomment) return ASTERISCO;
"\n"                    includefound = 0; linecomment = 0;
"\n"                    includefound = 0; linecomment = 0;
 
"\\\n"                  /* no new line */
"$"                     /* ignore */
"$"                     /* ignore */
"."                     /* ignore */
"."                     /* ignore */
":"                     /* ignore */
":"                     /* ignore */
"#include"              includefound = 1;
"#include"              includefound = 1;
"//"                    linecomment = 1;
"//"                    if (!multilinecomment) linecomment = 1;
"/*"                    multilinecomment = 1;
"/*"                    if (!linecomment) multilinecomment = 1;
"*/"                    multilinecomment = 0;
"*/"                    if (multilinecomment) multilinecomment = 0;
"/"                     /* ignore */
"/"                     /* ignore */
"-"
"-"
"#"
"#"
"@"
"@"
"|"
"|"

powered by: WebSVN 2.1.0

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