47 #define YYBISON_VERSION "3.0.4" 50 #define YYSKELETON_NAME "yacc.c" 63 #define yyparse naslparse 65 #define yyerror naslerror 66 #define yydebug nasldebug 67 #define yynerrs naslnerrs 71 #line 5 "/builddir/build/BUILD/gvm-libs-9.0.3/nasl/nasl_grammar.y" 91 #define YYPARSE_PARAM parm 92 #define YYLEX_PARAM parm 94 #define LNB (((naslctxt*)parm)->line_nb) 109 static void naslerror(
naslctxt *,
const char *);
113 #define YYERROR_VERBOSE 115 #line 116 "nasl_grammar.tab.c" 118 # if defined __cplusplus && 201103L <= __cplusplus 119 # define YY_NULLPTR nullptr 121 # define YY_NULLPTR 0 126 #ifdef YYERROR_VERBOSE 127 # undef YYERROR_VERBOSE 128 # define YYERROR_VERBOSE 1 130 # define YYERROR_VERBOSE 0 135 #ifndef YY_NASL_NASL_GRAMMAR_TAB_H_INCLUDED 136 # define YY_NASL_NASL_GRAMMAR_TAB_H_INCLUDED 201 #if ! defined YYSTYPE && ! defined YYSTYPE_IS_DECLARED 205 #line 49 "/builddir/build/BUILD/gvm-libs-9.0.3/nasl/nasl_grammar.y" 215 #line 216 "nasl_grammar.tab.c" 219 # define YYSTYPE_IS_TRIVIAL 1 220 # define YYSTYPE_IS_DECLARED 1 230 #line 59 "/builddir/build/BUILD/gvm-libs-9.0.3/nasl/nasl_grammar.y" 232 static int nasllex(
YYSTYPE * lvalp,
void * parm);
234 #line 235 "nasl_grammar.tab.c" 265 # ifdef __SIZE_TYPE__ 266 # define YYSIZE_T __SIZE_TYPE__ 267 # elif defined size_t 268 # define YYSIZE_T size_t 269 # elif ! defined YYSIZE_T 271 # define YYSIZE_T size_t 273 # define YYSIZE_T unsigned int 277 #define YYSIZE_MAXIMUM ((YYSIZE_T) -1) 280 # if defined YYENABLE_NLS && YYENABLE_NLS 282 # include <libintl.h> 283 # define YY_(Msgid) dgettext ("bison-runtime", Msgid) 287 # define YY_(Msgid) Msgid 292 # if (defined __GNUC__ \ 293 && (2 < __GNUC__ || (__GNUC__ == 2 && 96 <= __GNUC_MINOR__))) \ 294 || defined __SUNPRO_C && 0x5110 <= __SUNPRO_C 295 # define YY_ATTRIBUTE(Spec) __attribute__(Spec) 297 # define YY_ATTRIBUTE(Spec) 301 #ifndef YY_ATTRIBUTE_PURE 302 # define YY_ATTRIBUTE_PURE YY_ATTRIBUTE ((__pure__)) 305 #ifndef YY_ATTRIBUTE_UNUSED 306 # define YY_ATTRIBUTE_UNUSED YY_ATTRIBUTE ((__unused__)) 309 #if !defined _Noreturn \ 310 && (!defined __STDC_VERSION__ || __STDC_VERSION__ < 201112) 311 # if defined _MSC_VER && 1200 <= _MSC_VER 312 # define _Noreturn __declspec (noreturn) 314 # define _Noreturn YY_ATTRIBUTE ((__noreturn__)) 319 #if ! defined lint || defined __GNUC__ 320 # define YYUSE(E) ((void) (E)) 325 #if defined __GNUC__ && 407 <= __GNUC__ * 100 + __GNUC_MINOR__ 327 # define YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN \ 328 _Pragma ("GCC diagnostic push") \ 329 _Pragma ("GCC diagnostic ignored \"-Wuninitialized\"")\ 330 _Pragma ("GCC diagnostic ignored \"-Wmaybe-uninitialized\"") 331 # define YY_IGNORE_MAYBE_UNINITIALIZED_END \ 332 _Pragma ("GCC diagnostic pop") 334 # define YY_INITIAL_VALUE(Value) Value 336 #ifndef YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN 337 # define YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN 338 # define YY_IGNORE_MAYBE_UNINITIALIZED_END 340 #ifndef YY_INITIAL_VALUE 341 # define YY_INITIAL_VALUE(Value) 345 #if ! defined yyoverflow || YYERROR_VERBOSE 349 # ifdef YYSTACK_USE_ALLOCA 350 # if YYSTACK_USE_ALLOCA 352 # define YYSTACK_ALLOC __builtin_alloca 353 # elif defined __BUILTIN_VA_ARG_INCR 356 # define YYSTACK_ALLOC __alloca 357 # elif defined _MSC_VER 359 # define alloca _alloca 361 # define YYSTACK_ALLOC alloca 362 # if ! defined _ALLOCA_H && ! defined EXIT_SUCCESS 365 # ifndef EXIT_SUCCESS 366 # define EXIT_SUCCESS 0 373 # ifdef YYSTACK_ALLOC 375 # define YYSTACK_FREE(Ptr) do { ; } while (0) 376 # ifndef YYSTACK_ALLOC_MAXIMUM 381 # define YYSTACK_ALLOC_MAXIMUM 4032 384 # define YYSTACK_ALLOC YYMALLOC 385 # define YYSTACK_FREE YYFREE 386 # ifndef YYSTACK_ALLOC_MAXIMUM 387 # define YYSTACK_ALLOC_MAXIMUM YYSIZE_MAXIMUM 389 # if (defined __cplusplus && ! defined EXIT_SUCCESS \ 390 && ! ((defined YYMALLOC || defined malloc) \ 391 && (defined YYFREE || defined free))) 393 # ifndef EXIT_SUCCESS 394 # define EXIT_SUCCESS 0 398 # define YYMALLOC malloc 399 # if ! defined malloc && ! defined EXIT_SUCCESS 405 # if ! defined free && ! defined EXIT_SUCCESS 413 #if (! defined yyoverflow \ 414 && (! defined __cplusplus \ 415 || (defined YYSTYPE_IS_TRIVIAL && YYSTYPE_IS_TRIVIAL))) 425 # define YYSTACK_GAP_MAXIMUM (sizeof (union yyalloc) - 1) 429 # define YYSTACK_BYTES(N) \ 430 ((N) * (sizeof (yytype_int16) + sizeof (YYSTYPE)) \ 431 + YYSTACK_GAP_MAXIMUM) 433 # define YYCOPY_NEEDED 1 440 # define YYSTACK_RELOCATE(Stack_alloc, Stack) \ 443 YYSIZE_T yynewbytes; \ 444 YYCOPY (&yyptr->Stack_alloc, Stack, yysize); \ 445 Stack = &yyptr->Stack_alloc; \ 446 yynewbytes = yystacksize * sizeof (*Stack) + YYSTACK_GAP_MAXIMUM; \ 447 yyptr += yynewbytes / sizeof (*yyptr); \ 453 #if defined YYCOPY_NEEDED && YYCOPY_NEEDED 457 # if defined __GNUC__ && 1 < __GNUC__ 458 # define YYCOPY(Dst, Src, Count) \ 459 __builtin_memcpy (Dst, Src, (Count) * sizeof (*(Src))) 461 # define YYCOPY(Dst, Src, Count) \ 465 for (yyi = 0; yyi < (Count); yyi++) \ 466 (Dst)[yyi] = (Src)[yyi]; \ 485 #define YYNSTATES 227 490 #define YYMAXUTOK 304 492 #define YYTRANSLATE(YYX) \ 493 ((unsigned int) (YYX) <= YYMAXUTOK ? yytranslate[YYX] : YYUNDEFTOK) 499 0, 2, 2, 2, 2, 2, 2, 2, 2, 2,
500 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
501 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
502 2, 2, 2, 70, 2, 2, 2, 57, 52, 2,
503 61, 62, 55, 53, 63, 54, 72, 56, 2, 2,
504 2, 2, 2, 2, 2, 2, 2, 2, 67, 66,
505 48, 47, 49, 2, 2, 2, 2, 2, 2, 2,
506 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
507 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
508 2, 68, 2, 69, 51, 2, 2, 2, 2, 2,
509 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
510 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
511 2, 2, 2, 64, 50, 65, 71, 2, 2, 2,
512 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
513 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
514 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
515 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
516 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
517 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
518 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
519 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
520 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
521 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
522 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
523 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
524 2, 2, 2, 2, 2, 2, 1, 2, 3, 4,
525 5, 6, 7, 8, 9, 10, 11, 12, 13, 14,
526 15, 16, 17, 18, 19, 20, 21, 22, 23, 24,
527 25, 26, 27, 28, 29, 30, 31, 32, 33, 34,
528 35, 36, 37, 38, 39, 40, 41, 42, 43, 44,
536 0, 144, 144, 149, 155, 162, 162, 165, 174, 174,
537 175, 176, 184, 184, 185, 186, 200, 200, 200, 200,
538 203, 203, 203, 204, 204, 204, 204, 204, 205, 209,
539 213, 216, 222, 229, 235, 243, 243, 243, 243, 244,
540 254, 261, 269, 278, 278, 278, 278, 281, 289, 289,
541 292, 345, 352, 352, 353, 353, 359, 365, 373, 377,
542 378, 379, 380, 381, 382, 383, 384, 387, 387, 389,
543 389, 391, 398, 401, 402, 403, 404, 408, 409, 410,
544 411, 412, 413, 414, 415, 416, 417, 418, 419, 420,
545 421, 422, 423, 424, 425, 426, 427, 428, 429, 430,
546 431, 432, 433, 434, 435, 436, 437, 437, 437, 437,
547 437, 440, 442, 443, 447, 450, 456, 457, 461, 466,
548 468, 469, 469, 471, 473, 482, 490
552 #if YYDEBUG || YYERROR_VERBOSE || 0 555 static const char *
const yytname[] =
557 "$end",
"error",
"$undefined",
"IF",
"ELSE",
"EQ",
"NEQ",
"SUPEQ",
558 "INFEQ",
"OR",
"AND",
"MATCH",
"NOMATCH",
"REP",
"FOR",
"REPEAT",
559 "UNTIL",
"FOREACH",
"WHILE",
"BREAK",
"CONTINUE",
"FUNCTION",
"RETURN",
560 "INCLUDE",
"LOCAL",
"GLOBAL",
"PLUS_PLUS",
"MINUS_MINUS",
"L_SHIFT",
561 "R_SHIFT",
"R_USHIFT",
"EXPO",
"PLUS_EQ",
"MINUS_EQ",
"MULT_EQ",
562 "DIV_EQ",
"MODULO_EQ",
"L_SHIFT_EQ",
"R_SHIFT_EQ",
"R_USHIFT_EQ",
563 "RE_MATCH",
"RE_NOMATCH",
"ARROW",
"IDENT",
"STRING1",
"STRING2",
564 "INTEGER",
"'='",
"'<'",
"'>'",
"'|'",
"'^'",
"'&'",
"'+'",
"'-'",
"'*'",
565 "'/'",
"'%'",
"NOT",
"UMINUS",
"BIT_NOT",
"'('",
"')'",
"','",
"'{'",
566 "'}'",
"';'",
"':'",
"'['",
"']'",
"'!'",
"'~'",
"'.'",
"$accept",
567 "tiptop",
"instr_decl_list",
"instr_decl",
"func_decl",
"arg_decl",
568 "arg_decl_1",
"block",
"instr_list",
"instr",
"simple_instr",
"ret",
569 "if_block",
"loop",
"for_loop",
"while_loop",
"repeat_loop",
570 "foreach_loop",
"aff_func",
"rep",
"string",
"inc",
"func_call",
571 "arg_list",
"arg_list_1",
"arg",
"aff",
"lvalue",
"identifier",
572 "array_elem",
"array_index",
"post_pre_incr",
"expr",
"const_array",
573 "list_array_data",
"array_data",
"atom",
"simple_array_data",
"var",
574 "var_name",
"ipaddr",
"loc",
"glob",
YY_NULLPTR 583 0, 256, 257, 258, 259, 260, 261, 262, 263, 264,
584 265, 266, 267, 268, 269, 270, 271, 272, 273, 274,
585 275, 276, 277, 278, 279, 280, 281, 282, 283, 284,
586 285, 286, 287, 288, 289, 290, 291, 292, 293, 294,
587 295, 296, 297, 298, 299, 300, 301, 61, 60, 62,
588 124, 94, 38, 43, 45, 42, 47, 37, 302, 303,
589 304, 40, 41, 44, 123, 125, 59, 58, 91, 93,
594 #define YYPACT_NINF -91 596 #define yypact_value_is_default(Yystate) \ 597 (!!((Yystate) == (-91))) 599 #define YYTABLE_NINF -69 601 #define yytable_value_is_error(Yytable_value) \ 602 (!!((Yytable_value) == (-69))) 608 464, -53, -91, -50, 491, -6, -42, -91, -91, -6,
609 499, -40, -6, -6, -6, -6, -91, 259, 25, -91,
610 91, -91, -91, -91, -39, -91, -91, -91, -91, -91,
611 -91, -91, -91, -91, 23, -91, 553, -13, -91, -91,
612 -91, -91, 499, 26, 29, -30, 499, -21, -91, -91,
613 -18, 499, 499, 13, 499, 499, -91, -91, 961, 611,
614 -91, 798, -91, -91, -91, -91, -91, 19, -91, -91,
615 -12, -91, -91, -26, -91, -91, -9, 123, -91, -91,
616 -91, 499, -91, -91, 499, 499, 499, 499, 499, 499,
617 499, 499, 499, 499, 499, 566, -4, -91, -91, -91,
618 499, 499, 624, -6, 14, 37, 682, 39, 40, -91,
619 42, 7, 22, -91, -91, 37, 37, 499, 499, 499,
620 499, 499, 499, 499, 499, 499, 499, 499, 499, 19,
621 19, 499, 499, 499, 499, 499, 499, 499, 499, 499,
622 499, -91, -91, 28, -6, -91, -91, 798, 798, 798,
623 798, 798, 798, 798, 798, 798, 798, 35, -91, 33,
624 945, 798, 17, 798, 491, 499, 347, 740, 491, 36,
625 16, -91, 34, -91, 13, 882, 882, 882, 882, 851,
626 913, 882, 882, 398, 398, 398, 37, -91, -91, 882,
627 882, 354, 337, 415, 15, 15, 37, 37, 37, -91,
628 -91, -91, 499, 499, -91, 83, 409, -91, 491, -91,
629 27, 53, -91, -91, -91, 798, 491, 26, -91, -91,
630 47, -91, 38, 56, 491, -91, -91
638 30, 0, 70, 0, 30, 0, 0, 28, 29, 0,
639 32, 0, 8, 8, 0, 0, 69, 30, 0, 2,
640 3, 6, 17, 5, 0, 24, 18, 19, 35, 36,
641 37, 38, 22, 25, 23, 20, 0, 67, 68, 21,
642 26, 27, 0, 46, 0, 0, 0, 0, 118, 117,
643 116, 0, 0, 0, 0, 0, 122, 107, 123, 121,
644 95, 31, 110, 109, 106, 120, 108, 0, 125, 9,
645 10, 126, 73, 67, 74, 13, 0, 14, 1, 4,
646 16, 0, 75, 76, 0, 0, 0, 0, 0, 0,
647 0, 0, 0, 53, 0, 0, 0, 45, 43, 44,
648 0, 0, 0, 8, 0, 83, 0, 118, 117, 116,
649 0, 0, 112, 119, 114, 79, 84, 0, 0, 0,
650 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
651 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
652 0, 48, 49, 0, 0, 12, 15, 47, 59, 60,
653 61, 62, 63, 66, 64, 65, 58, 0, 52, 54,
654 123, 56, 0, 72, 30, 0, 0, 0, 30, 0,
655 0, 77, 0, 111, 0, 102, 103, 104, 105, 80,
656 78, 96, 97, 94, 92, 93, 86, 98, 99, 100,
657 101, 91, 90, 89, 81, 82, 85, 87, 88, 50,
658 11, 51, 0, 0, 71, 33, 0, 41, 30, 40,
659 0, 0, 115, 113, 55, 57, 30, 46, 42, 7,
660 0, 34, 0, 0, 30, 124, 39
666 -91, -91, 101, -91, -91, -11, -20, -87, 48, 12,
667 -91, -91, -91, -91, -91, -91, -91, -91, -90, -91,
668 -64, -91, 6, -91, -74, -91, 24, 60, 0, 18,
669 -91, 30, 209, -91, -45, -91, -52, -41, -91, -91,
676 -1, 18, 19, 20, 21, 68, 69, 22, 76, 23,
677 24, 25, 26, 27, 28, 29, 30, 31, 96, 32,
678 110, 33, 56, 157, 158, 159, 57, 36, 58, 59,
679 162, 60, 161, 62, 111, 112, 63, 114, 64, 65,
688 37, 113, 71, 143, 37, 45, 34, 2, 42, 47,
689 34, 43, 70, 70, 73, 73, 44, 37, 38, 46,
690 37, 67, 38, 34, 35, 78, 34, 80, 35, 77,
691 39, 101, 38, 38, 39, 38, 81, 16, 38, 2,
692 103, 35, 94, 37, 35, 100, 128, 39, 93, 97,
693 39, 144, 14, 15, 104, 94, 145, 107, 108, 109,
694 170, 38, 165, 141, 142, 187, 188, 98, 128, 16,
695 138, 139, 140, 99, 72, 74, 173, 37, 48, 49,
696 109, -48, -49, 34, 172, 174, 204, 216, 211, 77,
697 199, 17, 169, 160, 1, 38, 202, 201, 210, 220,
698 224, 35, 225, 70, 2, 3, 4, 39, 5, 6,
699 7, 8, 9, 10, 11, 12, 13, 14, 15, 223,
700 113, 79, 113, 219, 200, 146, 1, 222, 214, 213,
701 0, 212, 0, 0, 16, 0, 2, 3, 4, 0,
702 5, 6, 7, 8, 70, 10, 11, 12, 13, 14,
703 15, 0, 0, 0, 0, 17, 0, -30, 0, 0,
704 0, 0, 0, 0, 37, 0, 16, 0, 37, 0,
705 34, 0, 0, 0, 34, 0, 205, 0, 0, 0,
706 209, 0, 38, 0, 0, 0, 38, 17, 35, -30,
707 0, 0, 35, 0, 39, 0, 0, 0, 39, 0,
708 0, 0, 160, 0, 0, 0, 0, 0, 37, 0,
709 0, 0, 0, 0, 34, 0, 37, 37, 0, 61,
710 218, 0, 34, 97, 37, 0, 38, 0, 221, 0,
711 34, 0, 35, 0, 38, 38, 226, 0, 39, 0,
712 35, 98, 38, 0, 0, 0, 39, 99, 35, 0,
713 0, 95, 0, 0, 39, 102, 0, 0, 0, 0,
714 105, 106, 1, 115, 116, 0, 0, 0, 0, 0,
715 0, 0, 2, 3, 4, 0, 5, 6, 7, 8,
716 0, 10, 11, 12, 13, 14, 15, 0, 0, 0,
717 147, 0, 0, 148, 149, 150, 151, 152, 153, 154,
718 155, 156, 16, 163, 0, 0, 0, 0, 0, 166,
719 167, 0, 0, 0, 0, 0, 0, 0, 0, 0,
720 0, 0, 0, 17, 75, 0, 175, 176, 177, 178,
721 179, 180, 181, 182, 183, 184, 185, 186, 0, 0,
722 189, 190, 191, 192, 193, 194, 195, 196, 197, 198,
723 0, 0, 117, 118, 119, 120, 121, 122, 123, 124,
724 0, 0, 0, 0, 0, 125, 126, 127, 128, 0,
725 0, 0, 0, 0, 206, 125, 126, 127, 128, 0,
726 0, 0, 125, 126, 127, 128, 0, 129, 130, 135,
727 136, 137, 138, 139, 140, 131, 132, 133, 134, 135,
728 136, 137, 138, 139, 140, 134, 135, 136, 137, 138,
729 139, 140, 215, 207, 117, 118, 119, 120, 121, 122,
730 123, 124, 0, 0, 0, 0, -69, -69, -69, 128,
731 0, 0, 0, 0, 0, 0, 0, 125, 126, 127,
732 128, 0, 0, 125, 126, 127, 128, 0, 0, 129,
733 130, 136, 137, 138, 139, 140, 0, 131, 132, 133,
734 134, 135, 136, 137, 138, 139, 140, 1, 136, 137,
735 138, 139, 140, 0, 0, 217, 0, 2, 3, 4,
736 0, 5, 6, 7, 8, 9, 10, 11, 12, 13,
737 14, 15, 0, 0, 1, 0, 0, 0, 0, 0,
738 0, 0, 0, 0, 2, 3, 4, 16, 5, 6,
739 7, 8, 2, 10, 11, 12, 13, 14, 15, 0,
740 0, 0, 0, 0, 0, 14, 15, 0, 17, 0,
741 0, 0, 0, 0, 16, 0, 0, 0, 0, 0,
742 0, 0, 16, 48, 49, 50, 0, 0, 0, 0,
743 0, 0, 0, 51, 0, 17, 0, 0, 0, 0,
744 52, 0, 0, 0, 0, 0, 0, 53, 0, 54,
745 55, 117, 118, 119, 120, 121, 122, 123, 124, 82,
746 83, 0, 0, 0, 0, 84, 85, 86, 87, 88,
747 89, 90, 91, 0, 125, 126, 127, 128, 0, 0,
748 92, 0, 0, 0, 0, 0, 129, 130, 0, 0,
749 0, 0, 0, 0, 131, 132, 133, 134, 135, 136,
750 137, 138, 139, 140, 0, 0, 0, 0, 164, 117,
751 118, 119, 120, 121, 122, 123, 124, -68, -68, 0,
752 0, 0, 0, -68, -68, -68, -68, -68, -68, -68,
753 -68, 0, 125, 126, 127, 128, 0, 0, -68, 0,
754 0, 0, 0, 0, 129, 130, 0, 0, 0, 0,
755 0, 0, 131, 132, 133, 134, 135, 136, 137, 138,
756 139, 140, 0, 0, 0, 0, 168, 117, 118, 119,
757 120, 121, 122, 123, 124, 0, 0, 0, 0, 0,
758 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
759 125, 126, 127, 128, 0, 0, 0, 0, 0, 0,
760 0, 0, 129, 130, 0, 0, 0, 0, 0, 0,
761 131, 132, 133, 134, 135, 136, 137, 138, 139, 140,
762 0, 0, 0, 0, 171, 117, 118, 119, 120, 121,
763 122, 123, 124, 0, 0, 0, 0, 0, 0, 0,
764 0, 0, 0, 0, 0, 0, 0, 0, 125, 126,
765 127, 128, 0, 0, 0, 0, 0, 0, 0, 0,
766 129, 130, 0, 0, 0, 0, 0, 0, 131, 132,
767 133, 134, 135, 136, 137, 138, 139, 140, 0, 0,
768 0, 0, 208, 117, 118, 119, 120, 121, 122, 123,
769 124, 0, 0, 0, 0, 0, 0, 0, 0, 0,
770 0, 0, 0, 0, 0, 0, 125, 126, 127, 128,
771 0, 0, 0, 0, 0, 0, 0, 0, 129, 130,
772 0, 0, 0, 0, 0, 0, 131, 132, 133, 134,
773 135, 136, 137, 138, 139, 140, 117, 118, 119, 120,
774 0, 122, 123, 124, 0, 0, 0, 0, 0, 0,
775 0, 0, 0, 0, 0, 0, 0, 0, 0, 125,
776 126, 127, 128, 0, 0, 0, 0, -69, -69, -69,
777 -69, 129, 130, -69, -69, 0, 0, 0, 0, 131,
778 132, 133, 134, 135, 136, 137, 138, 139, 140, 0,
779 125, 126, 127, 128, 0, 0, 0, 0, 117, 118,
780 119, 120, -69, -69, 123, 124, 0, 0, 0, 0,
781 -69, -69, 133, 134, 135, 136, 137, 138, 139, 140,
782 0, 125, 126, 127, 128, 0, 0, 0, 0, 0,
783 0, 0, 0, 129, 130, 0, 0, 0, 0, 0,
784 0, 131, 132, 133, 134, 135, 136, 137, 138, 139,
785 140, -67, -67, 0, 0, 0, 0, -67, -67, -67,
786 -67, -67, -67, -67, -67, 0, 0, -67, -67, 0,
787 0, 0, -67, -67, -67, -67, -67, -67, -67, -67,
788 -67, 0, 0, 0, 0, 0, 93, 0, -67, 0,
789 0, 0, 203, 94, 0, 0, 0, 0, 0, 0,
790 0, 0, 93, 0, 0, 0, 0, 0, 0, 94
795 0, 53, 13, 67, 4, 5, 0, 13, 61, 9,
796 4, 61, 12, 13, 14, 15, 4, 17, 0, 61,
797 20, 61, 4, 17, 0, 0, 20, 66, 4, 17,
798 0, 61, 14, 15, 4, 17, 13, 43, 20, 13,
799 61, 17, 68, 43, 20, 16, 31, 17, 61, 43,
800 20, 63, 26, 27, 72, 68, 65, 44, 45, 46,
801 46, 43, 66, 44, 45, 129, 130, 43, 31, 43,
802 55, 56, 57, 43, 14, 15, 69, 77, 44, 45,
803 46, 42, 42, 77, 42, 63, 69, 4, 72, 77,
804 62, 64, 103, 93, 3, 77, 63, 62, 62, 46,
805 62, 77, 46, 103, 13, 14, 15, 77, 17, 18,
806 19, 20, 21, 22, 23, 24, 25, 26, 27, 72,
807 172, 20, 174, 210, 144, 77, 3, 217, 202, 174,
808 -1, 172, -1, -1, 43, -1, 13, 14, 15, -1,
809 17, 18, 19, 20, 144, 22, 23, 24, 25, 26,
810 27, -1, -1, -1, -1, 64, -1, 66, -1, -1,
811 -1, -1, -1, -1, 164, -1, 43, -1, 168, -1,
812 164, -1, -1, -1, 168, -1, 164, -1, -1, -1,
813 168, -1, 164, -1, -1, -1, 168, 64, 164, 66,
814 -1, -1, 168, -1, 164, -1, -1, -1, 168, -1,
815 -1, -1, 202, -1, -1, -1, -1, -1, 208, -1,
816 -1, -1, -1, -1, 208, -1, 216, 217, -1, 10,
817 208, -1, 216, 217, 224, -1, 208, -1, 216, -1,
818 224, -1, 208, -1, 216, 217, 224, -1, 208, -1,
819 216, 217, 224, -1, -1, -1, 216, 217, 224, -1,
820 -1, 42, -1, -1, 224, 46, -1, -1, -1, -1,
821 51, 52, 3, 54, 55, -1, -1, -1, -1, -1,
822 -1, -1, 13, 14, 15, -1, 17, 18, 19, 20,
823 -1, 22, 23, 24, 25, 26, 27, -1, -1, -1,
824 81, -1, -1, 84, 85, 86, 87, 88, 89, 90,
825 91, 92, 43, 94, -1, -1, -1, -1, -1, 100,
826 101, -1, -1, -1, -1, -1, -1, -1, -1, -1,
827 -1, -1, -1, 64, 65, -1, 117, 118, 119, 120,
828 121, 122, 123, 124, 125, 126, 127, 128, -1, -1,
829 131, 132, 133, 134, 135, 136, 137, 138, 139, 140,
830 -1, -1, 5, 6, 7, 8, 9, 10, 11, 12,
831 -1, -1, -1, -1, -1, 28, 29, 30, 31, -1,
832 -1, -1, -1, -1, 165, 28, 29, 30, 31, -1,
833 -1, -1, 28, 29, 30, 31, -1, 40, 41, 52,
834 53, 54, 55, 56, 57, 48, 49, 50, 51, 52,
835 53, 54, 55, 56, 57, 51, 52, 53, 54, 55,
836 56, 57, 203, 66, 5, 6, 7, 8, 9, 10,
837 11, 12, -1, -1, -1, -1, 28, 29, 30, 31,
838 -1, -1, -1, -1, -1, -1, -1, 28, 29, 30,
839 31, -1, -1, 28, 29, 30, 31, -1, -1, 40,
840 41, 53, 54, 55, 56, 57, -1, 48, 49, 50,
841 51, 52, 53, 54, 55, 56, 57, 3, 53, 54,
842 55, 56, 57, -1, -1, 66, -1, 13, 14, 15,
843 -1, 17, 18, 19, 20, 21, 22, 23, 24, 25,
844 26, 27, -1, -1, 3, -1, -1, -1, -1, -1,
845 -1, -1, -1, -1, 13, 14, 15, 43, 17, 18,
846 19, 20, 13, 22, 23, 24, 25, 26, 27, -1,
847 -1, -1, -1, -1, -1, 26, 27, -1, 64, -1,
848 -1, -1, -1, -1, 43, -1, -1, -1, -1, -1,
849 -1, -1, 43, 44, 45, 46, -1, -1, -1, -1,
850 -1, -1, -1, 54, -1, 64, -1, -1, -1, -1,
851 61, -1, -1, -1, -1, -1, -1, 68, -1, 70,
852 71, 5, 6, 7, 8, 9, 10, 11, 12, 26,
853 27, -1, -1, -1, -1, 32, 33, 34, 35, 36,
854 37, 38, 39, -1, 28, 29, 30, 31, -1, -1,
855 47, -1, -1, -1, -1, -1, 40, 41, -1, -1,
856 -1, -1, -1, -1, 48, 49, 50, 51, 52, 53,
857 54, 55, 56, 57, -1, -1, -1, -1, 62, 5,
858 6, 7, 8, 9, 10, 11, 12, 26, 27, -1,
859 -1, -1, -1, 32, 33, 34, 35, 36, 37, 38,
860 39, -1, 28, 29, 30, 31, -1, -1, 47, -1,
861 -1, -1, -1, -1, 40, 41, -1, -1, -1, -1,
862 -1, -1, 48, 49, 50, 51, 52, 53, 54, 55,
863 56, 57, -1, -1, -1, -1, 62, 5, 6, 7,
864 8, 9, 10, 11, 12, -1, -1, -1, -1, -1,
865 -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
866 28, 29, 30, 31, -1, -1, -1, -1, -1, -1,
867 -1, -1, 40, 41, -1, -1, -1, -1, -1, -1,
868 48, 49, 50, 51, 52, 53, 54, 55, 56, 57,
869 -1, -1, -1, -1, 62, 5, 6, 7, 8, 9,
870 10, 11, 12, -1, -1, -1, -1, -1, -1, -1,
871 -1, -1, -1, -1, -1, -1, -1, -1, 28, 29,
872 30, 31, -1, -1, -1, -1, -1, -1, -1, -1,
873 40, 41, -1, -1, -1, -1, -1, -1, 48, 49,
874 50, 51, 52, 53, 54, 55, 56, 57, -1, -1,
875 -1, -1, 62, 5, 6, 7, 8, 9, 10, 11,
876 12, -1, -1, -1, -1, -1, -1, -1, -1, -1,
877 -1, -1, -1, -1, -1, -1, 28, 29, 30, 31,
878 -1, -1, -1, -1, -1, -1, -1, -1, 40, 41,
879 -1, -1, -1, -1, -1, -1, 48, 49, 50, 51,
880 52, 53, 54, 55, 56, 57, 5, 6, 7, 8,
881 -1, 10, 11, 12, -1, -1, -1, -1, -1, -1,
882 -1, -1, -1, -1, -1, -1, -1, -1, -1, 28,
883 29, 30, 31, -1, -1, -1, -1, 5, 6, 7,
884 8, 40, 41, 11, 12, -1, -1, -1, -1, 48,
885 49, 50, 51, 52, 53, 54, 55, 56, 57, -1,
886 28, 29, 30, 31, -1, -1, -1, -1, 5, 6,
887 7, 8, 40, 41, 11, 12, -1, -1, -1, -1,
888 48, 49, 50, 51, 52, 53, 54, 55, 56, 57,
889 -1, 28, 29, 30, 31, -1, -1, -1, -1, -1,
890 -1, -1, -1, 40, 41, -1, -1, -1, -1, -1,
891 -1, 48, 49, 50, 51, 52, 53, 54, 55, 56,
892 57, 26, 27, -1, -1, -1, -1, 32, 33, 34,
893 35, 36, 37, 38, 39, -1, -1, 26, 27, -1,
894 -1, -1, 47, 32, 33, 34, 35, 36, 37, 38,
895 39, -1, -1, -1, -1, -1, 61, -1, 47, -1,
896 -1, -1, 67, 68, -1, -1, -1, -1, -1, -1,
897 -1, -1, 61, -1, -1, -1, -1, -1, -1, 68
904 0, 3, 13, 14, 15, 17, 18, 19, 20, 21,
905 22, 23, 24, 25, 26, 27, 43, 64, 74, 75,
906 76, 77, 80, 82, 83, 84, 85, 86, 87, 88,
907 89, 90, 92, 94, 95, 99, 100, 101, 102, 104,
908 114, 115, 61, 61, 82, 101, 61, 101, 44, 45,
909 46, 54, 61, 68, 70, 71, 95, 99, 101, 102,
910 104, 105, 106, 109, 111, 112, 113, 61, 78, 79,
911 101, 78, 100, 101, 100, 65, 81, 82, 0, 75,
912 66, 13, 26, 27, 32, 33, 34, 35, 36, 37,
913 38, 39, 47, 61, 68, 105, 91, 95, 99, 104,
914 16, 61, 105, 61, 72, 105, 105, 44, 45, 46,
915 93, 107, 108, 109, 110, 105, 105, 5, 6, 7,
916 8, 9, 10, 11, 12, 28, 29, 30, 31, 40,
917 41, 48, 49, 50, 51, 52, 53, 54, 55, 56,
918 57, 44, 45, 93, 63, 65, 81, 105, 105, 105,
919 105, 105, 105, 105, 105, 105, 105, 96, 97, 98,
920 101, 105, 103, 105, 62, 66, 105, 105, 62, 78,
921 46, 62, 42, 69, 63, 105, 105, 105, 105, 105,
922 105, 105, 105, 105, 105, 105, 105, 93, 93, 105,
923 105, 105, 105, 105, 105, 105, 105, 105, 105, 62,
924 79, 62, 63, 67, 69, 82, 105, 66, 62, 82,
925 62, 72, 110, 107, 97, 105, 4, 66, 82, 80,
926 46, 82, 91, 72, 62, 46, 82
932 0, 73, 74, 75, 75, 76, 76, 77, 78, 78,
933 79, 79, 80, 80, 81, 81, 82, 82, 82, 82,
934 83, 83, 83, 83, 83, 83, 83, 83, 83, 83,
935 83, 84, 84, 85, 85, 86, 86, 86, 86, 87,
936 88, 89, 90, 91, 91, 91, 91, 92, 93, 93,
937 94, 95, 96, 96, 97, 97, 98, 98, 99, 99,
938 99, 99, 99, 99, 99, 99, 99, 100, 100, 101,
939 101, 102, 103, 104, 104, 104, 104, 105, 105, 105,
940 105, 105, 105, 105, 105, 105, 105, 105, 105, 105,
941 105, 105, 105, 105, 105, 105, 105, 105, 105, 105,
942 105, 105, 105, 105, 105, 105, 105, 105, 105, 105,
943 105, 106, 107, 107, 108, 108, 109, 109, 109, 110,
944 111, 111, 111, 112, 113, 114, 115
950 0, 2, 1, 1, 2, 1, 1, 6, 0, 1,
951 1, 3, 3, 2, 1, 2, 2, 1, 1, 1,
952 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
953 0, 2, 1, 5, 7, 1, 1, 1, 1, 9,
954 5, 5, 6, 1, 1, 1, 0, 3, 1, 1,
955 4, 4, 1, 0, 1, 3, 1, 3, 3, 3,
956 3, 3, 3, 3, 3, 3, 3, 1, 1, 1,
957 1, 4, 1, 2, 2, 2, 2, 3, 3, 2,
958 3, 3, 3, 2, 2, 3, 3, 3, 3, 3,
959 3, 3, 3, 3, 3, 1, 3, 3, 3, 3,
960 3, 3, 3, 3, 3, 3, 1, 1, 1, 1,
961 1, 3, 1, 3, 1, 3, 1, 1, 1, 1,
966 #define yyerrok (yyerrstatus = 0) 967 #define yyclearin (yychar = YYEMPTY) 971 #define YYACCEPT goto yyacceptlab 972 #define YYABORT goto yyabortlab 973 #define YYERROR goto yyerrorlab 976 #define YYRECOVERING() (!!yyerrstatus) 978 #define YYBACKUP(Token, Value) \ 980 if (yychar == YYEMPTY) \ 984 YYPOPSTACK (yylen); \ 990 yyerror (parm, YY_("syntax error: cannot back up")); \ 997 #define YYERRCODE 256 1006 # define YYFPRINTF fprintf 1009 # define YYDPRINTF(Args) \ 1016 #ifndef YY_LOCATION_PRINT 1017 # define YY_LOCATION_PRINT(File, Loc) ((void) 0) 1021 # define YY_SYMBOL_PRINT(Title, Type, Value, Location) \ 1025 YYFPRINTF (stderr, "%s ", Title); \ 1026 yy_symbol_print (stderr, \ 1027 Type, Value, parm); \ 1028 YYFPRINTF (stderr, "\n"); \ 1038 yy_symbol_value_print (FILE *yyoutput,
int yytype,
YYSTYPE const *
const yyvaluep,
naslctxt * parm)
1040 FILE *yyo = yyoutput;
1047 YYPRINT (yyoutput, yytoknum[yytype], *yyvaluep);
1058 yy_symbol_print (FILE *yyoutput,
int yytype,
YYSTYPE const *
const yyvaluep,
naslctxt * parm)
1061 yytype <
YYNTOKENS ?
"token" :
"nterm", yytname[yytype]);
1063 yy_symbol_value_print (yyoutput, yytype, yyvaluep, parm);
1076 for (; yybottom <= yytop; yybottom++)
1078 int yybot = *yybottom;
1084 # define YY_STACK_PRINT(Bottom, Top) \ 1087 yy_stack_print ((Bottom), (Top)); \ 1098 unsigned long int yylno = yyrline[yyrule];
1099 int yynrhs = yyr2[yyrule];
1101 YYFPRINTF (stderr,
"Reducing stack by rule %d (line %lu):\n",
1104 for (yyi = 0; yyi < yynrhs; yyi++)
1107 yy_symbol_print (stderr,
1108 yystos[yyssp[yyi + 1 - yynrhs]],
1109 &(yyvsp[(yyi + 1) - (yynrhs)])
1115 # define YY_REDUCE_PRINT(Rule) \ 1118 yy_reduce_print (yyssp, yyvsp, Rule, parm); \ 1125 # define YYDPRINTF(Args) 1126 # define YY_SYMBOL_PRINT(Title, Type, Value, Location) 1127 # define YY_STACK_PRINT(Bottom, Top) 1128 # define YY_REDUCE_PRINT(Rule) 1134 # define YYINITDEPTH 200 1145 # define YYMAXDEPTH 10000 1152 # if defined __GLIBC__ && defined _STRING_H 1153 # define yystrlen strlen 1157 yystrlen (
const char *yystr)
1160 for (yylen = 0; yystr[yylen]; yylen++)
1168 # if defined __GLIBC__ && defined _STRING_H && defined _GNU_SOURCE 1169 # define yystpcpy stpcpy 1174 yystpcpy (
char *yydest,
const char *yysrc)
1177 const char *yys = yysrc;
1179 while ((*yyd++ = *yys++) !=
'\0')
1196 yytnamerr (
char *yyres,
const char *yystr)
1201 char const *yyp = yystr;
1208 goto do_not_strip_quotes;
1212 goto do_not_strip_quotes;
1225 do_not_strip_quotes: ;
1229 return yystrlen (yystr);
1231 return yystpcpy (yyres, yystr) - yyres;
1244 yysyntax_error (
YYSIZE_T *yymsg_alloc,
char **yymsg,
1249 enum { YYERROR_VERBOSE_ARGS_MAXIMUM = 5 };
1253 char const *yyarg[YYERROR_VERBOSE_ARGS_MAXIMUM];
1283 int yyn = yypact[*yyssp];
1284 yyarg[yycount++] = yytname[yytoken];
1290 int yyxbegin = yyn < 0 ? -yyn : 0;
1292 int yychecklim =
YYLAST - yyn + 1;
1296 for (yyx = yyxbegin; yyx < yyxend; ++yyx)
1297 if (yycheck[yyx + yyn] == yyx && yyx !=
YYTERROR 1300 if (yycount == YYERROR_VERBOSE_ARGS_MAXIMUM)
1306 yyarg[yycount++] = yytname[yyx];
1309 if (! (yysize <= yysize1
1320 # define YYCASE_(N, S) \ 1325 YYCASE_(1,
YY_(
"syntax error, unexpected %s"));
1326 YYCASE_(2,
YY_(
"syntax error, unexpected %s, expecting %s"));
1327 YYCASE_(3,
YY_(
"syntax error, unexpected %s, expecting %s or %s"));
1328 YYCASE_(4,
YY_(
"syntax error, unexpected %s, expecting %s or %s or %s"));
1329 YYCASE_(5,
YY_(
"syntax error, unexpected %s, expecting %s or %s or %s or %s"));
1334 YYSIZE_T yysize1 = yysize + yystrlen (yyformat);
1340 if (*yymsg_alloc < yysize)
1342 *yymsg_alloc = 2 * yysize;
1343 if (! (yysize <= *yymsg_alloc
1355 while ((*yyp = *yyformat) !=
'\0')
1356 if (*yyp ==
'%' && yyformat[1] ==
's' && yyi < yycount)
1358 yyp += yytnamerr (yyp, yyarg[yyi++]);
1376 yydestruct (
const char *yymsg,
int yytype,
YYSTYPE *yyvaluep,
naslctxt * parm)
1446 char *yymsg = yymsgbuf;
1447 YYSIZE_T yymsg_alloc =
sizeof yymsgbuf;
1450 #define YYPOPSTACK(N) (yyvsp -= (N), yyssp -= (N)) 1456 yyssp = yyss = yyssa;
1457 yyvsp = yyvs = yyvsa;
1460 YYDPRINTF ((stderr,
"Starting parse\n"));
1479 if (yyss + yystacksize - 1 <= yyssp)
1482 YYSIZE_T yysize = yyssp - yyss + 1;
1496 yyoverflow (
YY_(
"memory exhausted"),
1497 &yyss1, yysize *
sizeof (*yyssp),
1498 &yyvs1, yysize *
sizeof (*yyvsp),
1505 # ifndef YYSTACK_RELOCATE 1506 goto yyexhaustedlab;
1510 goto yyexhaustedlab;
1520 goto yyexhaustedlab;
1523 # undef YYSTACK_RELOCATE 1530 yyssp = yyss + yysize - 1;
1531 yyvsp = yyvs + yysize - 1;
1533 YYDPRINTF ((stderr,
"Stack size increased to %lu\n",
1534 (
unsigned long int) yystacksize));
1536 if (yyss + yystacksize - 1 <= yyssp)
1540 YYDPRINTF ((stderr,
"Entering state %d\n", yystate));
1556 yyn = yypact[yystate];
1565 YYDPRINTF ((stderr,
"Reading a token: "));
1566 yychar =
yylex (&yylval, parm);
1569 if (yychar <=
YYEOF)
1571 yychar = yytoken =
YYEOF;
1572 YYDPRINTF ((stderr,
"Now at end of input.\n"));
1583 if (yyn < 0 ||
YYLAST < yyn || yycheck[yyn] != yytoken)
1617 yyn = yydefact[yystate];
1638 yyval = yyvsp[1-yylen];
1645 #line 145 "/builddir/build/BUILD/gvm-libs-9.0.3/nasl/nasl_grammar.y" 1647 ((
naslctxt*)parm)->tree = (yyvsp[0].node);
1649 #line 1650 "nasl_grammar.tab.c" 1653 #line 150 "/builddir/build/BUILD/gvm-libs-9.0.3/nasl/nasl_grammar.y" 1657 (yyval.
node)->link[0] = (yyvsp[0].node);
1659 #line 1660 "nasl_grammar.tab.c" 1663 #line 156 "/builddir/build/BUILD/gvm-libs-9.0.3/nasl/nasl_grammar.y" 1667 (yyval.
node)->link[0] = (yyvsp[-1].node);
1668 (yyval.
node)->link[1] = (yyvsp[0].node);
1670 #line 1671 "nasl_grammar.tab.c" 1674 #line 166 "/builddir/build/BUILD/gvm-libs-9.0.3/nasl/nasl_grammar.y" 1679 (yyval.
node)->link[0] = (yyvsp[-2].node);
1680 (yyval.
node)->link[1] = (yyvsp[0].node);
1682 #line 1683 "nasl_grammar.tab.c" 1686 #line 174 "/builddir/build/BUILD/gvm-libs-9.0.3/nasl/nasl_grammar.y" 1687 { (yyval.
node) = NULL; }
1688 #line 1689 "nasl_grammar.tab.c" 1692 #line 174 "/builddir/build/BUILD/gvm-libs-9.0.3/nasl/nasl_grammar.y" 1693 { (yyval.
node) = (yyvsp[0].node); }
1694 #line 1695 "nasl_grammar.tab.c" 1698 #line 175 "/builddir/build/BUILD/gvm-libs-9.0.3/nasl/nasl_grammar.y" 1700 #line 1701 "nasl_grammar.tab.c" 1704 #line 177 "/builddir/build/BUILD/gvm-libs-9.0.3/nasl/nasl_grammar.y" 1708 (yyval.
node)->link[0] = (yyvsp[0].node);
1710 #line 1711 "nasl_grammar.tab.c" 1714 #line 184 "/builddir/build/BUILD/gvm-libs-9.0.3/nasl/nasl_grammar.y" 1715 { (yyval.
node) = (yyvsp[-1].node); }
1716 #line 1717 "nasl_grammar.tab.c" 1720 #line 184 "/builddir/build/BUILD/gvm-libs-9.0.3/nasl/nasl_grammar.y" 1721 { (yyval.
node) = NULL; }
1722 #line 1723 "nasl_grammar.tab.c" 1726 #line 187 "/builddir/build/BUILD/gvm-libs-9.0.3/nasl/nasl_grammar.y" 1728 if ((yyvsp[-1].node) == NULL)
1729 (yyval.
node) = (yyvsp[0].node);
1734 (yyval.
node)->link[0] = (yyvsp[-1].node);
1735 (yyval.
node)->link[1] = (yyvsp[0].node);
1738 #line 1739 "nasl_grammar.tab.c" 1742 #line 200 "/builddir/build/BUILD/gvm-libs-9.0.3/nasl/nasl_grammar.y" 1743 { (yyval.
node) = (yyvsp[-1].node); }
1744 #line 1745 "nasl_grammar.tab.c" 1748 #line 205 "/builddir/build/BUILD/gvm-libs-9.0.3/nasl/nasl_grammar.y" 1753 #line 1754 "nasl_grammar.tab.c" 1757 #line 209 "/builddir/build/BUILD/gvm-libs-9.0.3/nasl/nasl_grammar.y" 1762 #line 1763 "nasl_grammar.tab.c" 1766 #line 213 "/builddir/build/BUILD/gvm-libs-9.0.3/nasl/nasl_grammar.y" 1767 { (yyval.
node) = NULL; }
1768 #line 1769 "nasl_grammar.tab.c" 1772 #line 217 "/builddir/build/BUILD/gvm-libs-9.0.3/nasl/nasl_grammar.y" 1776 (yyval.
node)->link[0] = (yyvsp[0].node);
1778 #line 1779 "nasl_grammar.tab.c" 1782 #line 223 "/builddir/build/BUILD/gvm-libs-9.0.3/nasl/nasl_grammar.y" 1787 #line 1788 "nasl_grammar.tab.c" 1791 #line 230 "/builddir/build/BUILD/gvm-libs-9.0.3/nasl/nasl_grammar.y" 1795 (yyval.
node)->link[0] = (yyvsp[-2].node); (yyval.
node)->link[1] = (yyvsp[0].node);
1797 #line 1798 "nasl_grammar.tab.c" 1801 #line 236 "/builddir/build/BUILD/gvm-libs-9.0.3/nasl/nasl_grammar.y" 1805 (yyval.
node)->link[0] = (yyvsp[-4].node); (yyval.
node)->link[1] = (yyvsp[-2].node); (yyval.
node)->link[2] = (yyvsp[0].node);
1807 #line 1808 "nasl_grammar.tab.c" 1811 #line 245 "/builddir/build/BUILD/gvm-libs-9.0.3/nasl/nasl_grammar.y" 1815 (yyval.
node)->link[0] = (yyvsp[-6].node);
1816 (yyval.
node)->link[1] = (yyvsp[-4].node);
1817 (yyval.
node)->link[2] = (yyvsp[-2].node);
1818 (yyval.
node)->link[3] = (yyvsp[0].node);
1820 #line 1821 "nasl_grammar.tab.c" 1824 #line 255 "/builddir/build/BUILD/gvm-libs-9.0.3/nasl/nasl_grammar.y" 1828 (yyval.
node)->link[0] = (yyvsp[-2].node);
1829 (yyval.
node)->link[1] = (yyvsp[0].node);
1831 #line 1832 "nasl_grammar.tab.c" 1835 #line 262 "/builddir/build/BUILD/gvm-libs-9.0.3/nasl/nasl_grammar.y" 1839 (yyval.
node)->link[0] = (yyvsp[-3].node);
1840 (yyval.
node)->link[1] = (yyvsp[-1].node);
1842 #line 1843 "nasl_grammar.tab.c" 1846 #line 270 "/builddir/build/BUILD/gvm-libs-9.0.3/nasl/nasl_grammar.y" 1850 (yyval.
node)->link[0] = (yyvsp[-2].node);
1851 (yyval.
node)->link[1] = (yyvsp[0].node);
1853 #line 1854 "nasl_grammar.tab.c" 1857 #line 278 "/builddir/build/BUILD/gvm-libs-9.0.3/nasl/nasl_grammar.y" 1858 { (yyval.
node) = NULL; }
1859 #line 1860 "nasl_grammar.tab.c" 1863 #line 282 "/builddir/build/BUILD/gvm-libs-9.0.3/nasl/nasl_grammar.y" 1867 (yyval.
node)->link[0] = (yyvsp[-2].node);
1868 (yyval.
node)->link[1] = (yyvsp[0].node);
1870 #line 1871 "nasl_grammar.tab.c" 1874 #line 289 "/builddir/build/BUILD/gvm-libs-9.0.3/nasl/nasl_grammar.y" 1875 { (yyval.
str) = (yyvsp[0].data).val; }
1876 #line 1877 "nasl_grammar.tab.c" 1880 #line 293 "/builddir/build/BUILD/gvm-libs-9.0.3/nasl/nasl_grammar.y" 1885 bzero (&subctx,
sizeof (subctx));
1889 (yyval.
node) = NULL;
1894 (g_str_hash, g_str_equal, g_free,
1901 g_free ((yyvsp[-1].str));
1913 nasl_perror (NULL,
"%s: Parse error at or near line %d\n",
1914 (yyvsp[-1].str), subctx.
line_nb);
1915 g_free ((yyvsp[-1].str));
1924 g_free((yyvsp[-1].str));
1931 #line 1932 "nasl_grammar.tab.c" 1935 #line 346 "/builddir/build/BUILD/gvm-libs-9.0.3/nasl/nasl_grammar.y" 1939 (yyval.
node)->link[0] = (yyvsp[-1].node);
1941 #line 1942 "nasl_grammar.tab.c" 1945 #line 352 "/builddir/build/BUILD/gvm-libs-9.0.3/nasl/nasl_grammar.y" 1946 { (yyval.
node) = NULL; }
1947 #line 1948 "nasl_grammar.tab.c" 1951 #line 354 "/builddir/build/BUILD/gvm-libs-9.0.3/nasl/nasl_grammar.y" 1953 (yyvsp[-2].node)->link[1] = (yyvsp[0].node);
1954 (yyval.
node) = (yyvsp[-2].node);
1956 #line 1957 "nasl_grammar.tab.c" 1960 #line 360 "/builddir/build/BUILD/gvm-libs-9.0.3/nasl/nasl_grammar.y" 1964 (yyval.
node)->link[0] = (yyvsp[0].node);
1966 #line 1967 "nasl_grammar.tab.c" 1970 #line 366 "/builddir/build/BUILD/gvm-libs-9.0.3/nasl/nasl_grammar.y" 1974 (yyval.
node)->link[0] = (yyvsp[0].node);
1976 #line 1977 "nasl_grammar.tab.c" 1980 #line 374 "/builddir/build/BUILD/gvm-libs-9.0.3/nasl/nasl_grammar.y" 1984 #line 1985 "nasl_grammar.tab.c" 1988 #line 377 "/builddir/build/BUILD/gvm-libs-9.0.3/nasl/nasl_grammar.y" 1990 #line 1991 "nasl_grammar.tab.c" 1994 #line 378 "/builddir/build/BUILD/gvm-libs-9.0.3/nasl/nasl_grammar.y" 1996 #line 1997 "nasl_grammar.tab.c" 2000 #line 379 "/builddir/build/BUILD/gvm-libs-9.0.3/nasl/nasl_grammar.y" 2002 #line 2003 "nasl_grammar.tab.c" 2006 #line 380 "/builddir/build/BUILD/gvm-libs-9.0.3/nasl/nasl_grammar.y" 2008 #line 2009 "nasl_grammar.tab.c" 2012 #line 381 "/builddir/build/BUILD/gvm-libs-9.0.3/nasl/nasl_grammar.y" 2014 #line 2015 "nasl_grammar.tab.c" 2018 #line 382 "/builddir/build/BUILD/gvm-libs-9.0.3/nasl/nasl_grammar.y" 2020 #line 2021 "nasl_grammar.tab.c" 2024 #line 383 "/builddir/build/BUILD/gvm-libs-9.0.3/nasl/nasl_grammar.y" 2026 #line 2027 "nasl_grammar.tab.c" 2030 #line 384 "/builddir/build/BUILD/gvm-libs-9.0.3/nasl/nasl_grammar.y" 2032 #line 2033 "nasl_grammar.tab.c" 2036 #line 387 "/builddir/build/BUILD/gvm-libs-9.0.3/nasl/nasl_grammar.y" 2038 #line 2039 "nasl_grammar.tab.c" 2042 #line 389 "/builddir/build/BUILD/gvm-libs-9.0.3/nasl/nasl_grammar.y" 2043 { (yyval.
str) = strdup(
"x"); }
2044 #line 2045 "nasl_grammar.tab.c" 2048 #line 392 "/builddir/build/BUILD/gvm-libs-9.0.3/nasl/nasl_grammar.y" 2052 (yyval.
node)->link[0] = (yyvsp[-1].node);
2054 #line 2055 "nasl_grammar.tab.c" 2058 #line 401 "/builddir/build/BUILD/gvm-libs-9.0.3/nasl/nasl_grammar.y" 2060 #line 2061 "nasl_grammar.tab.c" 2064 #line 402 "/builddir/build/BUILD/gvm-libs-9.0.3/nasl/nasl_grammar.y" 2066 #line 2067 "nasl_grammar.tab.c" 2070 #line 403 "/builddir/build/BUILD/gvm-libs-9.0.3/nasl/nasl_grammar.y" 2072 #line 2073 "nasl_grammar.tab.c" 2076 #line 404 "/builddir/build/BUILD/gvm-libs-9.0.3/nasl/nasl_grammar.y" 2078 #line 2079 "nasl_grammar.tab.c" 2082 #line 408 "/builddir/build/BUILD/gvm-libs-9.0.3/nasl/nasl_grammar.y" 2083 { (yyval.
node) = (yyvsp[-1].node); }
2084 #line 2085 "nasl_grammar.tab.c" 2088 #line 409 "/builddir/build/BUILD/gvm-libs-9.0.3/nasl/nasl_grammar.y" 2090 #line 2091 "nasl_grammar.tab.c" 2094 #line 410 "/builddir/build/BUILD/gvm-libs-9.0.3/nasl/nasl_grammar.y" 2096 #line 2097 "nasl_grammar.tab.c" 2100 #line 411 "/builddir/build/BUILD/gvm-libs-9.0.3/nasl/nasl_grammar.y" 2102 #line 2103 "nasl_grammar.tab.c" 2106 #line 412 "/builddir/build/BUILD/gvm-libs-9.0.3/nasl/nasl_grammar.y" 2108 #line 2109 "nasl_grammar.tab.c" 2112 #line 413 "/builddir/build/BUILD/gvm-libs-9.0.3/nasl/nasl_grammar.y" 2114 #line 2115 "nasl_grammar.tab.c" 2118 #line 414 "/builddir/build/BUILD/gvm-libs-9.0.3/nasl/nasl_grammar.y" 2120 #line 2121 "nasl_grammar.tab.c" 2124 #line 415 "/builddir/build/BUILD/gvm-libs-9.0.3/nasl/nasl_grammar.y" 2126 #line 2127 "nasl_grammar.tab.c" 2130 #line 416 "/builddir/build/BUILD/gvm-libs-9.0.3/nasl/nasl_grammar.y" 2132 #line 2133 "nasl_grammar.tab.c" 2136 #line 417 "/builddir/build/BUILD/gvm-libs-9.0.3/nasl/nasl_grammar.y" 2138 #line 2139 "nasl_grammar.tab.c" 2142 #line 418 "/builddir/build/BUILD/gvm-libs-9.0.3/nasl/nasl_grammar.y" 2144 #line 2145 "nasl_grammar.tab.c" 2148 #line 419 "/builddir/build/BUILD/gvm-libs-9.0.3/nasl/nasl_grammar.y" 2150 #line 2151 "nasl_grammar.tab.c" 2154 #line 420 "/builddir/build/BUILD/gvm-libs-9.0.3/nasl/nasl_grammar.y" 2156 #line 2157 "nasl_grammar.tab.c" 2160 #line 421 "/builddir/build/BUILD/gvm-libs-9.0.3/nasl/nasl_grammar.y" 2162 #line 2163 "nasl_grammar.tab.c" 2166 #line 422 "/builddir/build/BUILD/gvm-libs-9.0.3/nasl/nasl_grammar.y" 2168 #line 2169 "nasl_grammar.tab.c" 2172 #line 423 "/builddir/build/BUILD/gvm-libs-9.0.3/nasl/nasl_grammar.y" 2174 #line 2175 "nasl_grammar.tab.c" 2178 #line 424 "/builddir/build/BUILD/gvm-libs-9.0.3/nasl/nasl_grammar.y" 2180 #line 2181 "nasl_grammar.tab.c" 2184 #line 425 "/builddir/build/BUILD/gvm-libs-9.0.3/nasl/nasl_grammar.y" 2186 #line 2187 "nasl_grammar.tab.c" 2190 #line 427 "/builddir/build/BUILD/gvm-libs-9.0.3/nasl/nasl_grammar.y" 2192 #line 2193 "nasl_grammar.tab.c" 2196 #line 428 "/builddir/build/BUILD/gvm-libs-9.0.3/nasl/nasl_grammar.y" 2198 #line 2199 "nasl_grammar.tab.c" 2202 #line 429 "/builddir/build/BUILD/gvm-libs-9.0.3/nasl/nasl_grammar.y" 2204 #line 2205 "nasl_grammar.tab.c" 2208 #line 430 "/builddir/build/BUILD/gvm-libs-9.0.3/nasl/nasl_grammar.y" 2210 #line 2211 "nasl_grammar.tab.c" 2214 #line 431 "/builddir/build/BUILD/gvm-libs-9.0.3/nasl/nasl_grammar.y" 2216 #line 2217 "nasl_grammar.tab.c" 2220 #line 432 "/builddir/build/BUILD/gvm-libs-9.0.3/nasl/nasl_grammar.y" 2222 #line 2223 "nasl_grammar.tab.c" 2226 #line 433 "/builddir/build/BUILD/gvm-libs-9.0.3/nasl/nasl_grammar.y" 2228 #line 2229 "nasl_grammar.tab.c" 2232 #line 434 "/builddir/build/BUILD/gvm-libs-9.0.3/nasl/nasl_grammar.y" 2234 #line 2235 "nasl_grammar.tab.c" 2238 #line 435 "/builddir/build/BUILD/gvm-libs-9.0.3/nasl/nasl_grammar.y" 2240 #line 2241 "nasl_grammar.tab.c" 2244 #line 436 "/builddir/build/BUILD/gvm-libs-9.0.3/nasl/nasl_grammar.y" 2246 #line 2247 "nasl_grammar.tab.c" 2250 #line 440 "/builddir/build/BUILD/gvm-libs-9.0.3/nasl/nasl_grammar.y" 2252 #line 2253 "nasl_grammar.tab.c" 2256 #line 442 "/builddir/build/BUILD/gvm-libs-9.0.3/nasl/nasl_grammar.y" 2257 { (yyval.
node) = (yyvsp[0].node); }
2258 #line 2259 "nasl_grammar.tab.c" 2262 #line 443 "/builddir/build/BUILD/gvm-libs-9.0.3/nasl/nasl_grammar.y" 2264 (yyvsp[-2].node)->link[1] = (yyvsp[0].node); (yyval.
node) = (yyvsp[-2].node);
2266 #line 2267 "nasl_grammar.tab.c" 2270 #line 447 "/builddir/build/BUILD/gvm-libs-9.0.3/nasl/nasl_grammar.y" 2273 (yyval.
node)->link[0] = (yyvsp[0].node);
2275 #line 2276 "nasl_grammar.tab.c" 2279 #line 450 "/builddir/build/BUILD/gvm-libs-9.0.3/nasl/nasl_grammar.y" 2282 (yyval.
node)->link[0] = (yyvsp[0].node);
2285 #line 2286 "nasl_grammar.tab.c" 2289 #line 456 "/builddir/build/BUILD/gvm-libs-9.0.3/nasl/nasl_grammar.y" 2291 #line 2292 "nasl_grammar.tab.c" 2295 #line 457 "/builddir/build/BUILD/gvm-libs-9.0.3/nasl/nasl_grammar.y" 2298 (yyval.
node)->size = strlen((yyvsp[0].str));
2300 #line 2301 "nasl_grammar.tab.c" 2304 #line 461 "/builddir/build/BUILD/gvm-libs-9.0.3/nasl/nasl_grammar.y" 2307 (yyval.
node)->size = (yyvsp[0].data).len;
2309 #line 2310 "nasl_grammar.tab.c" 2313 #line 468 "/builddir/build/BUILD/gvm-libs-9.0.3/nasl/nasl_grammar.y" 2315 #line 2316 "nasl_grammar.tab.c" 2319 #line 474 "/builddir/build/BUILD/gvm-libs-9.0.3/nasl/nasl_grammar.y" 2321 char *s = g_strdup_printf (
"%ld.%ld.%ld.%ld", (yyvsp[-6].num), (yyvsp[-4].num), (yyvsp[-2].num), (yyvsp[0].num));
2324 (yyval.
node)->size = strlen(s);
2326 #line 2327 "nasl_grammar.tab.c" 2330 #line 483 "/builddir/build/BUILD/gvm-libs-9.0.3/nasl/nasl_grammar.y" 2334 (yyval.
node)->link[0] = (yyvsp[0].node);
2336 #line 2337 "nasl_grammar.tab.c" 2340 #line 491 "/builddir/build/BUILD/gvm-libs-9.0.3/nasl/nasl_grammar.y" 2344 (yyval.
node)->link[0] = (yyvsp[0].node);
2346 #line 2347 "nasl_grammar.tab.c" 2350 #line 2351 "nasl_grammar.tab.c" 2378 yystate = yypgoto[yyn -
YYNTOKENS] + *yyssp;
2379 if (0 <= yystate && yystate <=
YYLAST && yycheck[yystate] == *yyssp)
2380 yystate = yytable[yystate];
2399 #if ! YYERROR_VERBOSE 2402 # define YYSYNTAX_ERROR yysyntax_error (&yymsg_alloc, &yymsg, \ 2405 char const *yymsgp =
YY_(
"syntax error");
2406 int yysyntax_error_status;
2408 if (yysyntax_error_status == 0)
2410 else if (yysyntax_error_status == 1)
2412 if (yymsg != yymsgbuf)
2418 yymsg_alloc =
sizeof yymsgbuf;
2419 yysyntax_error_status = 2;
2428 if (yysyntax_error_status == 2)
2429 goto yyexhaustedlab;
2431 # undef YYSYNTAX_ERROR 2437 if (yyerrstatus == 3)
2442 if (yychar <=
YYEOF)
2445 if (yychar ==
YYEOF)
2450 yydestruct (
"Error: discarding",
2451 yytoken, &yylval, parm);
2489 yyn = yypact[yystate];
2506 yydestruct (
"Error: popping",
2507 yystos[yystate], yyvsp, parm);
2539 #if !defined yyoverflow || YYERROR_VERBOSE 2555 yydestruct (
"Cleanup: discarding lookahead",
2556 yytoken, &yylval, parm);
2562 while (yyssp != yyss)
2564 yydestruct (
"Cleanup: popping",
2565 yystos[*yyssp], yyvsp, parm);
2573 if (yymsg != yymsgbuf)
2578 #line 497 "/builddir/build/BUILD/gvm-libs-9.0.3/nasl/nasl_grammar.y" 2583 #include "../misc/openvas_logging.h" 2584 #include "../misc/prefs.h" 2585 #include "../base/openvas_file.h" 2590 naslerror(
naslctxt *parm,
const char *s)
2595 static GSList * inc_dirs = NULL;
2619 inc_dirs = g_slist_append (inc_dirs, g_strdup((gchar *)dir));
2623 struct stat stat_buf;
2625 if (stat (dir, &stat_buf) != 0)
2628 if (S_ISDIR(stat_buf.st_mode) != 0)
2630 inc_dirs = g_slist_append (inc_dirs, g_strdup((gchar *)dir));
2646 file_checksum (
const char *filename,
int algorithm)
2648 char *content = NULL, digest[128], *result;
2649 size_t len = 0, i, alglen;
2651 assert (algorithm == GCRY_MD_MD5 || algorithm == GCRY_MD_SHA256);
2652 if (!filename || !g_file_get_contents (filename, &content, &len, NULL))
2655 gcry_md_hash_buffer (algorithm, digest, content, len);
2656 alglen = gcry_md_get_algo_dlen (algorithm);
2657 result = g_malloc0 (alglen * 2 + 1);
2658 for (i = 0; i < alglen; i++)
2659 snprintf (result + 2 * i, 3,
"%02x", (
unsigned char) digest[i]);
2665 static int checksum_algorithm = GCRY_MD_NONE;
2667 static char checksum_file[2048];
2670 init_checksum_algorithm (
void)
2672 const char *base =
prefs_get (
"plugins_folder");
2674 checksum_algorithm = GCRY_MD_SHA256;
2675 snprintf (checksum_file,
sizeof (checksum_file),
"%s/sha256sums", base);
2676 if (g_file_test (checksum_file, G_FILE_TEST_EXISTS))
2678 checksum_algorithm = GCRY_MD_MD5;
2679 snprintf (checksum_file,
sizeof (checksum_file),
"%s/md5sums", base);
2680 if (g_file_test (checksum_file, G_FILE_TEST_EXISTS))
2682 if (checksum_algorithm == GCRY_MD_NONE)
2692 static int loaded = 0;
2693 const char *base, *prefix;
2709 file = fopen (checksum_file,
"r");
2716 if (checksum_algorithm == GCRY_MD_MD5)
2718 kb_del_items (
kb,
"md5sums:*");
2723 kb_del_items (
kb,
"sha256sums:*");
2724 prefix =
"sha256sums";
2728 char buffer[2048], **splits;
2729 if (!fgets (buffer,
sizeof (buffer), file))
2731 if (strstr (buffer,
".asc")
2732 || (!strstr (buffer,
".inc") && !strstr (buffer,
".nasl")))
2734 splits = g_strsplit (buffer,
" ", -1);
2735 if (g_strv_length (splits) != 2)
2739 g_strfreev (splits);
2742 splits[1][strlen (splits[1]) - 1] =
'\0';
2743 if (strstr (splits[1],
".inc"))
2744 g_snprintf (buffer,
sizeof (buffer),
"%s:%s", prefix,
2745 basename (splits[1]));
2747 g_snprintf (buffer,
sizeof (buffer),
"%s:%s/%s", prefix, base,
2749 kb_item_set_str (
kb, buffer, splits[0]);
2750 g_strfreev (splits);
2774 char *full_name = NULL, key_path[2048], *checksum, *filename, *check = NULL;
2775 GSList * inc_dir = inc_dirs;
2782 pc->
buffer = g_malloc0 (80);
2786 while (inc_dir != NULL) {
2789 full_name = g_build_filename(inc_dir->data,
name, NULL);
2791 if ((pc->
fp = fopen(full_name,
"r")) != NULL)
2794 inc_dir = g_slist_next(inc_dir);
2798 log_legacy_write (
"%s: Not able to open nor to locate it in include paths",
2812 filename = full_name;
2813 if (strstr (full_name,
".inc"))
2814 filename = basename (full_name);
2815 init_checksum_algorithm ();
2816 if (checksum_algorithm == GCRY_MD_NONE)
2819 snprintf (key_path,
sizeof (key_path),
"checksum:%s", filename);
2820 checksum = kb_item_get_str (pc->
kb, key_path);
2824 check = file_checksum (full_name, checksum_algorithm);
2825 ret = strcmp (check, checksum);
2838 load_checksums (pc->
kb);
2839 if (checksum_algorithm == GCRY_MD_MD5)
2840 snprintf (key_path,
sizeof (key_path),
"md5sums:%s", filename);
2841 else if (checksum_algorithm == GCRY_MD_SHA256)
2842 snprintf (key_path,
sizeof (key_path),
"sha256sums:%s", filename);
2845 checksum = kb_item_get_str (pc->
kb, key_path);
2856 check = file_checksum (full_name, checksum_algorithm);
2857 ret = strcmp (check, checksum);
2862 snprintf (key_path,
sizeof (key_path),
"checksum:%s", filename);
2863 kb_item_set_str (pc->
kb, key_path, check);
2944 while ((c = getc(fp)) != EOF)
2954 else if (isalpha(c) || c ==
'_')
2960 else if (isspace(c))
2964 else if (isdigit(c))
3031 *p++ =
'\f'; len ++;
3034 *p++ =
'\t'; len ++;
3040 *p++ =
'\v'; len ++;
3043 *p ++ =
'"'; len ++;
3055 for (i = 0; i < 2; i ++)
3060 nasl_perror(NULL,
"Unfinished \\x escape sequence (EOF)\n");
3067 if (c >=
'0' && c <=
'9')
3068 x = x * 16 + (c -
'0');
3069 else if (c >=
'a' && c <=
'f')
3070 x = x * 16 + 10 + (c -
'a');
3073 nasl_perror(NULL,
"Unfinished \\x escape sequence\n");
3084 nasl_perror(NULL,
"Unknown escape sequence \\%c\n", c);
3099 if (isalnum(c) || c ==
'_')
3115 if (c ==
'x' || c ==
'X')
3117 else if (isdigit(c))
3227 if (! isprint(c)) c =
'.';
3229 "parsed as >!< %c", c, c);
3399 int offs = p - ctx->
buffer;
3419 lvalp->str = g_strdup(ctx->
buffer);
3424 lvalp->data.val = g_malloc0 (len+2);
3425 memcpy(lvalp->data.val, ctx->
buffer, len+1);
3426 lvalp->data.len = len;
3430 if (strcmp(ctx->
buffer,
"if") == 0)
3432 else if (strcmp(ctx->
buffer,
"else") == 0)
3434 else if (strcmp(ctx->
buffer,
"for") == 0)
3436 else if (strcmp(ctx->
buffer,
"while") == 0)
3438 else if (strcmp(ctx->
buffer,
"repeat") == 0)
3440 else if (strcmp(ctx->
buffer,
"until") == 0)
3442 else if (strcmp(ctx->
buffer,
"foreach") == 0)
3444 else if (strcmp(ctx->
buffer,
"function") == 0)
3446 else if (strcmp(ctx->
buffer,
"return") == 0)
3448 else if (strcmp(ctx->
buffer,
"x") == 0)
3450 else if (strcmp(ctx->
buffer,
"include") == 0)
3452 else if (strcmp(ctx->
buffer,
"break") == 0)
3454 else if (strcmp(ctx->
buffer,
"continue") == 0)
3456 else if (strcmp(ctx->
buffer,
"local_var") == 0)
3458 else if (strcmp(ctx->
buffer,
"global_var") == 0)
3463 lvalp->str = g_strdup(ctx->
buffer);
3472 lvalp->num = x = strtoul(ctx->
buffer, NULL, 10);
3473 #if NASL_DEBUG > 1 && defined(ULONG_MAX) && defined(ERANGE) 3474 if (x == ULONG_MAX && errno == ERANGE)
3480 lvalp->num = x = strtoul(ctx->
buffer, NULL, 8);
3481 #if NASL_DEBUG > 1 && defined(ULONG_MAX) && defined(ERANGE) 3482 if (x == ULONG_MAX && errno == ERANGE)
3488 lvalp->num = x = strtoul(ctx->
buffer, NULL, 16);
3489 #if NASL_DEBUG > 1 && defined(ULONG_MAX) 3491 nasl_perror(NULL,
"Possible integer overflow while converting %s at or near line %d\n", ctx->
buffer, ctx->
line_nb);
3496 nasl_perror(NULL,
"Invalid token 0x parsed as 0 at line %d\n",
3507 nasllex(
YYSTYPE * lvalp,
void * parm)
3509 int x = mylex (lvalp, parm);
#define YY_INITIAL_VALUE(Value)
const char * nasl_get_filename(const char *function)
void ref_cell(tree_cell *c)
void nasl_clean_ctx(naslctxt *c)
#define YY_IGNORE_MAYBE_UNINITIALIZED_END
struct YYSTYPE::asciiz data
void nasl_dump_tree(const tree_cell *c)
void nasl_clean_inc(void)
tree_cell * make_array_from_elems(tree_cell *el)
void deref_cell(tree_cell *c)
#define YY_SYMBOL_PRINT(Title, Type, Value, Location)
#define yypact_value_is_default(Yystate)
unsigned short int yytype_uint16
#define yytable_value_is_error(Yytable_value)
#define YYSTACK_RELOCATE(Stack_alloc, Stack)
void nasl_set_filename(const char *filename)
void log_legacy_write(const char *format,...)
Legacy function to write a log message.
const gchar * prefs_get(const gchar *key)
Get a string preference value via a key.
#define YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN
tree_cell * alloc_typed_cell(int typ)
int add_nasl_inc_dir(const char *dir)
Adds the given string as directory for searching for includes.
tree_cell * alloc_RE_cell(int lnb, int t, tree_cell *l, char *re_str)
#define YY_REDUCE_PRINT(Rule)
Top-level KB. This is to be inherited by KB implementations.
void nasl_perror(lex_ctxt *lexic, char *msg,...)
int nasl_verify_signature(const char *filename)
int naslparse(naslctxt *parm)
unsigned char yytype_uint8
tree_cell * alloc_tree_cell(int lnb, char *s)
void nasl_set_function_filename(const char *function)
#define YYSTACK_ALLOC_MAXIMUM
tree_cell * alloc_expr_cell(int lnb, int t, tree_cell *l, tree_cell *r)
GHashTable * includes_hash
#define YY_STACK_PRINT(Bottom, Top)
int init_nasl_ctx(naslctxt *pc, const char *name)
Initialize a NASL context for a NASL file.