|
Bash++
Bash++ compiler internal documentation
|
A class representing a token in the Bash++ AST. Tokens store their value along with line and column information. More...
#include <Token.h>
Public Member Functions | |
| Token ()=default | |
| Token (const T &value, uint32_t line, uint32_t column) | |
| const T & | getValue () const |
| uint32_t | getLine () const |
| uint32_t | getCharPositionInLine () const |
| void | setValue (const T &new_value) |
| void | setLine (uint32_t new_line) |
| void | setCharPositionInLine (uint32_t new_column) |
| operator T () const | |
| void | operator= (const T &new_value) |
| void | operator+= (const T &append_value) |
| bool | operator== (const T &other) const |
| bool | operator!= (const T &other) const |
Private Attributes | |
| T | value |
| uint32_t | line |
| uint32_t | column |
Friends | |
| std::ostream & | operator<< (std::ostream &os, const Token< T > &token) |
A class representing a token in the Bash++ AST. Tokens store their value along with line and column information.
| T | The type of the token's value. |
|
default |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
friend |
|
private |
|
private |
|
private |