102 Token(
const std::string &strValue);
113 Token(
const std::string &strValue,
114 const size_t lineNum,
115 const size_t posStart,
116 const size_t posEnd);
170 void position(
size_t &posStart,
size_t &posEnd)
const 195 const std::string &strLine,
196 const bool bLoc =
false);
227 #endif // _RNR_TOKEN_H virtual ~Token()
Destructor.
void position(size_t &posStart, size_t &posEnd) const
Return input line position where token was located.
const size_t linenum() const
Return input line number where token was located.
size_t m_lineNum
line number
size_t m_posEnd
line end position of token
size_t m_posStart
line start position of token
std::vector< Token > TokenVec
vector of tokens type
std::string m_strValue
token string value
const std::string & value() const
Return token string.
Token()
Default constructor.
Token & operator=(const Token &rhs)
Assignment operator.
Parsed token container class.
friend std::ostream & operator<<(std::ostream &os, const Token &tok)
Insert object into output stream.
std::ostream & printAnnotated(std::ostream &os, const std::string &strLine, const bool bLoc=false)
Output annotated token embedded location in the input line.