Forums before death by AOL, social media and spammers... "We can't have nice things"
|    comp.compilers    |    Compiler construction, theory, etc. (Mod    |    2,753 messages    |
[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]
|    Message 1,950 of 2,753    |
|    Gus Gassmann to All    |
|    include files for bison?    |
|    21 Oct 10 14:36:29    |
      From: horand.gassmann@googlemail.com              I am working on a large project with multiple parsers for several       different XML files. Some of the elements and types in the XML schemas       are identical, and I would like to share some of the parser code. I am       working in flex/bison and am wondering if there is a way to use       include files for bison.              I understand that I can use #include in the C code section, but this       is not what I am talking about. I want to set aside some repeated       grammar rules into a separate file and then "paste" that file into       several bison parsers via an include statement. Is this sort of thing       possible? How would I do it?              Thanks              gus gassmann       [I'd use m4 as a preprocessor and feed its output to bison. -John]              --- SoupGate-Win32 v1.05        * Origin: you cannot sedate... all the things you hate (1:229/2)    |
[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]
(c) 1994, bbs@darkrealms.ca