/** Display an invalid tag error message. */ void InvalidTag(const TokenNode *tp, TokenType parent) { ParseError(tp, _("invalid tag in %s: %s"), GetTokenTypeName(parent), GetTokenName(tp)); }
/** Get a string representation of a token. */ const char *GetTokenName(const TokenNode *tp) { if(tp->invalidName) { return tp->invalidName; } else { return GetTokenTypeName(tp->type); } }