What gives with Lex(1) & structures
george at okstate.UUCP
george at okstate.UUCP
Thu Oct 25 11:45:00 AEST 1984
While using Lex(1), I have noticed the following:
If you make a declaration of the form
------------------------------------------------------------------------
extern decls
%%
struct ident {
char name[32];
.
.
.
struct ident *link;
} struct ident *header;
rules actions
%%
Whatever else is needed.
EOF
------------------------------------------------------------------------
Lex(1) will generate a C program with the folowing in it.
------------------------------------------------------------------------
exern decls
struct ident {
char name[32];
.
.
.
struct ident *link;
}
+the rest of the standard Lex(1) program.
------------------------------------------------------------------------
What happens to the "struct ident *header;" portion of the declaration?
If anybody has had the same problem please post your experiences.
george [in real life Gregg Wonderly]@okstate
More information about the Net.bugs
mailing list