🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

1 total messages Started by george Thu, 25 Oct 1984 01:45
What gives with Lex(1) & structures
#326
Author: george
Date: Thu, 25 Oct 1984 01:45
42 lines
1596 bytes
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
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads