| Puma Reference Manual | 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, std::ostream &os=std::cout) |
| Parse the given input file. | |
| unsigned | Options () const |
| void | Options (unsigned o) |
| CCSyntax & | syntax () const |
| CCBuilder & | builder () const |
| CCSemantic & | semantic () const |
Public Member Functions inherited from Puma::Parser | |
| Parser (Syntax &x, Builder &b, Semantic &s) | |
| Constructor. | |
| void | configure (Config &c) |
| Configure the parser components. | |
|
inline |
|
inline |
|
inline |
|
inline |
|
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). |
| os | Preprocessor output stream if mode is 1. |
Reimplemented from Puma::Parser.
|
inline |
|
inline |