C types expanding

Gilles Bourgeois <gbourgeois@silicom.fr>
11 Sep 2001 00:23:56 -0400

          From comp.compilers

Related articles
C types expanding gbourgeois@silicom.fr (Gilles Bourgeois) (2001-09-11)
| List of all articles for this month |
From: Gilles Bourgeois <gbourgeois@silicom.fr>
Newsgroups: comp.compilers,comp.compilers.lcc,comp.compilers.tools.javacc
Date: 11 Sep 2001 00:23:56 -0400
Organization: Wanadoo, l'internet avec France Telecom
Keywords: types, question
Posted-Date: 11 Sep 2001 00:23:56 EDT

hello (from france). I am being browsing lexer and parser websites
for a while and I can not find what I am looking for, but I think may
be what I want to create does still exist somewhere: Let explain
considering the following C header file :


typedef struct {
char * y;
int z;
}_X;
struct Y {
_X alpha;
_X * beta;
int charli;
};
struct Y my_structure;


I need to expand all of that, parsing this header file , I want to
have a representation of my_structure with all its parameters ,
meaning alpha becomes alpha.y alpha.z and beta becomes beta->y,
beta->z, so my structure becomes ( like a tree)


my_structure.charli
my_structure.alpha.y
my_structure.alpha.z
my_structure.beta->y
my_structure.beta->z


the final aim is:
With a help of the corrspondig XML schema + XML and XSLT, giving to
the user the possibility to fill in the terminals parameters
  (y, z , charli) with an HTTP form for instance .


If any own can help
thanks
gilles
gbourgeois@silicom.fr


Post a followup to this message

Return to the comp.compilers page.
Search the comp.compilers archives again.