Lines Matching refs:B
146 varline ::= key(A) ASSIGN expression(B). { in key()
148 buffer_copy_string_buffer(B->key, A); in key()
154 } else if (NULL == array_get_element(ctx->current->value, B->key->ptr)) { in key()
155 array_insert_unique(ctx->current->value, B); in key()
156 B = NULL; in key()
160 ctx->current->key->ptr, B->key->ptr); in key()
162 B->free(B); in key()
163 B = NULL; in key()
170 varline ::= key(A) APPEND expression(B). { in key()
181 du = configparser_merge_data(du, B); in key()
189 B->free(B); in key()
191 du = configparser_merge_data(du, B); in key()
199 B->free(B); in key()
201 buffer_copy_string_buffer(B->key, A); in key()
202 array_insert_unique(ctx->current->value, B); in key()
206 B = NULL; in key()
209 key(A) ::= LKEY(B). { in key()
210 if (strchr(B->ptr, '.') == NULL) { in key()
212 buffer_append_string_buffer(A, B); in key()
213 buffer_free(B); in key()
214 B = NULL; in key()
216 A = B; in key()
217 B = NULL; in key()
221 expression(A) ::= expression(B) PLUS value(C). { in expression()
222 A = configparser_merge_data(B, C); in expression()
226 B = NULL; in expression()
231 expression(A) ::= value(B). { in expression()
232 A = B; in expression()
233 B = NULL; in expression()
236 value(A) ::= key(B). { in value()
238 if (strncmp(B->ptr, "env.", sizeof("env.") - 1) == 0) { in value()
241 if (NULL != (env = getenv(B->ptr + 4))) { in value()
248 fprintf(stderr, "Undefined env variable: %s\n", B->ptr + 4); in value()
251 } else if (NULL == (A = configparser_get_variable(ctx, B))) { in value()
252 fprintf(stderr, "Undefined config variable: %s\n", B->ptr); in value()
259 buffer_free(B); in value()
260 B = NULL; in value()
263 value(A) ::= STRING(B). { in value()
265 buffer_copy_string_buffer(((data_string *)(A))->value, B); in value()
266 buffer_free(B); in value()
267 B = NULL; in value()
270 value(A) ::= INTEGER(B). { in value()
272 ((data_integer *)(A))->value = strtol(B->ptr, NULL, 10); in value()
273 buffer_free(B); in value()
274 B = NULL; in value()
276 value(A) ::= array(B). { in value()
279 ((data_array *)(A))->value = B; in value()
280 B = NULL; in value()
285 array(A) ::= LPARAN aelements(B) RPARAN. { in array()
286 A = B; in array()
287 B = NULL; in array()
290 aelements(A) ::= aelements(C) COMMA aelement(B). { in aelements()
291 if (buffer_is_empty(B->key) || in aelements()
292 NULL == array_get_element(C, B->key->ptr)) { in aelements()
293 array_insert_unique(C, B); in aelements()
294 B = NULL; in aelements()
297 B->key->ptr); in aelements()
299 B->free(B); in aelements()
300 B = NULL; in aelements()
312 aelements(A) ::= aelement(B). { in aelements()
314 array_insert_unique(A, B); in aelements()
315 B = NULL; in aelements()
318 aelement(A) ::= expression(B). { in aelement()
319 A = B; in aelement()
320 B = NULL; in aelement()
322 aelement(A) ::= stringop(B) ARRAY_ASSIGN expression(C). { in aelement()
323 buffer_copy_string_buffer(C->key, B); in aelement()
324 buffer_free(B); in aelement()
325 B = NULL; in aelement()
352 condlines(A) ::= condlines(B) eols ELSE condline(C). { in condlines()
353 if (B->context_ndx >= C->context_ndx) { in condlines()
357 C->prev = B; in condlines()
358 B->next = C; in condlines()
360 B = NULL; in condlines()
364 condlines(A) ::= condline(B). { in condlines()
365 A = B; in condlines()
366 B = NULL; in condlines()
380 context ::= DOLLAR SRVVARNAME(B) LBRACKET stringop(C) RBRACKET cond(E) expression(D). { in SRVVARNAME() argument
410 buffer_append_string_buffer(b, B); in SRVVARNAME()
446 buffer_copy_string_buffer(dc->comp_key, B); in SRVVARNAME()
504 B->ptr, C->ptr); in SRVVARNAME()
512 B->ptr, C->ptr); in SRVVARNAME()
522 buffer_free(B); in SRVVARNAME()
523 B = NULL; in SRVVARNAME()
542 stringop(A) ::= expression(B). { in stringop()
545 if (B->type == TYPE_STRING) { in stringop()
546 A = buffer_init_buffer(((data_string*)B)->value); in stringop()
547 } else if (B->type == TYPE_INTEGER) { in stringop()
549 buffer_copy_long(A, ((data_integer *)B)->value); in stringop()
555 B->free(B); in stringop()
556 B = NULL; in stringop()