PUMA Library Reference Manual
Puma::CParser Class Reference

#include <Puma/CParser.h>

+ Inheritance diagram for Puma::CParser:

Description

C parser abstraction. Setups the C parser components ready to be used for parsing C input files (see class Puma::CSyntax, Puma::CBuilder, and Puma::CSemantic).

Public Member Functions

 CParser ()
 Constructor. More...
 
CSyntaxsyntax () const
 Get the C syntactic analysis object. More...
 
CBuilderbuilder () const
 Get the C tree builder object. More...
 
CSemanticsemantic () const
 Get the C semantic analysis object. More...
 
- Public Member Functions inherited from Puma::Parser
 Parser (Syntax &x, Builder &b, Semantic &s)
 Constructor. More...
 
CTranslationUnitparse (Unit &file, CProject &p, int pre_mode=0, std::ostream &os=std::cout)
 Parse the given input file. More...
 
void configure (Config &c)
 Configure the parser components. More...
 

Constructor & Destructor Documentation

◆ CParser()

Puma::CParser::CParser ( )
inline

Constructor.

Member Function Documentation

◆ builder()

CBuilder& Puma::CParser::builder ( ) const
inline

Get the C tree builder object.

◆ semantic()

CSemantic& Puma::CParser::semantic ( ) const
inline

Get the C semantic analysis object.

◆ syntax()

CSyntax& Puma::CParser::syntax ( ) const
inline

Get the C syntactic analysis object.