parsing - Is there a grammar parser (similar to yapps for python) for C++? -


I am writing an experimental language, which is very close to the pseudoode, for fun and about C ++ One of the problems to learn more about is that I need to parse some grammar, and my search failed to find a good C ++ grammar parser (I did not find anything). I want to complete it:

  Set one to 4  

and I want to return a parsed map that is similar to this:

<<> <<> <<> <<> <<> <<> <<> << If I am not getting anything useful, So I have to roll my roll, but I would like to stop searching the wheels again as much as possible.

So, here is a good / intelligent address to anyone, grammar parser that generates C ++ code? It is much better if it is widely used if it is widely used.

Thank you!

You can do your own roll as easy as writing grammar in the first place! It's a great way to learn about parsing, get a more intimate knowledge of your programming language, and most of it is fun. The method is called. It's generally more simple and elegant than a parser generator, and you will never get a Yacc port / fork :) For a great tutorial, check Jack Craneshow

Otherwise, Lex and YACP are traditional devices, while Boost: :: Spirit C ++ is more advanced and more modern. I recommend Boost :: Soul because it will help cement the C ++ norms in your programming.


Comments

Popular posts from this blog

python - Overriding the save method in Django ModelForm -

html - CSS autoheight, but fit content to height of div -

qt - How to prevent QAudioInput from automatically boosting the master volume to 100%? -