c++ Syntax
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
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.
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.
I would imagine that a few dollars expenditure on the C++ standard would probably be helpful.
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
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
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement