OpenASIP 2.2
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | List of all members
FUTerm Class Reference

#include <ParserStructs.hh>

Collaboration diagram for FUTerm:
Collaboration graph

Public Member Functions

std::string toString () const
 

Public Attributes

bool part3Used
 Is operation part of the term used.
 
std::string part1
 Unit name.
 
std::string part2
 Port name.
 
std::string part3
 Operation name.
 

Detailed Description

Parsed data of function unit operand port or special register reference.

Form: unit.port[.operation]

Definition at line 76 of file ParserStructs.hh.

Member Function Documentation

◆ toString()

std::string FUTerm::toString ( ) const
inline

String representation of term for error message generation.

Definition at line 90 of file ParserStructs.hh.

90 {
91 std::string retVal = part1 + "." + part2;
92 if (part3Used) {
93 retVal += "." + part3;
94 }
95 return retVal;
96 }
std::string part3
Operation name.
std::string part2
Port name.
std::string part1
Unit name.
bool part3Used
Is operation part of the term used.

References part1, part2, part3, and part3Used.

Referenced by RegisterTerm::toString().

Member Data Documentation

◆ part1

std::string FUTerm::part1

◆ part2

std::string FUTerm::part2

◆ part3

std::string FUTerm::part3

◆ part3Used

bool FUTerm::part3Used

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