50 Token(
const char *key_,
const char *val_) :
56 content.val = val_ ? strdup(val_) :
NULp;
64 const char *
get_key()
const {
return key; }
99 if (!head) head = tok;
108 bool empty()
const {
return !head; }
130 bool empty()
const {
return !head; }
132 if (!head) head = cmd;
154 content.sub = block_;
156 content.sub->set_block_token(
this);
161 if (isBlock)
delete content.sub;
162 else free(content.val);
170 #error aisc_token.h included twice
171 #endif // AISC_TOKEN_H
const TokenList * parent_list() const
void set_parent(TokenList *list)
void append(TokenList *cmd)
Token(const char *key_, const char *val_)
const TokenListBlock * parent_block() const
void set_block_token(Token *tok)
void set_parent(TokenListBlock *block)
const TokenList * next_list() const
const TokenList * first_list() const
const char * get_key() const
const Token * next_token() const
const char * get_value() const
const Token * first_token() const
const Token * parent_block_token() const
const Token * first_token() const
const Token * block_token() const
#define aisc_assert(cond)
const TokenListBlock * get_content() const
void append(TokenList *cmd)