src
Public Types | Public Member Functions | Public Attributes | List of all members
re2c::Action Class Reference

#include <action.h>

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

Public Types

enum  type_t {
  MATCH, INITIAL, SAVE, MOVE,
  ACCEPT, RULE
}
 

Public Member Functions

 Action ()
 
 ~Action ()
 
void set_initial (label_t label, bool used_marker)
 
void set_save (uint32_t save)
 
void set_move ()
 
void set_accept (const accept_t *accepts)
 
void set_rule (const RuleOp *const rule)
 

Public Attributes

enum re2c::Action::type_t type
 
union {
   Initial *   initial
 
   uint32_t   save
 
   const accept_t *   accepts
 
   const RuleOp *   rule
 
info
 

Detailed Description

Definition at line 30 of file action.h.

Member Enumeration Documentation

Enumerator
MATCH 
INITIAL 
SAVE 
MOVE 
ACCEPT 
RULE 

Definition at line 33 of file action.h.

34  {
35  MATCH,
36  INITIAL,
37  SAVE,
38  MOVE,
39  ACCEPT,
40  RULE
41  } type;
enum re2c::Action::type_t type

Constructor & Destructor Documentation

re2c::Action::Action ( )
inline

Definition at line 51 of file action.h.

52  : type (MATCH)
53  , info ()
54  {}
union re2c::Action::@5 info
enum re2c::Action::type_t type
re2c::Action::~Action ( )
inline

Definition at line 55 of file action.h.

56  {
57  clear ();
58  }

Member Function Documentation

void re2c::Action::set_accept ( const accept_t accepts)
inline

Definition at line 76 of file action.h.

77  {
78  clear ();
79  type = ACCEPT;
80  info.accepts = accepts;
81  }
const accept_t * accepts
Definition: action.h:46
union re2c::Action::@5 info
enum re2c::Action::type_t type

Here is the caller graph for this function:

void re2c::Action::set_initial ( label_t  label,
bool  used_marker 
)
inline

Definition at line 59 of file action.h.

60  {
61  clear ();
62  type = INITIAL;
63  info.initial = new Initial (label, used_marker);
64  }
union re2c::Action::@5 info
enum re2c::Action::type_t type

Here is the caller graph for this function:

void re2c::Action::set_move ( )
inline

Definition at line 71 of file action.h.

72  {
73  clear ();
74  type = MOVE;
75  }
enum re2c::Action::type_t type
void re2c::Action::set_rule ( const RuleOp *const  rule)
inline

Definition at line 82 of file action.h.

83  {
84  clear ();
85  type = RULE;
86  info.rule = rule;
87  }
union re2c::Action::@5 info
const RuleOp * rule
Definition: action.h:47
enum re2c::Action::type_t type

Here is the caller graph for this function:

void re2c::Action::set_save ( uint32_t  save)
inline

Definition at line 65 of file action.h.

66  {
67  clear ();
68  type = SAVE;
69  info.save = save;
70  }
union re2c::Action::@5 info
uint32_t save
Definition: action.h:45
enum re2c::Action::type_t type

Here is the caller graph for this function:

Member Data Documentation

const accept_t* re2c::Action::accepts

Definition at line 46 of file action.h.

union { ... } re2c::Action::info
Initial* re2c::Action::initial

Definition at line 44 of file action.h.

const RuleOp* re2c::Action::rule

Definition at line 47 of file action.h.

uint32_t re2c::Action::save

Definition at line 45 of file action.h.

enum re2c::Action::type_t re2c::Action::type

The documentation for this class was generated from the following file: