71 string stackstr(
sizeof(val),
'0');
72 memcpy(&stackstr[0], &val,
sizeof(val));
78 printf(
"%s %i pushstack float %Lf\n", __FILE__, __LINE__, val);
79 string stackstr(
sizeof(val),
'0');
80 memcpy(&stackstr[0], &val,
sizeof(val));
96 string str(&operandtype, 1);
102 string str(1 +
sizeof(val),
char(0));
103 str[0] = operandtype;
104 memcpy(&str[1], &val,
sizeof(val));
110 string str(1 +
sizeof(val),
char(0));
111 str[0] = operandtype;
112 memcpy(&str[1], &val,
sizeof(val));
118 string str(1 + strlen(val),
char(0));
119 str[0] = operandtype;
120 memcpy(&str[1], val, strlen(val));
126 string str(2 + strlen(val),
char(0));
128 str[1] = aggregatetype;
129 memcpy(&str[2], val, strlen(val));
143 memcpy(&rv, &val[0],
sizeof(rv));
150 memcpy(&rv, &val[0],
sizeof(rv));
200 printf(
"%s %i anomaly %i\n", __FILE__, __LINE__, item.
type);
208 class Ast *rootnode = NULL;
209 class Ast *currentnode = NULL;
213 printf(
"%s %i anomaly\n", __FILE__, __LINE__);
230 rootnode =
new class Ast(NULL,
231 (operatortypes_e)getintval(item.val));
232 currentnode = rootnode;
236 rootnode =
new class Ast(NULL, item.val);
241 printf(
"%s %i anomaly %i\n", __FILE__, __LINE__, item.type);
251 if (currentnode->
parent == NULL)
257 currentnode = currentnode->
parent;
262 printf(
"%s %i anomaly\n", __FILE__, __LINE__);
268 class Ast *newnode=NULL;
273 newnode =
new class Ast(currentnode,
274 (operatortypes_e)getintval(item.val));
275 newnode->
parent = currentnode;
286 currentnode = newnode;
290 newnode =
new class Ast(currentnode, item.val);
304 newnode->
operand.append(
sizeof(sq),
char(0));
305 memcpy(&newnode->
operand[1], &sq,
sizeof(sq));
322 printf(
"%s %i anomaly %i\n", __FILE__, __LINE__, item.type);
342 printf(
"%s %i anomaly %i\n", __FILE__, __LINE__, item.
type);
384 memcpy(&arg, &
parsedStack.top().val[0],
sizeof(arg));
389 printf(
"NOOP (anomaly) ");
393 printf(
"CONCATENATION ");
489 printf(
"BETWEENAND ");
518 printf(
"subquery, ");
532 printf(
"boolean true\n");
536 printf(
"boolean false\n");
622 printf(
"%s %i anomaly %i\n", __FILE__, __LINE__, item.
type);
701 for (int64_t n=0; n < numcolumns; n++)
705 printf(
"%s %i anomaly parsedStack empty\n", __FILE__, __LINE__);
722 printf(
"%s %i anomaly %i\n", __FILE__, __LINE__, item.
type);
739 printf(
"%s %i anomaly %i\n", __FILE__, __LINE__, item.
type);
744 printf(
"%s %i anomaly parsedStack empty\n", __FILE__, __LINE__);
762 printf(
"%s %i anomaly %i\n", __FILE__, __LINE__, item.
type);
767 printf(
"%s %i anomaly parsedStack empty\n", __FILE__, __LINE__);
792 printf(
"%s %i anomaly %c\n", __FILE__, __LINE__, item.
val[0]);
814 printf(
"%s %i anomaly %i\n", __FILE__, __LINE__, item.
type);
819 printf(
"%s %i anomaly parsedStack empty\n", __FILE__, __LINE__);