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

Subversion Repositories sc2v

[/] [sc2v/] [trunk/] [src/] [sc2v_step2.l] - Diff between revs 36 and 39

Show entire file | Details | Blame | View Log

Rev 36 Rev 39
Line 44... Line 44...
SC_MODULE               if(!includefound & !linecomment & !multilinecomment) return SC_MODULE;
SC_MODULE               if(!includefound & !linecomment & !multilinecomment) return SC_MODULE;
SC_METHOD               if(!includefound & !linecomment & !multilinecomment) return SC_METHOD;
SC_METHOD               if(!includefound & !linecomment & !multilinecomment) return SC_METHOD;
SC_CTOR                if(!includefound & !linecomment & !multilinecomment) return SC_CTOR;
SC_CTOR                if(!includefound & !linecomment & !multilinecomment) return SC_CTOR;
"void"                  if(!includefound & !linecomment & !multilinecomment) return VOID;
"void"                  if(!includefound & !linecomment & !multilinecomment) return VOID;
sensitive_pos           if(!includefound & !linecomment & !multilinecomment) return SENSITIVE_POS;
sensitive_pos           if(!includefound & !linecomment & !multilinecomment) return SENSITIVE_POS;
 
.pos\(\)                if(!includefound & !linecomment & !multilinecomment) return POS;
sensitive_neg           if(!includefound & !linecomment & !multilinecomment) return SENSITIVE_NEG;
sensitive_neg           if(!includefound & !linecomment & !multilinecomment) return SENSITIVE_NEG;
sensitive               if(!includefound & !linecomment & !multilinecomment) return SENSITIVE;
sensitive               if(!includefound & !linecomment & !multilinecomment) return SENSITIVE;
"<<"                    if(!includefound & !linecomment & !multilinecomment) return SENSIBLE;
"<<"                    if(!includefound & !linecomment & !multilinecomment) return SENSIBLE;
sc_in                   if(!includefound & !linecomment & !multilinecomment) return SC_IN;
sc_in                   if(!includefound & !linecomment & !multilinecomment) return SC_IN;
sc_out                  if(!includefound & !linecomment & !multilinecomment) return SC_OUT;
sc_out                  if(!includefound & !linecomment & !multilinecomment) return SC_OUT;
Line 88... Line 89...
"\\\n"                  lineno++;/* no new line */
"\\\n"                  lineno++;/* no new line */
"$"                     /* ignore */
"$"                     /* ignore */
"."                     /* ignore */
"."                     /* ignore */
":"                     /* ignore */
":"                     /* ignore */
"#include"              includefound = 1;
"#include"              includefound = 1;
 
"#ifdef"                            if (!multilinecomment) linecomment = 1;
 
"#define"                           if (!multilinecomment) linecomment = 1;
 
"#ifndef"                           if (!multilinecomment) linecomment = 1;
 
"#else"                             if (!multilinecomment) linecomment = 1;
 
"#endif"                            if (!multilinecomment) linecomment = 1;
"//"                    if (!multilinecomment) linecomment = 1;
"//"                    if (!multilinecomment) linecomment = 1;
"/*"                    if (!linecomment) multilinecomment = 1;
"/*"                    if (!linecomment) multilinecomment = 1;
"*/"                    if (multilinecomment) multilinecomment = 0;
"*/"                    if (multilinecomment) multilinecomment = 0;
"-"
"-"
[.:~@#^!%/+'*_"&""?""|""\\"]
[.:~@#^!%/+'*_"&""?""|""\\"]

powered by: WebSVN 2.1.0

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