Puma Reference Manual | Puma: Puma::CCParser Class Reference |
#include <CCParser.h>
Public Types | |
enum | { SKIP_FCT_BODY = 0x01 } |
Public Member Functions | |
CCParser () | |
CTranslationUnit * | parse (Unit &u, CProject &p, int m=0) |
Parse the given input file. | |
unsigned | Options () const |
void | Options (unsigned o) |
CCSyntax & | syntax () const |
CCBuilder & | builder () const |
CCSemantic & | semantic () const |
Puma::CCParser::CCParser | ( | ) | [inline] |
CTranslationUnit* Puma::CCParser::parse | ( | Unit & | file, | |
CProject & | p, | |||
int | pre_mode = 0 | |||
) | [inline] |
Parse the given input file.
Supports different preprocessing modes. 0 means to pass the preprocessed tokens to the parser. 1 means to print the preprocessed tokens on stdout and to not parse at all. Mode 2 means the same as mode 1 except that the preprocessed tokens are not printed to stdout.
file | The input file. | |
p | The source project information. | |
pre_mode | The preprocessing mode (0-2). |
Reimplemented from Puma::Parser.
unsigned Puma::CCParser::Options | ( | ) | const [inline] |
void Puma::CCParser::Options | ( | unsigned | o | ) | [inline] |
CCSyntax& Puma::CCParser::syntax | ( | ) | const [inline] |
CCBuilder& Puma::CCParser::builder | ( | ) | const [inline] |
CCSemantic& Puma::CCParser::semantic | ( | ) | const [inline] |