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

Subversion Repositories sc2v

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

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

Rev 2 Rev 4
Line 1... Line 1...
/* -----------------------------------------------------------------------------
/* -----------------------------------------------------------------------------
 *
 *
 *  SystemC to Verilog Translator v0.1
 *  SystemC to Verilog Translator v0.2
 *  Provided by OpenSoc Design
 *  Provided by OpenSoc Design
 *
 *
 *  www.opensocdesign.com
 *  www.opensocdesign.com
 *
 *
 * -----------------------------------------------------------------------------
 * -----------------------------------------------------------------------------
Line 58... Line 58...
sc_bigint               if(!includefound & !linecomment & !multilinecomment) return SC_INT;
sc_bigint               if(!includefound & !linecomment & !multilinecomment) return SC_INT;
sc_biguint              if(!includefound & !linecomment & !multilinecomment) return SC_UINT;
sc_biguint              if(!includefound & !linecomment & !multilinecomment) return SC_UINT;
\(                      if(!includefound & !linecomment & !multilinecomment) return OPENPAR;
\(                      if(!includefound & !linecomment & !multilinecomment) return OPENPAR;
\)                      if(!includefound & !linecomment & !multilinecomment) return CLOSEPAR;
\)                      if(!includefound & !linecomment & !multilinecomment) return CLOSEPAR;
;                       if(!includefound & !linecomment & !multilinecomment) return SEMICOLON;
;                       if(!includefound & !linecomment & !multilinecomment) return SEMICOLON;
 
"enum"                  if(!includefound & !linecomment & !multilinecomment) return ENUM;
","                     if(!includefound & !linecomment & !multilinecomment) return COLON;
","                     if(!includefound & !linecomment & !multilinecomment) return COLON;
"{"                     if(!includefound & !linecomment & !multilinecomment) return OPENKEY;
"{"                     if(!includefound & !linecomment & !multilinecomment) return OPENKEY;
"}"                     if(!includefound & !linecomment & !multilinecomment) return CLOSEKEY;
"}"                     if(!includefound & !linecomment & !multilinecomment) return CLOSEKEY;
"->"                    if(!includefound & !linecomment & !multilinecomment) return ARROW;
"->"                    if(!includefound & !linecomment & !multilinecomment) return ARROW;
"="                     if(!includefound & !linecomment & !multilinecomment) return EQUALS;
"="                     if(!includefound & !linecomment & !multilinecomment) return EQUALS;
Line 85... Line 86...
"#"
"#"
"@"
"@"
"|"
"|"
"~"
"~"
 
 
 
"//"[ ]*[tT][rR][aA][nN][sS][lL][aA][tT][eE][ ]*[oO][fF][fF]  return TRANSLATEOFF;  /*Translate directive*/
 
"//"[ ]*[tT][rR][aA][nN][sS][lL][aA][tT][eE][ ]*[oO][nN]      return TRANSLATEON;  /*Translate directive*/
%%
%%

powered by: WebSVN 2.1.0

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