PUMA Library Reference Manual
Loading...
Searching...
No Matches
Puma::CScanner Class Reference

#include <CScanner.h>

+ Inheritance diagram for Puma::CScanner:

Public Member Functions

 CScanner (ErrorSink &error_stream)
 
virtual ~CScanner ()
 
void configure (const Config &)
 
void lexer (CLexer &lexer)
 
void fill_unit (Source &in, Unit &unit)
 Fill a unit from the given source.
 
void fill_unit (const char *in, Unit &unit)
 
void allow_directives (bool flag=true)
 
void allow_wildcards (bool flag=true)
 
void allow_macro_ops (bool flag=true)
 
void allow_std_c (bool flag=true)
 
void allow_std_cplusplus (bool flag=true)
 
void allow_gnu_c (bool flag=true)
 
void allow_gnu_cplusplus (bool flag=true)
 
void allow_visual_c (bool flag=true)
 
void allow_visual_cplusplus (bool flag=true)
 
void allow_type_traits (bool flag=true)
 
void allow_cc1x (bool flag=true)
 
- Public Member Functions inherited from Puma::Tokenizer
virtual ~Tokenizer ()
 Destructor.
 

Constructor & Destructor Documentation

◆ CScanner()

Puma::CScanner::CScanner ( ErrorSink & error_stream)
inline

◆ ~CScanner()

virtual Puma::CScanner::~CScanner ( )
inlinevirtual

Member Function Documentation

◆ allow_cc1x()

void Puma::CScanner::allow_cc1x ( bool flag = true)
inline

◆ allow_directives()

void Puma::CScanner::allow_directives ( bool flag = true)
inline

◆ allow_gnu_c()

void Puma::CScanner::allow_gnu_c ( bool flag = true)
inline

◆ allow_gnu_cplusplus()

void Puma::CScanner::allow_gnu_cplusplus ( bool flag = true)
inline

◆ allow_macro_ops()

void Puma::CScanner::allow_macro_ops ( bool flag = true)
inline

◆ allow_std_c()

void Puma::CScanner::allow_std_c ( bool flag = true)
inline

◆ allow_std_cplusplus()

void Puma::CScanner::allow_std_cplusplus ( bool flag = true)
inline

◆ allow_type_traits()

void Puma::CScanner::allow_type_traits ( bool flag = true)
inline

◆ allow_visual_c()

void Puma::CScanner::allow_visual_c ( bool flag = true)
inline

◆ allow_visual_cplusplus()

void Puma::CScanner::allow_visual_cplusplus ( bool flag = true)
inline

◆ allow_wildcards()

void Puma::CScanner::allow_wildcards ( bool flag = true)
inline

◆ configure()

void Puma::CScanner::configure ( const Config & )

◆ fill_unit() [1/2]

void Puma::CScanner::fill_unit ( const char * in,
Unit & unit )

◆ fill_unit() [2/2]

void Puma::CScanner::fill_unit ( Source & in,
Unit & unit )
virtual

Fill a unit from the given source.

Parameters
inThe input source.
unitThe output unit.

Implements Puma::Tokenizer.

◆ lexer()

void Puma::CScanner::lexer ( CLexer & lexer)