Hi all,
I am working on porting of code in C++, I am having the following problem.
In my code The following structure has been defined
static struct rwtable { /* reserved word table */
char * rw_name; /* representation */
int rw_yylex; /* yylex() value */
} rwtable[] = { /* sorted */
# include "y_token_names.h"
"", 0
};
Here the file y_token_names.h is containg the
ACCESS", token(269),
"AFTER", token(270),
"AMPERSAND_SLASH", token(266),
reserved words and the corresponding tokens in tabular format as above
with out included in any structure or union.
When I include this header file I am getting some parse errors.
the file y_token_names.h is obtained from the file y.tab.h and followed by
AWK utility of unix. i.e
awk y.tab.h |sort -o y_token_names.h
Q1. What is need for including the header file during the initilaisation.
Q2. This file is just containh the entries in a tabular format is it meaning ful
to include the files which are present in that format.
kindly help me in resolving this problem
regards
srikar