Jump to content
  • Advertisement

Archived

This topic is now archived and is closed to further replies.

Lars W.

c++ Syntax

This topic is 6110 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 Does anybody know a site where i can find Information about the Syntax of C++. i need it to write a c++ parser, and there for i need a very detailed description (Best would be in EBNF). I espacially need the syntax of functions. There is more then just "return_type name(args){}" there is that calling convention stuff and all the different ways to write a function. There must be something somewhere but i couldn''t find anything on the net detailed enough. Thanks in advance. Lars

Share this post


Link to post
Share on other sites
Advertisement
do a search on "www.google.com" for "c++ lexical". you''re sure to get at least 1 hundred hits. i am currently coding a c compiler for the PS2, but i didn''t find much of it useful. i am using the "c primer" book and "cl (MS VC++ c compiler" as my guide.

To the vast majority of mankind, nothing is more agreeable than to escape the need for mental exertion... To most people, nothing is more troublesome than the effort of thinking.

Share this post


Link to post
Share on other sites
You could always get the source for g++. g++ uses bison for parsing, and a bison file is almost pure BNF anyway...

Fantastic doctrines (like Christianity or Islam or Marxism or Microsoft-bashing) require unanimity of belief. One dissenter casts doubt on the creed of millions. Thus the fear and hate; thus the torture chamber, the iron stake, the gallows, the labor camp, the psychiatric ward - Edward Abbey

Share this post


Link to post
Share on other sites
Thanks a lot guys!

especially the tip with the g++ is very interesting.
Just looked into the File and the advantage is, that nothing can be missing.
It also inspires me to make my parsing algorithm a little more dynamic.

Lars

Share this post


Link to post
Share on other sites

  • 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!