Puma Reference Manual Puma::CCParser Class Reference



Puma::CCParser Class Reference

#include <CCParser.h>

Inheritance diagram for Puma::CCParser:
Inheritance graph

List of all members.

Public Types

enum  { SKIP_FCT_BODY = 0x01 }

Public Member Functions

 CCParser ()
CTranslationUnitparse (Unit &u, CProject &p, int m=0, std::ostream &os=std::cout)
 Parse the given input file.
unsigned Options () const
void Options (unsigned o)
CCSyntaxsyntax () const
CCBuilderbuilder () const
CCSemanticsemantic () const
- Public Member Functions inherited from Puma::Parser
 Parser (Syntax &x, Builder &b, Semantic &s)
 Constructor.
void configure (Config &c)
 Configure the parser components.

Member Enumeration Documentation

anonymous enum
Enumerator:
SKIP_FCT_BODY 

Constructor & Destructor Documentation

Puma::CCParser::CCParser ( )
inline

Member Function Documentation

CCBuilder& Puma::CCParser::builder ( ) const
inline
unsigned Puma::CCParser::Options ( ) const
inline
void Puma::CCParser::Options ( unsigned  o)
inline
CTranslationUnit* Puma::CCParser::parse ( Unit file,
CProject p,
int  pre_mode = 0,
std::ostream &  os = std::cout 
)
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.

Parameters:
fileThe input file.
pThe source project information.
pre_modeThe preprocessing mode (0-2).
osPreprocessor output stream if mode is 1.
Returns:
A newly created object containing the parse results. To be destroyed by the caller.

Reimplemented from Puma::Parser.

CCSemantic& Puma::CCParser::semantic ( ) const
inline
CCSyntax& Puma::CCParser::syntax ( ) const
inline



Puma Reference Manual. Created on Sat Jun 30 2012.