|
BashSpark
|
Base class for all parser nodes. More...
#include <shell_node.h>

Public Member Functions | |
| virtual | ~shell_node ()=default |
| Virtual default destructor for polymorphic deletion. | |
| shell_node_type | get_type () const noexcept |
| Get the node type. | |
| std::size_t | get_pos () const noexcept |
| Get node position in the original input stream. | |
Protected Member Functions | |
| shell_node (const shell_node_type nType, const std::size_t nPos) | |
| Protected constructor used by derived classes. | |
Protected Attributes | |
| const shell_node_type | m_nType |
| Node type. | |
| const std::size_t | m_nPos |
| Position in the input stream. | |
Base class for all parser nodes.
Holds the node type and its position in the source stream. It is an abstract base for both expandable and evaluable node kinds.
|
inlineprotected |
Protected constructor used by derived classes.
| nType | Node type. |
| nPos | Position in source stream (character offset). |
|
inlinenoexcept |
Get node position in the original input stream.
|
inlinenoexcept |
Get the node type.