35#ifdef DEBUG_NODE_TESTS_ENABLED
53#ifdef DEBUG_NODE_TESTS_ENABLED
70#ifdef DEBUG_NODE_TESTS_ENABLED
79#ifdef DEBUG_NODE_TESTS_ENABLED
95#ifdef DEBUG_NODE_TESTS_ENABLED
216 char *result =
palloc(length + 1);
221 if (*
token ==
'\\' && length > 1)
230#define RIGHT_PAREN (1000000 + 1)
231#define LEFT_PAREN (1000000 + 2)
232#define LEFT_BRACE (1000000 + 3)
233#define OTHER_TOKEN (1000000 + 4)
281 else if (*
token ==
'(')
283 else if (*
token ==
')')
285 else if (*
token ==
'{')
287 else if ((length == 4 &&
strncmp(
token,
"true", 4) == 0) ||
290 else if (*
token ==
'"' && length > 1 &&
token[length - 1] ==
'"')
341 elog(
ERROR,
"did not find '}' at end of input node");
357 elog(
ERROR,
"unterminated List structure");
368 elog(
ERROR,
"unterminated List structure");
373 elog(
ERROR,
"unrecognized integer: \"%.*s\"",
389 elog(
ERROR,
"unterminated List structure");
394 elog(
ERROR,
"unrecognized OID: \"%.*s\"",
410 elog(
ERROR,
"unterminated List structure");
415 elog(
ERROR,
"unrecognized Xid: \"%.*s\"",
433 elog(
ERROR,
"unterminated Bitmapset structure");
438 elog(
ERROR,
"unrecognized integer: \"%.*s\"",
455 elog(
ERROR,
"unterminated List structure");
462 elog(
ERROR,
"unexpected right parenthesis");
Bitmapset * bms_add_member(Bitmapset *a, int x)
List * lappend(List *list, void *datum)
List * lappend_xid(List *list, TransactionId datum)
List * lappend_int(List *list, int datum)
List * lappend_oid(List *list, Oid datum)
void * stringToNode(const char *str)
char * debackslash(const char *token, int length)
static NodeTag nodeTokenType(const char *token, int length)
static void * stringToNodeInternal(const char *str, bool restore_loc_fields)
void * nodeRead(const char *token, int tok_len)
const char * pg_strtok(int *length)
static const char * pg_strtok_ptr
Node * parseNodeString(void)
int strtoint(const char *pg_restrict str, char **pg_restrict endptr, int base)
Integer * makeInteger(int i)
String * makeString(char *str)
BitString * makeBitString(char *str)
Float * makeFloat(char *numericStr)
Boolean * makeBoolean(bool val)