src
Public Member Functions | Public Attributes | Static Public Attributes | List of all members
re2c::Opt Struct Reference

#include <opt.h>

Collaboration diagram for re2c::Opt:
Collaboration graph
[legend]

Public Member Functions

 Opt ()
 
const opt_toperator-> ()
 
bool source (const char *s)
 
bool output (const char *s)
 
bool set_encoding (Enc::type_t t)
 
void unset_encoding (Enc::type_t t)
 
void set_encoding_policy (Enc::policy_t p)
 
void set_input_api (InputAPI::type_t t)
 
void set_target (opt_t::target_t arg)
 
void set_bNoGenerationDate (bool arg)
 
void set_version (bool arg)
 
void set_encoding (Enc arg)
 
void set_bCaseInsensitive (bool arg)
 
void set_bCaseInverted (bool arg)
 
void set_empty_class_policy (empty_class_policy_t arg)
 
void set_cFlag (bool arg)
 
void set_tFlag (bool arg)
 
void set_header_file (const char *arg)
 
void set_yycondtype (std::string arg)
 
void set_cond_get (std::string arg)
 
void set_cond_get_naked (bool arg)
 
void set_cond_set (std::string arg)
 
void set_cond_set_arg (std::string arg)
 
void set_cond_set_naked (bool arg)
 
void set_yyctable (std::string arg)
 
void set_condPrefix (std::string arg)
 
void set_condEnumPrefix (std::string arg)
 
void set_condDivider (std::string arg)
 
void set_condDividerParam (std::string arg)
 
void set_condGoto (std::string arg)
 
void set_condGotoParam (std::string arg)
 
void set_fFlag (bool arg)
 
void set_state_get (std::string arg)
 
void set_state_get_naked (bool arg)
 
void set_state_set (std::string arg)
 
void set_state_set_arg (std::string arg)
 
void set_state_set_naked (bool arg)
 
void set_yyfilllabel (std::string arg)
 
void set_yynext (std::string arg)
 
void set_yyaccept (std::string arg)
 
void set_bUseStateAbort (bool arg)
 
void set_bUseStateNext (bool arg)
 
void set_rFlag (bool arg)
 
void set_FFlag (bool arg)
 
void set_sFlag (bool arg)
 
void set_bFlag (bool arg)
 
void set_yybm (std::string arg)
 
void set_yybmHexTable (bool arg)
 
void set_gFlag (bool arg)
 
void set_yytarget (std::string arg)
 
void set_cGotoThreshold (uint32_t arg)
 
void set_topIndent (uint32_t arg)
 
void set_indString (std::string arg)
 
void set_input_api (InputAPI arg)
 
void set_yycursor (std::string arg)
 
void set_yymarker (std::string arg)
 
void set_yyctxmarker (std::string arg)
 
void set_yylimit (std::string arg)
 
void set_yypeek (std::string arg)
 
void set_yyskip (std::string arg)
 
void set_yybackup (std::string arg)
 
void set_yybackupctx (std::string arg)
 
void set_yyrestore (std::string arg)
 
void set_yyrestorectx (std::string arg)
 
void set_yylessthan (std::string arg)
 
void set_iFlag (bool arg)
 
void set_dFlag (bool arg)
 
void set_yydebug (std::string arg)
 
void set_yyctype (std::string arg)
 
void set_yych (std::string arg)
 
void set_bEmitYYCh (bool arg)
 
void set_yychConversion (bool arg)
 
void set_fill (std::string arg)
 
void set_fill_use (bool arg)
 
void set_fill_check (bool arg)
 
void set_fill_arg (std::string arg)
 
void set_fill_arg_use (bool arg)
 
void set_fill_naked (bool arg)
 
void set_labelPrefix (std::string arg)
 
void set_dfa_minimization (dfa_minimization_t arg)
 
std::string yychConversion ()
 
void reset_encoding (const Enc &enc)
 
void reset_mapCodeName ()
 
 FORBID_COPY (Opt)
 

Public Attributes

const char * source_file
 
const char * output_file
 

Static Public Attributes

static const opt_t baseopt
 

Detailed Description

Definition at line 149 of file opt.h.

Constructor & Destructor Documentation

re2c::Opt::Opt ( )
inline

Definition at line 161 of file opt.h.

162  : source_file (NULL)
163  , output_file (NULL)
164  , useropt ()
165  , realopt (useropt)
166  {}
const char * output_file
Definition: opt.h:154
const char * source_file
Definition: opt.h:153

Member Function Documentation

re2c::Opt::FORBID_COPY ( Opt  )
const opt_t* re2c::Opt::operator-> ( )
inline

Definition at line 169 of file opt.h.

