#include <tinyap.h>
Public Member Functions | |
AstNode (ast_node_t ptr) | |
AstNode () | |
~AstNode () | |
bool | isNil () const |
bool | isList () const |
bool | isOp () const |
bool | isString () const |
const char * | getString () const |
AstNode * | getOperand (const int n) const |
int | getOperandCount () const |
const char * | getOperator () const |
AstNode * | getElement (const int n) const |
const char * | toString () const |
void | toFile (const char *fnam) const |
int | getRow () const |
int | getCol () const |
ast_node_t | getHandle () const |
Definition at line 312 of file tinyap.h.
TinyaP::AstNode::AstNode | ( | ast_node_t | ptr | ) | [inline] |
bool TinyaP::AstNode::isNil | ( | ) | const [inline] |
Definition at line 320 of file tinyap.h.
References tinyap_node_is_nil().
bool TinyaP::AstNode::isList | ( | ) | const [inline] |
Definition at line 322 of file tinyap.h.
References tinyap_node_is_list().
bool TinyaP::AstNode::isOp | ( | ) | const [inline] |
Definition at line 324 of file tinyap.h.
References tinyap_list_get_element(), tinyap_node_is_list(), and tinyap_node_is_string().
bool TinyaP::AstNode::isString | ( | ) | const [inline] |
Definition at line 326 of file tinyap.h.
References tinyap_node_is_string().
const char* TinyaP::AstNode::getString | ( | ) | const [inline] |
Definition at line 328 of file tinyap.h.
References tinyap_node_get_string().
AstNode* TinyaP::AstNode::getOperand | ( | const int | n | ) | const [inline] |
const char* TinyaP::AstNode::getOperator | ( | ) | const [inline] |
Definition at line 334 of file tinyap.h.
References tinyap_list_get_element(), and tinyap_node_get_string().
AstNode* TinyaP::AstNode::getElement | ( | const int | n | ) | const [inline] |
const char* TinyaP::AstNode::toString | ( | ) | const [inline] |
Definition at line 338 of file tinyap.h.
References tinyap_serialize_to_string().
void TinyaP::AstNode::toFile | ( | const char * | fnam | ) | const [inline] |
Definition at line 340 of file tinyap.h.
References tinyap_serialize_to_file().
int TinyaP::AstNode::getRow | ( | ) | const [inline] |
Definition at line 343 of file tinyap.h.
References tinyap_node_get_row().
int TinyaP::AstNode::getCol | ( | ) | const [inline] |
Definition at line 346 of file tinyap.h.
References tinyap_node_get_col().
ast_node_t TinyaP::AstNode::getHandle | ( | ) | const [inline] |
Definition at line 349 of file tinyap.h.
Referenced by TinyaP::Parser::setGrammarAST().