# HG changeset patch # User mario # Date 1194531591 -3600 # Node ID aeb7e0e53855665566fa7cf83291edc31ec4fe8d # Parent 2b6e9eeeff2c6681353cc58bbf619e26b6586ba7 commenting out code no longer required. To be deleted later. diff -r 2b6e9eeeff2c -r aeb7e0e53855 stage1_2/iec.flex --- a/stage1_2/iec.flex Sun Nov 04 18:25:30 2007 +0100 +++ b/stage1_2/iec.flex Thu Nov 08 15:19:51 2007 +0100 @@ -973,28 +973,27 @@ * We solve this by NOT testing for function names here, and * handling this function and keyword clash in bison! */ + /* {identifier} {int token = get_identifier_token(yytext); // fprintf(stderr, "flex: analysing identifier '%s'...", yytext); if ((token == prev_declared_variable_name_token) || // (token == prev_declared_derived_function_name_token) || // DO NOT add this condition! (token == prev_declared_fb_name_token)) { - /* - if (token != identifier_token) - */ - /* NOTE: if we replace the above uncommented conditions with + // if (token != identifier_token) + // * NOTE: if we replace the above uncommented conditions with * the simple test of (token != identifier_token), then * 'MOD' et al must be removed from the * library_symbol_table as a default function name! - */ + * // yylval.ID=strdup(yytext); // fprintf(stderr, "returning token %d\n", token); return token; } - /* otherwise, leave it for the other lexical parser rules... */ + // otherwise, leave it for the other lexical parser rules... // fprintf(stderr, "rejecting\n"); REJECT; } - + */ /******************************************************/ /******************************************************/