170  {
171  return realopt.operator -> ();
172  }
bool re2c::Opt::output ( const char *  s)

Definition at line 280 of file opt.cc.

281 {
282  if (output_file)
283  {
284  error ("multiple output files: %s, %s", output_file, s);
285  return false;
286  }
287  else
288  {
289  output_file = s;
290  return true;
291  }
292 }
void error(const char *fmt,...)
Definition: msg.cc:10
const char * output_file
Definition: opt.h:154

Here is the call graph for this function:

void re2c::Opt::reset_encoding ( const Enc enc)

Definition at line 294 of file opt.cc.

295 {
296  useropt->encoding = enc;
297 }
Enc encoding
Definition: opt.h:118
void re2c::Opt::reset_mapCodeName ( )

Definition at line 299 of file opt.cc.

300 {
301  // historically arranged set of names
302  // no actual reason why these particular options should be reset
303  useropt->cond_get = Opt::baseopt.cond_get;
304  useropt->cond_set = Opt::baseopt.cond_set;
305  useropt->fill = Opt::baseopt.fill;
306  useropt->state_get = Opt::baseopt.state_get;
307  useropt->state_set = Opt::baseopt.state_set;
308  useropt->yybackup = Opt::baseopt.yybackup;
312  useropt->yyctype = Opt::baseopt.yyctype;
313  useropt->yycursor = Opt::baseopt.yycursor;
314  useropt->yydebug = Opt::baseopt.yydebug;
316  useropt->yylimit = Opt::baseopt.yylimit;
317  useropt->yymarker = Opt::baseopt.yymarker;
318  useropt->yypeek = Opt::baseopt.yypeek;
319  useropt->yyrestore = Opt::baseopt.yyrestore;
321  useropt->yyskip = Opt::baseopt.yyskip;
323  useropt->yynext = Opt::baseopt.yynext;
324  useropt->yyaccept = Opt::baseopt.yyaccept;
325  useropt->yybm = Opt::baseopt.yybm;
326  useropt->yych = Opt::baseopt.yych;
327  useropt->yyctable = Opt::baseopt.yyctable;
328  useropt->yytarget = Opt::baseopt.yytarget;
329 }
std::string yyrestore
Definition: opt.h:118
static const opt_t baseopt
Definition: opt.h:151
std::string yytarget
Definition: opt.h:118
std::string yycondtype
Definition: opt.h:118
std::string yyskip
Definition: opt.h:118
std::string cond_get
Definition: opt.h:118
std::string yylimit
Definition: opt.h:118
std::string yych
Definition: opt.h:118
std::string yybm
Definition: opt.h:118
std::string yybackup
Definition: opt.h:118
std::string yycursor
Definition: opt.h:118
std::string yylessthan
Definition: opt.h:118
std::string yynext
Definition: opt.h:118
std::string yypeek
Definition: opt.h:118
std::string cond_set
Definition: opt.h:118
std::string yyctable
Definition: opt.h:118
std::string state_set
Definition: opt.h:118
std::string yyaccept
Definition: opt.h:118
std::string yybackupctx
Definition: opt.h:118
std::string yyrestorectx
Definition: opt.h:118
std::string yydebug
Definition: opt.h:118
std::string fill
Definition: opt.h:118
std::string yyctxmarker
Definition: opt.h:118
std::string yymarker
Definition: opt.h:118
std::string state_get
Definition: opt.h:118
std::string yyfilllabel
Definition: opt.h:118
std::string yyctype
Definition: opt.h:118

Here is the caller graph for this function:

void re2c::Opt::set_bCaseInsensitive ( bool  arg)
inline

Definition at line 188 of file opt.h.

void re2c::Opt::set_bCaseInverted ( bool  arg)
inline

Definition at line 188 of file opt.h.

void re2c::Opt::set_bEmitYYCh ( bool  arg)
inline

Definition at line 188 of file opt.h.

void re2c::Opt::set_bFlag ( bool  arg)
inline

Definition at line 188 of file opt.h.

void re2c::Opt::set_bNoGenerationDate ( bool  arg)
inline

Definition at line 188 of file opt.h.

void re2c::Opt::set_bUseStateAbort ( bool  arg)
inline

Definition at line 188 of file opt.h.

void re2c::Opt::set_bUseStateNext ( bool  arg)
inline

Definition at line 188 of file opt.h.

void re2c::Opt::set_cFlag ( bool  arg)
inline

Definition at line 188 of file opt.h.

void re2c::Opt::set_cGotoThreshold ( uint32_t  arg)
inline

Definition at line 188 of file opt.h.

void re2c::Opt::set_cond_get ( std::string  arg)
inline

