OpenASIP  2.0
Public Member Functions | Public Attributes | List of all members
TokenizerActor Struct Reference

#include <OperationDAGLanguageParser.hh>

Collaboration diagram for TokenizerActor:
Collaboration graph

Public Member Functions

 TokenizerActor (TokenizerData &data, TokenizerData::OperationID id)
 
void operator() (const char *start, const char *end) const
 

Public Attributes

TokenizerDatadata_
 
TokenizerData::OperationID id_
 

Detailed Description

Spirit actor for adding data to TokenizerData during parsing.

Definition at line 715 of file OperationDAGLanguageParser.hh.

Constructor & Destructor Documentation

◆ TokenizerActor()

TokenizerActor::TokenizerActor ( TokenizerData data,
TokenizerData::OperationID  id 
)
inline

Definition at line 717 of file OperationDAGLanguageParser.hh.

717  :
718  data_(data), id_(id) { }

Member Function Documentation

◆ operator()()

void TokenizerActor::operator() ( const char *  start,
const char *  end 
) const
inline

Definition at line 723 of file OperationDAGLanguageParser.hh.

723  {
724  std::string temp(start,end);
725  data_.addToken(start, end, id_, temp);
726 
727  // std::cerr << "found: " << setw(10) << TokenizerData::idString(id_)
728  // << " " << temp << std::endl;
729  }

References TokenizerData::addToken().

Here is the call graph for this function:

Member Data Documentation

◆ data_

TokenizerData& TokenizerActor::data_

Definition at line 720 of file OperationDAGLanguageParser.hh.

◆ id_

TokenizerData::OperationID TokenizerActor::id_

Definition at line 721 of file OperationDAGLanguageParser.hh.


The documentation for this struct was generated from the following file:
TokenizerActor::data_
TokenizerData & data_
Definition: OperationDAGLanguageParser.hh:720
TokenizerActor::id_
TokenizerData::OperationID id_
Definition: OperationDAGLanguageParser.hh:721
TokenizerData::addToken
void addToken(const char *start, const char *end, OperationID id, std::string strVal)
Definition: OperationDAGLanguageParser.hh:636