PUMA Library Reference Manual
Loading...
Searching...
No Matches
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.
 
CSyntaxsyntax () const
 Get the C syntactic analysis object.
 
CBuilderbuilder () const
 Get the C tree builder object.
 
CSemanticsemantic () const
 Get the C semantic analysis object.
 
- Public Member Functions inherited from Puma::Parser
 Parser (Syntax &x, Builder &b, Semantic &s)
 Constructor.
 
CTranslationUnitparse (Unit &file, CProject &p, int pre_mode=0, std::ostream &os=std::cout)
 Parse the given input file.
 
void configure (Config &c)
 Configure the parser components.
 

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.