Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. The Lounge
  3. Flex and Bison

Flex and Bison

Scheduled Pinned Locked Moved The Lounge
c++algorithmshelp
4 Posts 4 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • F Offline
    F Offline
    Franz Klein
    wrote on last edited by
    #1

    I have been writing a parser using bison and flex. I have put my .l and .y files thorough flex and bison repsectively. Now when I try and compile the resulting .c and .h files I get an error saying "unexpected end of file searching for precompiled header directive." It doesn't say which header it is looking for. I am using Visual C++ ver 6 :confused: X|

    A J 2 Replies Last reply
    0
    • F Franz Klein

      I have been writing a parser using bison and flex. I have put my .l and .y files thorough flex and bison repsectively. Now when I try and compile the resulting .c and .h files I get an error saying "unexpected end of file searching for precompiled header directive." It doesn't say which header it is looking for. I am using Visual C++ ver 6 :confused: X|

      A Offline
      A Offline
      Anders Molin
      wrote on last edited by
      #2

      First, this should have been posted in the C++ forum... Just #include "StdAfx.h" in the top of every .cpp file... - Anders Money talks, but all mine ever says is "Goodbye!"

      B 1 Reply Last reply
      0
      • A Anders Molin

        First, this should have been posted in the C++ forum... Just #include "StdAfx.h" in the top of every .cpp file... - Anders Money talks, but all mine ever says is "Goodbye!"

        B Offline
        B Offline
        Berry van Olphen
        wrote on last edited by
        #3

        Assuming you are using VC++ go to the Project settings and select the C/C++ tab. From the Category drop-down box select Precompiled Headers. For the generated .c files select 'Not using precompiled headers'. Grtx, Berry

        1 Reply Last reply
        0
        • F Franz Klein

          I have been writing a parser using bison and flex. I have put my .l and .y files thorough flex and bison repsectively. Now when I try and compile the resulting .c and .h files I get an error saying "unexpected end of file searching for precompiled header directive." It doesn't say which header it is looking for. I am using Visual C++ ver 6 :confused: X|

          J Offline
          J Offline
          Josef Haslinger
          wrote on last edited by
          #4

          Hi, this is not an answer to your question, but i thought it might interest someone: I stopped using flex an bison when i discovered a tool called "COCOR". It exists for several languages and is freeware. Even src is included. It is much easier to use and produces readable code for scanners and parsers. (No more yy_ variables and functions :-D ) Look at http://cs.ru.ac.za/homes/cspt/cocor.htm watch out for the c++ version. Maybe someone likes this tool.

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups