Reputation: 3707
I need to parse .c/.h files for the data declaration and extract the type declarations. For example, I might need to extract the variable declaration and it corresponding data type that might look like:
typedef union
{
struct
{
unsigned char OG15 : 1,
...
OG0 : 1;
} Bits;
unsigned short Packed;
} OUTPUT_DESCRIPTOR;
OUTPUT_DESCRIPTOR DiscreteWord1;
So my questions would be (using C#):
Thx
Mark
Upvotes: 1
Views: 446
Reputation: 127467
Not sure whether any of this is the best approach, but I can propose two working approaches:
Upvotes: 1