summaryrefslogtreecommitdiffstats
path: root/src/build/ifcompiler/initCompiler.lex
diff options
context:
space:
mode:
Diffstat (limited to 'src/build/ifcompiler/initCompiler.lex')
-rwxr-xr-xsrc/build/ifcompiler/initCompiler.lex8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/build/ifcompiler/initCompiler.lex b/src/build/ifcompiler/initCompiler.lex
index 2361272f2..9abdaded3 100755
--- a/src/build/ifcompiler/initCompiler.lex
+++ b/src/build/ifcompiler/initCompiler.lex
@@ -23,6 +23,7 @@
// dg01 D766229 dgilbert 08/03/10 add check for hex/bin data > 64 bits
// dg02 SW058986 dgilbert 02/28/11 More noticeable fail for missing col headers
// andrewg 09/19/11 Updates based on review
+// camvanng 11/08/11 Added support for attribute enums
// End Change Log *********************************************************************************/
/**
* @file initCompiler.lex
@@ -202,16 +203,19 @@ bits { g_coltype = INIT_BITS; return INIT_BITS;}
expr { g_coltype = INIT_EXPR; return INIT_EXPR;}
scom_data { g_coltype = INIT_SCOMD; return INIT_SCOMD;}
- /*HEX and Binary nubers in the scombody can be up to 64bit,
+ /*HEX and Binary numbers in the scombody can be up to 64bit,
* decimal numbers will always fit in 32bit int */
{BINARY} { yylval.uint64 = bits2int(yytext); return INIT_INT64; }
-
<*>; { g_coltype = 0; return ';'; }
END_INITFILE return INIT_ENDINITFILE;
+<*>ENUM_{ID} {
+ yylval.str_ptr = new std::string(yytext); return ATTRIBUTE_ENUM;
+ }
+
<*>{ID} {
yylval.str_ptr = new std::string(yytext); return INIT_ID;
}
OpenPOWER on IntegriCloud