Definition at line 188 of file opt.h.

void re2c::Opt::set_cond_get_naked ( bool  arg)
inline

Definition at line 188 of file opt.h.

void re2c::Opt::set_cond_set ( std::string  arg)
inline

Definition at line 188 of file opt.h.

void re2c::Opt::set_cond_set_arg ( std::string  arg)
inline

Definition at line 188 of file opt.h.

void re2c::Opt::set_cond_set_naked ( bool  arg)
inline

Definition at line 188 of file opt.h.

void re2c::Opt::set_condDivider ( std::string  arg)
inline

Definition at line 188 of file opt.h.

void re2c::Opt::set_condDividerParam ( std::string  arg)
inline

Definition at line 188 of file opt.h.

void re2c::Opt::set_condEnumPrefix ( std::string  arg)
inline

Definition at line 188 of file opt.h.

void re2c::Opt::set_condGoto ( std::string  arg)
inline

Definition at line 188 of file opt.h.

void re2c::Opt::set_condGotoParam ( std::string  arg)
inline

Definition at line 188 of file opt.h.

void re2c::Opt::set_condPrefix ( std::string  arg)
inline

Definition at line 188 of file opt.h.

void re2c::Opt::set_dfa_minimization ( dfa_minimization_t  arg)
inline

Definition at line 188 of file opt.h.

void re2c::Opt::set_dFlag ( bool  arg)
inline

Definition at line 188 of file opt.h.

void re2c::Opt::set_empty_class_policy ( empty_class_policy_t  arg)
inline

Definition at line 188 of file opt.h.

bool re2c::Opt::set_encoding ( Enc::type_t  t)
inline

Definition at line 182 of file opt.h.

182 { return useropt->encoding.set (t); }
bool set(type_t t)
Definition: enc.h:166
Enc encoding
Definition: opt.h:118

Here is the call graph for this function:

void re2c::Opt::set_encoding ( Enc  arg)
inline

Definition at line 188 of file opt.h.

void re2c::Opt::set_encoding_policy ( Enc::policy_t  p)
inline

Definition at line 184 of file opt.h.

184 { useropt->encoding.setPolicy (p); }
Enc encoding
Definition: opt.h:118
void setPolicy(policy_t t)
Definition: enc.h:190

Here is the call graph for this function:

void re2c::Opt::set_FFlag ( bool  arg)
inline

Definition at line 188 of file opt.h.

void re2c::Opt::set_fFlag ( bool  arg)
inline

Definition at line 188 of file opt.h.

void re2c::Opt::set_fill ( std::string  arg)
inline

Definition at line 188 of file opt.h.

void re2c::Opt::set_fill_arg ( std::string  arg)
inline

Definition at line 188 of file opt.h.

void re2c::Opt::set_fill_arg_use ( bool  arg)
inline

Definition at line 188 of file opt.h.

void re2c::Opt::set_fill_check ( bool  arg)
inline

Definition at line 188 of file opt.h.

void re2c::Opt::set_fill_naked ( bool  arg)
inline

Definition at line 188 of file opt.h.

void re2c::Opt::set_fill_use ( bool  arg)
inline

Definition at line 188 of file opt.h.

void re2c::Opt::set_gFlag ( bool  arg)
inline

Definition at line 188 of file opt.h.

void re2c::Opt::set_header_file ( const char *  arg)
inline

Definition at line 188 of file opt.h.

void re2c::Opt::set_iFlag ( bool  arg)
inline

Definition at line 188 of file opt.h.

void re2c::Opt::set_indString ( std::string  arg)
inline

Definition at line 188 of file opt.h.

void re2c::Opt::set_input_api ( InputAPI::type_t  t)
inline

Definition at line 185 of file opt.h.

185 { useropt->input_api.set (t); }
InputAPI input_api
Definition: opt.h:118
void set(type_t t)
Definition: input_api.cc:20

Here is the call graph for this function:

void re2c::Opt::set_input_api ( InputAPI  arg)
inline

Definition at line 188 of file opt.h.

void re2c::Opt::set_labelPrefix ( std::string  arg)
inline

Definition at line 188 of file opt.h.

void re2c::Opt::set_rFlag ( bool  arg)
inline

Definition at line 188 of file opt.h.

void re2c::Opt::set_sFlag ( bool  arg)
inline

Definition at line 188 of file opt.h.

void re2c::Opt::set_state_get ( std::string  arg)
inline

Definition at line 188 of file opt.h.

void re2c::Opt::set_state_get_naked ( bool  arg)
inline

Definition at line 188 of file opt.h.

void re2c::Opt::set_state_set ( std::string  arg)
inline

Definition at line 188 of file opt.h.

