Puma Reference Manual Puma: Puma::CCParser Class Reference



Puma::CCParser Class Reference

#include <CCParser.h>

Inherits Puma::Parser.

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

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]
void Puma::CCParser::Options ( unsigned  o  )  [inline]
unsigned Puma::CCParser::Options (  )  const [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:
file The input file.
p The source project information.
pre_mode The preprocessing mode (0-2).
os Preprocessor 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 18 Sep 2009.