Menu

Noobish question but....

Help
Shark
2009-02-26
2012-07-26
  • Shark

    Shark - 2009-02-26

    I need to ask it.

    I've downloaded Flex and Bison, and installed everything ok. But... i either don't know how to use these under windows, or i can't.

    So, in gnuwin\bin i see 4 exes. Bison, Flex, Flex+ and M4. I pretty much guessed i need to run these from cmd.exe, but whatever i do they just don't respond.

    Any help with getting them to run? Please? :)

     
    • Shark

      Shark - 2009-02-26

      I used them on Linux, and i've tried passing them arguments... Besides, i need a LALR(1) parser, and Bison is a lalr parser generator... True that i've used lex/yacc, but flex/bison should not only be fully compatible with those, but also better than the lex/yacc combo.

      And i expected to find at least some info in the docs. I found none.

      I didn't expect them to pop up a GUI or anything, but I did expect it to at least respond somehow instead of just doing nothing when i run the file.

      I need to generate this scanner class so i can go on with the Bison part of the project. Once i figure out how to get these two to work, i'll just make a batch file to run them with the params i need, much like i've used makefiles.

      Does this make sense now?

       
    • Anonymous

      Anonymous - 2009-02-26

      Are you trying to run them interactively, expecting them to offer some
      kind of user interface? Then you have misunderstood something.
      Typically these tools are used from scripts or makefiles, passing
      arguments (file names etc) on the command line. Running them
      interactively is more or less pointless.

      Why did you download these tools if you have no idea how they are used?

       
    • Shark

      Shark - 2009-02-26

      I used them on Linux, and i've tried passing them arguments... Besides, i need a LALR(1) parser, and Bison is a lalr parser generator... True that i've used lex/yacc, but flex/bison should not only be fully compatible with those, but also better than the lex/yacc combo.

      And i expected to find at least some info in the docs. I found none.

      I didn't expect them to pop up a GUI or anything, but I did expect it to at least respond somehow instead of just doing nothing when i run the file.

      I need to generate this scanner class so i can go on with the Bison part of the project. Once i figure out how to get these two to work, i'll just make a batch file to run them with the params i need, much like i've used makefiles.

      Does this make sense now?

       
MongoDB Logo MongoDB