void re2c::Opt::set_state_set_arg ( std::string  arg)
inline

Definition at line 188 of file opt.h.

void re2c::Opt::set_state_set_naked ( bool  arg)
inline

Definition at line 188 of file opt.h.

void re2c::Opt::set_target ( opt_t::target_t  arg)
inline

Definition at line 188 of file opt.h.

void re2c::Opt::set_tFlag ( bool  arg)
inline

Definition at line 188 of file opt.h.

void re2c::Opt::set_topIndent ( uint32_t  arg)
inline

Definition at line 188 of file opt.h.

void re2c::Opt::set_version ( bool  arg)
inline

Definition at line 188 of file opt.h.

void re2c::Opt::set_yyaccept ( std::string  arg)
inline

Definition at line 188 of file opt.h.

void re2c::Opt::set_yybackup ( std::string  arg)
inline

Definition at line 188 of file opt.h.

void re2c::Opt::set_yybackupctx ( std::string  arg)
inline

Definition at line 188 of file opt.h.

void re2c::Opt::set_yybm ( std::string  arg)
inline

Definition at line 188 of file opt.h.

void re2c::Opt::set_yybmHexTable ( bool  arg)
inline

Definition at line 188 of file opt.h.

void re2c::Opt::set_yych ( std::string  arg)
inline

Definition at line 188 of file opt.h.

void re2c::Opt::set_yychConversion ( bool  arg)
inline

Definition at line 188 of file opt.h.

void re2c::Opt::set_yycondtype ( std::string  arg)
inline

Definition at line 188 of file opt.h.

void re2c::Opt::set_yyctable ( std::string  arg)
inline

Definition at line 188 of file opt.h.

void re2c::Opt::set_yyctxmarker ( std::string  arg)
inline

Definition at line 188 of file opt.h.

void re2c::Opt::set_yyctype ( std::string  arg)
inline

Definition at line 188 of file opt.h.

void re2c::Opt::set_yycursor ( std::string  arg)
inline

Definition at line 188 of file opt.h.

void re2c::Opt::set_yydebug ( std::string  arg)
inline

Definition at line 188 of file opt.h.

void re2c::Opt::set_yyfilllabel ( std::string  arg)
inline

Definition at line 188 of file opt.h.

void re2c::Opt::set_yylessthan ( std::string  arg)
inline

Definition at line 188 of file opt.h.

void re2c::Opt::set_yylimit ( std::string  arg)
inline

Definition at line 188 of file opt.h.

void re2c::Opt::set_yymarker ( std::string  arg)
inline

Definition at line 188 of file opt.h.

void re2c::Opt::set_yynext ( std::string  arg)
inline

Definition at line 188 of file opt.h.

void re2c::Opt::set_yypeek ( std::string  arg)
inline

Definition at line 188 of file opt.h.

void re2c::Opt::set_yyrestore ( std::string  arg)
inline

Definition at line 188 of file opt.h.

void re2c::Opt::set_yyrestorectx ( std::string  arg)
inline

Definition at line 188 of file opt.h.

void re2c::Opt::set_yyskip ( std::string  arg)
inline

Definition at line 188 of file opt.h.

void re2c::Opt::set_yytarget ( std::string  arg)
inline

Definition at line 188 of file opt.h.

bool re2c::Opt::source ( const char *  s)

Definition at line 266 of file opt.cc.

267 {
268  if (source_file)
269  {
270  error ("multiple source files: %s, %s", source_file, s);
271  return false;
272  }
273  else
274  {
275  source_file = s;
276  return true;
277  }
278 }
void error(const char *fmt,...)
Definition: msg.cc:10
const char * source_file
Definition: opt.h:153

Here is the call graph for this function:

void re2c::Opt::unset_encoding ( Enc::type_t  t)
inline

Definition at line 183 of file opt.h.

183 { useropt->encoding.unset (t); }
void unset(type_t)
Definition: enc.h:179
Enc encoding
Definition: opt.h:118

Here is the call graph for this function:

std::string re2c::Opt::yychConversion ( )
inline

Definition at line 193 of file opt.h.

194  {
195  return realopt->yychConversion
196  ? "(" + realopt->yyctype + ")"
197  : "";
198  }
bool yychConversion
Definition: opt.h:118
std::string yyctype
Definition: opt.h:118

Here is the caller graph for this function:

Member Data Documentation

const opt_t re2c::Opt::baseopt
static

Definition at line 151 of file opt.h.

const char* re2c::Opt::output_file

Definition at line 154 of file opt.h.

const char* re2c::Opt::source_file

Definition at line 153 of file opt.h.


The documentation for this struct was generated from the following files: