Jump to content
  • Advertisement
Sign in to follow this  
Zotoaster

Parsing for C++ on Windows

This topic is 3126 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hi everyone. I've looked into Lex/Yacc/Flex/Bison, and I for the life of me cannot figure out how they're supposed to work. They seem to be for some CLI OS, and I don't know how to work them. Is there anything that I can use on Windows, or is this just a stupid question altogether? Thanks all

Share this post


Link to post
Share on other sites
Advertisement
You write your grammar/lexeme file, as per the instructions you can find just about anywhere, then open up a console window (try Start->Run->"cmd.exe"), and type
lex/flex/yacc/bison/whatever your_file_here

For example, to create the lexer from a file called "tokens.l", you type
lex tokens.l
, and the program creates a C file which is saved in the folder you called the command from.

Share this post


Link to post
Share on other sites
antlr
Boost.Spirit
I can't say much about the first but I have a little experience with spirit, it's a nice and easy library which as far as I found has 1 downside: it creates many and very complicated compile errors.

[Edited by - flammable on March 2, 2010 10:54:51 AM]

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!