Functions | |
KvParseHandle * | kvaToolsParseCreate (void) |
void | kvaToolsParseDestroy (KvParseHandle *h) |
void | kvaToolsExprGetErrorString (int errCode, char *s, size_t bufsiz) |
int | kvaToolsParseExpr (KvParseHandle *h, char *expr, Token **t) |
int | kvaToolsFreeExpr (KvParseHandle *h, Token *t) |
int | kvaToolsDumpExpr (KvParseHandle *h, Token *t) |
int | kvaToolsExprHasErrors (KvParseHandle *h, Token *t) |
int | kvaToolsExprGetError (KvParseHandle *h, Token *t, int *errCode, int *pos) |
int kvaToolsDumpExpr | ( | KvParseHandle * | h, |
Token * | t | ||
) |
Dump Token tree contents if debug is enabled, otherwise do nothing (deprecated).
[in] | h | KvParseHandle to parser. |
[in] | t | Pointer to Token t. |
int kvaToolsExprGetError | ( | KvParseHandle * | h, |
Token * | t, | ||
int * | errCode, | ||
int * | pos | ||
) |
Returns errorcode of first error found in Token tree (deprecated).
[in] | h | KvParseHandle to parser. |
[in] | t | Pointer to Token t. |
[out] | errCode | Error code of first found error token. |
[out] | pos | Position of first found error token. |
void kvaToolsExprGetErrorString | ( | int | errCode, |
char * | s, | ||
size_t | bufsiz | ||
) |
Get a human readable description of errors that occur when parsing a postfix expression (deprecated).
[in] | errCode | Error code from parser. |
[out] | s | Buffer to receive error message. |
[in] | bufsiz | Buffer size in bytes. |
int kvaToolsExprHasErrors | ( | KvParseHandle * | h, |
Token * | t | ||
) |
Returns True if Token tree representation of trigger expression has errors (deprecated).
[in] | h | KvParseHandle to parser. |
[in] | t | Pointer to Token t. |
int kvaToolsFreeExpr | ( | KvParseHandle * | h, |
Token * | t | ||
) |
Do nothing (deprecated).
[in] | h | KvParseHandle to parser. |
[in] | t | Pointer to Token t. |
KvParseHandle* kvaToolsParseCreate | ( | void | ) |
Create a parser, the start of a linked list of Tokens (deprecated).
void kvaToolsParseDestroy | ( | KvParseHandle * | h | ) |
Destroy a parser with handle h and any linked Tokens (deprecated).
[in] | h | KvParseHandle to parser to be destroyed. |
int kvaToolsParseExpr | ( | KvParseHandle * | h, |
char * | expr, | ||
Token ** | t | ||
) |
Parse postifix expression expr and return a Token tree representation (deprecated).
[in] | h | KvParseHandle to parser. |
[out] | expr | String representation of postfix expression. |
[in] | t | Pointer to Token tree. |