Lines Matching refs:A
372 metaline ::= condlines(A) EOL. { A = NULL; } in condlines() argument
401 varline ::= key(A) ASSIGN expression(B). { in key() argument
403 buffer_copy_buffer(&B->key, A); in key()
404 if (strncmp(A->ptr, "env.", sizeof("env.") - 1) == 0) { in key()
407 ctx->current->key.ptr, A->ptr); in key()
419 buffer_free(A); in key()
420 A = NULL; in key()
425 varline ::= key(A) FORCE_ASSIGN expression(B). { in key() argument
427 if (strncmp(A->ptr, "env.", sizeof("env.") - 1) == 0) { in key()
430 ctx->current->key.ptr, A->ptr); in key()
433 buffer_copy_buffer(&B->key, A); in key()
438 buffer_free(A); in key()
439 A = NULL; in key()
444 varline ::= key(A) APPEND expression(B). { in key() argument
449 if (strncmp(A->ptr, "env.", sizeof("env.") - 1) == 0) { in key()
452 ctx->current->key.ptr, A->ptr); in key()
454 …u = array_extract_element_klen(vars, BUF_PTR_LEN(A))) || NULL != (du = configparser_get_variable(c… in key()
460 buffer_copy_buffer(&du->key, A); in key()
464 buffer_copy_buffer(&B->key, A); in key()
469 buffer_free(A); in key()
470 A = NULL; in key()
475 key(A) ::= LKEY(B). { in key() argument
477 buffer_copy_string((A = buffer_init()), "var."); in key()
478 buffer_append_string_buffer(A, B); in key()
480 A = B; in key()
487 expression(A) ::= expression(B) PLUS value(C). { in expression() argument
488 A = NULL; in expression()
490 A = configparser_merge_data(B, C); in expression()
492 if (NULL == A) { in expression()
502 expression(A) ::= value(B). { in expression() argument
503 A = B; in expression()
507 value(A) ::= key(B). { in value() argument
508 A = NULL; in value()
517 A = (data_unset *)ds; in value()
523 } else if (NULL == (A = configparser_get_variable(ctx, B))) { in value()
532 value(A) ::= STRING(B). { in value() argument
533 A = (data_unset *)array_data_string_init(); in value()
535 memcpy(&((data_string *)A)->value, B, sizeof(*B)); in value()
540 value(A) ::= INTEGER(B). { in value() argument
542 A = (data_unset *)array_data_integer_init(); in value()
544 ((data_integer *)(A))->value = strtol(B->ptr, &endptr, 10); in value()
554 value(A) ::= array(B). { in value() argument
555 A = (data_unset *)array_data_array_init(); in value()
557 memcpy(&((data_array *)(A))->value, B, sizeof(*B)); in value()
561 array(A) ::= LPARAN RPARAN. { in array() argument
562 A = array_init(8); in array()
564 array(A) ::= LPARAN aelements(B) RPARAN. { in array() argument
565 A = B; in array()
569 aelements(A) ::= aelements(C) COMMA aelement(B). { in aelements() argument
570 A = NULL; in aelements()
582 A = C; in aelements()
591 aelements(A) ::= aelements(C) COMMA. { in aelements() argument
592 A = C; in aelements()
596 aelements(A) ::= aelement(B). { in aelements() argument
597 A = NULL; in aelements()
599 A = array_init(4); in aelements()
600 array_insert_unique(A, B); in aelements()
607 aelement(A) ::= expression(B). { in aelement() argument
608 A = B; in aelement()
611 aelement(A) ::= stringop(B) ARRAY_ASSIGN expression(C). { in aelement() argument
612 A = NULL; in aelement()
616 A = C; in aelement()
639 condlines(A) ::= condlines(B) eols ELSE condline(C). { in condlines() argument
640 A = NULL; in condlines()
652 A = C; in condlines()
658 condlines(A) ::= condlines(B) eols ELSE cond_else(C). { in condlines() argument
659 A = NULL; in condlines()
722 A = C; in condlines()
728 condlines(A) ::= condline(B). { in condlines() argument
729 A = B; in condlines()
733 condline(A) ::= context LCURLY metalines RCURLY. { in condline() argument
734 A = NULL; in condline()
736 A = configparser_pop(ctx); in condline()
740 cond_else(A) ::= context_else LCURLY metalines RCURLY. { in cond_else() argument
741 A = NULL; in cond_else()
743 A = configparser_pop(ctx); in cond_else()
772 cond(A) ::= EQ. { in cond() argument
773 A = CONFIG_COND_EQ; in cond()
775 cond(A) ::= MATCH. { in cond() argument
776 A = CONFIG_COND_MATCH; in cond()
778 cond(A) ::= NE. { in cond() argument
779 A = CONFIG_COND_NE; in cond()
781 cond(A) ::= NOMATCH. { in cond() argument
782 A = CONFIG_COND_NOMATCH; in cond()
784 cond(A) ::= PREFIX. { in cond() argument
785 A = CONFIG_COND_PREFIX; in cond()
787 cond(A) ::= SUFFIX. { in cond() argument
788 A = CONFIG_COND_SUFFIX; in cond()
791 stringop(A) ::= expression(B). { in stringop() argument
792 A = NULL; in stringop()
795 buffer_copy_buffer((A = buffer_init()), &((data_string*)B)->value); in stringop()
797 A = buffer_init(); in stringop()
798 buffer_append_int(A, ((data_integer *)B)->value); in stringop()
808 include ::= INCLUDE stringop(A). { in stringop() argument
810 if (0 != config_parse_file(ctx->srv, ctx, A->ptr)) { in stringop()
814 buffer_free(A); in stringop()
815 A = NULL; in stringop()
818 include_shell ::= INCLUDE_SHELL stringop(A). { in stringop() argument
820 if (0 != config_parse_cmd(ctx->srv, ctx, A->ptr)) { in stringop()
824 buffer_free(A); in stringop()
825 A = NULL; in stringop()