|
OpenVAS Scanner
7.0.1~git
|
#include <ctype.h>#include <pcap.h>#include <string.h>#include <sys/stat.h>#include <glib.h>#include "nasl_tree.h"#include "nasl_global_ctxt.h"#include "nasl_func.h"#include "nasl_var.h"#include "nasl_lex_ctxt.h"#include "nasl_debug.h"#include "nasl_signature.h"#include <limits.h>#include <stdio.h>#include <stdlib.h>#include <gvm/base/logging.h>#include <gvm/base/prefs.h>#include <libgen.h>#include <gcrypt.h>
Go to the source code of this file.
Data Structures | |
| union | YYSTYPE |
| struct | YYSTYPE::asciiz |
| union | yyalloc |
Macros | |
| #define | YYBISON 1 |
| #define | YYBISON_VERSION "3.5" |
| #define | YYSKELETON_NAME "yacc.c" |
| #define | YYPURE 1 |
| #define | YYPUSH 0 |
| #define | YYPULL 1 |
| #define | yyparse naslparse |
| #define | yylex nasllex |
| #define | yyerror naslerror |
| #define | yydebug nasldebug |
| #define | yynerrs naslnerrs |
| #define | YYPARSE_PARAM parm |
| #define | YYLEX_PARAM parm |
| #define | LNB (((naslctxt*)parm)->line_nb) |
| #define | G_LOG_DOMAIN "lib nasl" |
| GLib logging domain. More... | |
| #define | YYERROR_VERBOSE |
| #define | YY_CAST(Type, Val) ((Type) (Val)) |
| #define | YY_REINTERPRET_CAST(Type, Val) ((Type) (Val)) |
| #define | YY_NULLPTR ((void*)0) |
| #define | YYERROR_VERBOSE 1 |
| #define | YY_NASL_NASL_GRAMMAR_TAB_H_INCLUDED |
| #define | YYDEBUG 1 |
| #define | YYTOKENTYPE |
| #define | YYSTYPE_IS_TRIVIAL 1 |
| #define | YYSTYPE_IS_DECLARED 1 |
| #define | YYPTRDIFF_T long |
| #define | YYPTRDIFF_MAXIMUM LONG_MAX |
| #define | YYSIZE_T unsigned |
| #define | YYSIZE_MAXIMUM |
| #define | YYSIZEOF(X) YY_CAST (YYPTRDIFF_T, sizeof (X)) |
| #define | YY_(Msgid) Msgid |
| #define | YY_ATTRIBUTE_PURE |
| #define | YY_ATTRIBUTE_UNUSED |
| #define | YYUSE(E) ((void) (E)) |
| #define | YY_INITIAL_VALUE(Value) Value |
| #define | YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN |
| #define | YY_IGNORE_MAYBE_UNINITIALIZED_END |
| #define | YY_IGNORE_USELESS_CAST_BEGIN |
| #define | YY_IGNORE_USELESS_CAST_END |
| #define | YY_ASSERT(E) ((void) (0 && (E))) |
| #define | YYSTACK_ALLOC YYMALLOC |
| #define | YYSTACK_FREE YYFREE |
| #define | YYSTACK_ALLOC_MAXIMUM YYSIZE_MAXIMUM |
| #define | YYMALLOC malloc |
| #define | YYFREE free |
| #define | YYSTACK_GAP_MAXIMUM (YYSIZEOF (union yyalloc) - 1) |
| #define | YYSTACK_BYTES(N) |
| #define | YYCOPY_NEEDED 1 |
| #define | YYSTACK_RELOCATE(Stack_alloc, Stack) |
| #define | YYCOPY(Dst, Src, Count) |
| #define | YYFINAL 78 |
| #define | YYLAST 1029 |
| #define | YYNTOKENS 73 |
| #define | YYNNTS 43 |
| #define | YYNRULES 126 |
| #define | YYNSTATES 227 |
| #define | YYUNDEFTOK 2 |
| #define | YYMAXUTOK 304 |
| #define | YYTRANSLATE(YYX) (0 <= (YYX) && (YYX) <= YYMAXUTOK ? yytranslate[YYX] : YYUNDEFTOK) |
| #define | YYPACT_NINF (-91) |
| #define | yypact_value_is_default(Yyn) ((Yyn) == YYPACT_NINF) |
| #define | YYTABLE_NINF (-69) |
| #define | yytable_value_is_error(Yyn) ((Yyn) == YYTABLE_NINF) |
| #define | yyerrok (yyerrstatus = 0) |
| #define | yyclearin (yychar = YYEMPTY) |
| #define | YYEMPTY (-2) |
| #define | YYEOF 0 |
| #define | YYACCEPT goto yyacceptlab |
| #define | YYABORT goto yyabortlab |
| #define | YYERROR goto yyerrorlab |
| #define | YYRECOVERING() (!!yyerrstatus) |
| #define | YYBACKUP(Token, Value) |
| #define | YYTERROR 1 |
| #define | YYERRCODE 256 |
| #define | YYFPRINTF fprintf |
| #define | YYDPRINTF(Args) |
| #define | YY_LOCATION_PRINT(File, Loc) ((void) 0) |
| #define | YY_SYMBOL_PRINT(Title, Type, Value, Location) |
| #define | YY_STACK_PRINT(Bottom, Top) |
| #define | YY_REDUCE_PRINT(Rule) |
| #define | YYINITDEPTH 200 |
| #define | YYMAXDEPTH 10000 |
| #define | YYCASE_(N, S) |
| #define | YYPOPSTACK(N) (yyvsp -= (N), yyssp -= (N)) |
| #define | YYSYNTAX_ERROR |
Typedefs | |
| typedef union YYSTYPE | YYSTYPE |
| typedef signed char | yytype_int8 |
| typedef short | yytype_int16 |
| typedef unsigned char | yytype_uint8 |
| typedef unsigned short | yytype_uint16 |
| typedef yytype_uint8 | yy_state_t |
| typedef int | yy_state_fast_t |
Enumerations | |
| enum | yytokentype { IF = 258, ELSE = 259, EQ = 260, NEQ = 261, SUPEQ = 262, INFEQ = 263, OR = 264, AND = 265, MATCH = 266, NOMATCH = 267, REP = 268, FOR = 269, REPEAT = 270, UNTIL = 271, FOREACH = 272, WHILE = 273, BREAK = 274, CONTINUE = 275, FUNCTION = 276, RETURN = 277, INCLUDE = 278, LOCAL = 279, GLOBAL = 280, PLUS_PLUS = 281, MINUS_MINUS = 282, L_SHIFT = 283, R_SHIFT = 284, R_USHIFT = 285, EXPO = 286, PLUS_EQ = 287, MINUS_EQ = 288, MULT_EQ = 289, DIV_EQ = 290, MODULO_EQ = 291, L_SHIFT_EQ = 292, R_SHIFT_EQ = 293, R_USHIFT_EQ = 294, RE_MATCH = 295, RE_NOMATCH = 296, ARROW = 297, IDENT = 298, STRING1 = 299, STRING2 = 300, INTEGER = 301, NOT = 302, UMINUS = 303, BIT_NOT = 304, IF = 258, ELSE = 259, EQ = 260, NEQ = 261, SUPEQ = 262, INFEQ = 263, OR = 264, AND = 265, MATCH = 266, NOMATCH = 267, REP = 268, FOR = 269, REPEAT = 270, UNTIL = 271, FOREACH = 272, WHILE = 273, BREAK = 274, CONTINUE = 275, FUNCTION = 276, RETURN = 277, INCLUDE = 278, LOCAL = 279, GLOBAL = 280, PLUS_PLUS = 281, MINUS_MINUS = 282, L_SHIFT = 283, R_SHIFT = 284, R_USHIFT = 285, EXPO = 286, PLUS_EQ = 287, MINUS_EQ = 288, MULT_EQ = 289, DIV_EQ = 290, MODULO_EQ = 291, L_SHIFT_EQ = 292, R_SHIFT_EQ = 293, R_USHIFT_EQ = 294, RE_MATCH = 295, RE_NOMATCH = 296, ARROW = 297, IDENT = 298, STRING1 = 299, STRING2 = 300, INTEGER = 301, NOT = 302, UMINUS = 303, BIT_NOT = 304 } |
| enum | lex_state { ST_START = 0, ST_SPACE, ST_IDENT, ST_ZERO, ST_ZEROX, ST_OCT, ST_DEC, ST_HEX, ST_COMMENT, ST_SUP, ST_INF, ST_SUP_EXCL, ST_STRING1, ST_STRING1_ESC, ST_STRING2, ST_PLUS, ST_MINUS, ST_MULT, ST_DIV, ST_MODULO, ST_R_SHIFT, ST_R_USHIFT, ST_L_SHIFT, ST_NOT, ST_EQ, ST_AND, ST_OR } |
Functions | |
| static void | naslerror (naslctxt *, const char *) |
| int | naslparse (naslctxt *parm) |
| static int | nasllex (YYSTYPE *lvalp, void *parm) |
| void * | malloc (YYSIZE_T) |
| void | free (void *) |
| static void | yy_symbol_value_print (FILE *yyo, int yytype, YYSTYPE const *const yyvaluep, naslctxt *parm) |
| static void | yy_symbol_print (FILE *yyo, int yytype, YYSTYPE const *const yyvaluep, naslctxt *parm) |
| static void | yy_stack_print (yy_state_t *yybottom, yy_state_t *yytop) |
| static void | yy_reduce_print (yy_state_t *yyssp, YYSTYPE *yyvsp, int yyrule, naslctxt *parm) |
| static YYPTRDIFF_T | yystrlen (const char *yystr) |
| static char * | yystpcpy (char *yydest, const char *yysrc) |
| static YYPTRDIFF_T | yytnamerr (char *yyres, const char *yystr) |
| static int | yysyntax_error (YYPTRDIFF_T *yymsg_alloc, char **yymsg, yy_state_t *yyssp, int yytoken) |
| static void | yydestruct (const char *yymsg, int yytype, YYSTYPE *yyvaluep, naslctxt *parm) |
| int | yyparse (naslctxt *parm) |
| int | add_nasl_inc_dir (const char *dir) |
| Adds the given string as directory for searching for includes. More... | |
| static void | load_checksums (kb_t kb) |
| static char * | file_checksum (const char *filename, int algorithm) |
| Get the checksum of a file. More... | |
| int | init_nasl_ctx (naslctxt *pc, const char *name) |
| Initialize a NASL context for a NASL file. More... | |
| void | nasl_clean_ctx (naslctxt *c) |
| void | nasl_clean_inc (void) |
| static int | mylex (YYSTYPE *lvalp, void *parm) |
Variables | |
| static char * | parse_buffer = NULL |
| static int | parse_len = 0 |
| GHashTable * | includes_hash = NULL |
| int | nasldebug |
| static const yytype_int8 | yytranslate [] |
| static const yytype_int16 | yyrline [] |
| static const char *const | yytname [] |
| static const yytype_int16 | yypact [] |
| static const yytype_int8 | yydefact [] |
| static const yytype_int16 | yypgoto [] |
| static const yytype_int16 | yydefgoto [] |
| static const yytype_int16 | yytable [] |
| static const yytype_int16 | yycheck [] |
| static const yytype_int8 | yystos [] |
| static const yytype_int8 | yyr1 [] |
| static const yytype_int8 | yyr2 [] |
| int | yydebug |
| static GSList * | inc_dirs = NULL |
| static int | checksum_algorithm = GCRY_MD_NONE |
| #define G_LOG_DOMAIN "lib nasl" |
GLib logging domain.
Definition at line 118 of file nasl_grammar.tab.c.
| #define LNB (((naslctxt*)parm)->line_nb) |
Definition at line 97 of file nasl_grammar.tab.c.
| #define YY_ | ( | Msgid | ) | Msgid |
Definition at line 374 of file nasl_grammar.tab.c.
| #define YY_ASSERT | ( | E | ) | ((void) (0 && (E))) |
Definition at line 433 of file nasl_grammar.tab.c.
| #define YY_ATTRIBUTE_PURE |
Definition at line 382 of file nasl_grammar.tab.c.
| #define YY_ATTRIBUTE_UNUSED |
Definition at line 390 of file nasl_grammar.tab.c.
| #define YY_CAST | ( | Type, | |
| Val | |||
| ) | ((Type) (Val)) |
Definition at line 137 of file nasl_grammar.tab.c.
| #define YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN |
Definition at line 413 of file nasl_grammar.tab.c.
| #define YY_IGNORE_MAYBE_UNINITIALIZED_END |
Definition at line 414 of file nasl_grammar.tab.c.
| #define YY_IGNORE_USELESS_CAST_BEGIN |
Definition at line 428 of file nasl_grammar.tab.c.
| #define YY_IGNORE_USELESS_CAST_END |
Definition at line 429 of file nasl_grammar.tab.c.
| #define YY_INITIAL_VALUE | ( | Value | ) | Value |
Definition at line 410 of file nasl_grammar.tab.c.
| #define YY_LOCATION_PRINT | ( | File, | |
| Loc | |||
| ) | ((void) 0) |
Definition at line 1108 of file nasl_grammar.tab.c.
| #define YY_NASL_NASL_GRAMMAR_TAB_H_INCLUDED |
Definition at line 164 of file nasl_grammar.tab.c.
| #define YY_NULLPTR ((void*)0) |
Definition at line 149 of file nasl_grammar.tab.c.
| #define YY_REDUCE_PRINT | ( | Rule | ) |
Definition at line 1208 of file nasl_grammar.tab.c.
| #define YY_REINTERPRET_CAST | ( | Type, | |
| Val | |||
| ) | ((Type) (Val)) |
Definition at line 138 of file nasl_grammar.tab.c.
| #define YY_STACK_PRINT | ( | Bottom, | |
| Top | |||
| ) |
Definition at line 1177 of file nasl_grammar.tab.c.
| #define YY_SYMBOL_PRINT | ( | Title, | |
| Type, | |||
| Value, | |||
| Location | |||
| ) |
Definition at line 1112 of file nasl_grammar.tab.c.
| #define YYABORT goto yyabortlab |
Definition at line 1063 of file nasl_grammar.tab.c.
| #define YYACCEPT goto yyacceptlab |
Definition at line 1062 of file nasl_grammar.tab.c.
| #define YYBACKUP | ( | Token, | |
| Value | |||
| ) |
Definition at line 1069 of file nasl_grammar.tab.c.
| #define YYBISON 1 |
Definition at line 48 of file nasl_grammar.tab.c.
| #define YYBISON_VERSION "3.5" |
Definition at line 51 of file nasl_grammar.tab.c.
| #define YYCASE_ | ( | N, | |
| S | |||
| ) |
| #define yyclearin (yychar = YYEMPTY) |
Definition at line 1058 of file nasl_grammar.tab.c.
| #define YYCOPY | ( | Dst, | |
| Src, | |||
| Count | |||
| ) |
Definition at line 551 of file nasl_grammar.tab.c.
| #define YYCOPY_NEEDED 1 |
Definition at line 523 of file nasl_grammar.tab.c.
| #define yydebug nasldebug |
Definition at line 70 of file nasl_grammar.tab.c.
| #define YYDEBUG 1 |
Definition at line 167 of file nasl_grammar.tab.c.
| #define YYDPRINTF | ( | Args | ) |
Definition at line 1100 of file nasl_grammar.tab.c.
| #define YYEMPTY (-2) |
Definition at line 1059 of file nasl_grammar.tab.c.
| #define YYEOF 0 |
Definition at line 1060 of file nasl_grammar.tab.c.
| #define YYERRCODE 256 |
Definition at line 1088 of file nasl_grammar.tab.c.
| #define yyerrok (yyerrstatus = 0) |
Definition at line 1057 of file nasl_grammar.tab.c.
| #define yyerror naslerror |
Definition at line 69 of file nasl_grammar.tab.c.
| #define YYERROR goto yyerrorlab |
Definition at line 1064 of file nasl_grammar.tab.c.
| #define YYERROR_VERBOSE |
Definition at line 156 of file nasl_grammar.tab.c.
| #define YYERROR_VERBOSE 1 |
Definition at line 156 of file nasl_grammar.tab.c.
| #define YYFINAL 78 |
Definition at line 564 of file nasl_grammar.tab.c.
| #define YYFPRINTF fprintf |
Definition at line 1097 of file nasl_grammar.tab.c.
| #define YYFREE free |
Definition at line 494 of file nasl_grammar.tab.c.
| #define YYINITDEPTH 200 |
Definition at line 1227 of file nasl_grammar.tab.c.
| #define YYLAST 1029 |
Definition at line 566 of file nasl_grammar.tab.c.
| #define yylex nasllex |
Definition at line 68 of file nasl_grammar.tab.c.
| #define YYLEX_PARAM parm |
Definition at line 95 of file nasl_grammar.tab.c.
| #define YYMALLOC malloc |
Definition at line 488 of file nasl_grammar.tab.c.
| #define YYMAXDEPTH 10000 |
Definition at line 1238 of file nasl_grammar.tab.c.
| #define YYMAXUTOK 304 |
Definition at line 578 of file nasl_grammar.tab.c.
| #define yynerrs naslnerrs |
Definition at line 71 of file nasl_grammar.tab.c.
| #define YYNNTS 43 |
Definition at line 571 of file nasl_grammar.tab.c.
| #define YYNRULES 126 |
Definition at line 573 of file nasl_grammar.tab.c.
| #define YYNSTATES 227 |
Definition at line 575 of file nasl_grammar.tab.c.
| #define YYNTOKENS 73 |
Definition at line 569 of file nasl_grammar.tab.c.
| #define YYPACT_NINF (-91) |
Definition at line 685 of file nasl_grammar.tab.c.
| #define yypact_value_is_default | ( | Yyn | ) | ((Yyn) == YYPACT_NINF) |
Definition at line 687 of file nasl_grammar.tab.c.
| #define yyparse naslparse |
Definition at line 67 of file nasl_grammar.tab.c.
| #define YYPARSE_PARAM parm |
Definition at line 94 of file nasl_grammar.tab.c.
| #define YYPOPSTACK | ( | N | ) | (yyvsp -= (N), yyssp -= (N)) |
| #define YYPTRDIFF_MAXIMUM LONG_MAX |
Definition at line 335 of file nasl_grammar.tab.c.
| #define YYPTRDIFF_T long |
Definition at line 334 of file nasl_grammar.tab.c.
| #define YYPULL 1 |
Definition at line 63 of file nasl_grammar.tab.c.
| #define YYPURE 1 |
Definition at line 57 of file nasl_grammar.tab.c.
| #define YYPUSH 0 |
Definition at line 60 of file nasl_grammar.tab.c.
| #define YYRECOVERING | ( | ) | (!!yyerrstatus) |
Definition at line 1067 of file nasl_grammar.tab.c.
| #define YYSIZE_MAXIMUM |
Definition at line 352 of file nasl_grammar.tab.c.
| #define YYSIZE_T unsigned |
Definition at line 348 of file nasl_grammar.tab.c.
| #define YYSIZEOF | ( | X | ) | YY_CAST (YYPTRDIFF_T, sizeof (X)) |
Definition at line 358 of file nasl_grammar.tab.c.
| #define YYSKELETON_NAME "yacc.c" |
Definition at line 54 of file nasl_grammar.tab.c.
| #define YYSTACK_ALLOC YYMALLOC |
Definition at line 474 of file nasl_grammar.tab.c.
| #define YYSTACK_ALLOC_MAXIMUM YYSIZE_MAXIMUM |
Definition at line 477 of file nasl_grammar.tab.c.
| #define YYSTACK_BYTES | ( | N | ) |
Definition at line 519 of file nasl_grammar.tab.c.
| #define YYSTACK_FREE YYFREE |
Definition at line 475 of file nasl_grammar.tab.c.
Definition at line 515 of file nasl_grammar.tab.c.
| #define YYSTACK_RELOCATE | ( | Stack_alloc, | |
| Stack | |||
| ) |
Definition at line 530 of file nasl_grammar.tab.c.
| #define YYSTYPE_IS_DECLARED 1 |
Definition at line 247 of file nasl_grammar.tab.c.
| #define YYSTYPE_IS_TRIVIAL 1 |
Definition at line 246 of file nasl_grammar.tab.c.
| #define YYSYNTAX_ERROR |
| #define YYTABLE_NINF (-69) |
Definition at line 690 of file nasl_grammar.tab.c.
| #define yytable_value_is_error | ( | Yyn | ) | ((Yyn) == YYTABLE_NINF) |
Definition at line 692 of file nasl_grammar.tab.c.
| #define YYTERROR 1 |
Definition at line 1087 of file nasl_grammar.tab.c.
| #define YYTOKENTYPE |
Definition at line 175 of file nasl_grammar.tab.c.
| #define YYTRANSLATE | ( | YYX | ) | (0 <= (YYX) && (YYX) <= YYMAXUTOK ? yytranslate[YYX] : YYUNDEFTOK) |
Definition at line 583 of file nasl_grammar.tab.c.
| #define YYUNDEFTOK 2 |
Definition at line 577 of file nasl_grammar.tab.c.
| #define YYUSE | ( | E | ) | ((void) (E)) |
Definition at line 396 of file nasl_grammar.tab.c.
| typedef int yy_state_fast_t |
Definition at line 364 of file nasl_grammar.tab.c.
| typedef yytype_uint8 yy_state_t |
Definition at line 361 of file nasl_grammar.tab.c.
Definition at line 245 of file nasl_grammar.tab.c.
| typedef short yytype_int16 |
Definition at line 298 of file nasl_grammar.tab.c.
| typedef signed char yytype_int8 |
Definition at line 290 of file nasl_grammar.tab.c.
| typedef unsigned short yytype_uint16 |
Definition at line 318 of file nasl_grammar.tab.c.
| typedef unsigned char yytype_uint8 |
Definition at line 307 of file nasl_grammar.tab.c.
| enum lex_state |
Definition at line 3011 of file nasl_grammar.tab.c.
| enum yytokentype |
Definition at line 176 of file nasl_grammar.tab.c.
| int add_nasl_inc_dir | ( | const char * | dir | ) |
Adds the given string as directory for searching for includes.
| dir | A directory path. This function will add a copy of this parameter to the list of include folders. This means the parameter can be freed elsewhere without affecting the list. |
Definition at line 2738 of file nasl_grammar.tab.c.
References inc_dirs.
Referenced by include_dirs(), init_nasl_ctx(), and main().

|
static |
Get the checksum of a file.
| [in] | filename | Path to file. |
| [in] | algorithm | Libgcrypt hash algorithm to use for generating the checksum. |
Definition at line 2859 of file nasl_grammar.tab.c.
Referenced by init_nasl_ctx().

| void free | ( | void * | ) |
| int init_nasl_ctx | ( | naslctxt * | pc, |
| const char * | name | ||
| ) |
Initialize a NASL context for a NASL file.
| pc | The NASL context handler. |
| name | The filename of the NASL script. |
Definition at line 2894 of file nasl_grammar.tab.c.
References add_nasl_inc_dir(), naslctxt::always_signed, naslctxt::buffer, checksum_algorithm, file_checksum(), inc_dirs, naslctxt::kb, naslctxt::line_nb, load_checksums(), name, nasl_set_filename(), parse_buffer, parse_len, and naslctxt::tree.
Referenced by exec_nasl_script(), and yyparse().


|
static |
Definition at line 2769 of file nasl_grammar.tab.c.
References checksum_algorithm, nasl_verify_signature(), and prefix().
Referenced by init_nasl_ctx().


| void* malloc | ( | YYSIZE_T | ) |
|
static |
Definition at line 3041 of file nasl_grammar.tab.c.
References AND, ARROW, BREAK, naslctxt::buffer, CONTINUE, YYSTYPE::data, DIV_EQ, ELSE, EQ, EXPO, FOR, FOREACH, FUNCTION, GLOBAL, IDENT, IF, INCLUDE, naslctxt::index, INFEQ, INTEGER, L_SHIFT, L_SHIFT_EQ, YYSTYPE::asciiz::len, naslctxt::line_nb, LOCAL, MATCH, MINUS_EQ, MINUS_MINUS, MODULO_EQ, MULT_EQ, nasl_perror(), NEQ, NOMATCH, YYSTYPE::num, OR, parse_buffer, parse_len, PLUS_EQ, PLUS_PLUS, R_SHIFT, R_SHIFT_EQ, R_USHIFT, R_USHIFT_EQ, RE_MATCH, RE_NOMATCH, REP, REPEAT, RETURN, ST_AND, ST_COMMENT, ST_DEC, ST_DIV, ST_EQ, ST_HEX, ST_IDENT, ST_INF, ST_L_SHIFT, ST_MINUS, ST_MODULO, ST_MULT, ST_NOT, ST_OCT, ST_OR, ST_PLUS, ST_R_SHIFT, ST_R_USHIFT, ST_SPACE, ST_START, ST_STRING1, ST_STRING2, ST_SUP, ST_SUP_EXCL, ST_ZERO, ST_ZEROX, YYSTYPE::str, STRING1, STRING2, SUPEQ, UNTIL, YYSTYPE::asciiz::val, and WHILE.
Referenced by nasllex().


| void nasl_clean_ctx | ( | naslctxt * | c | ) |
Definition at line 2996 of file nasl_grammar.tab.c.
References naslctxt::buffer, deref_cell(), and naslctxt::tree.
Referenced by exec_nasl_script().


| void nasl_clean_inc | ( | void | ) |
Definition at line 3003 of file nasl_grammar.tab.c.
References includes_hash.
Referenced by plugins_reload_from_dir().

|
static |
Definition at line 2718 of file nasl_grammar.tab.c.
|
static |
Definition at line 3606 of file nasl_grammar.tab.c.
References mylex().

| int naslparse | ( | naslctxt * | parm | ) |
|
static |
Definition at line 1189 of file nasl_grammar.tab.c.
References yy_symbol_print(), YYFPRINTF, yyr2, yyrline, and yystos.

|
static |
|
static |
Definition at line 1151 of file nasl_grammar.tab.c.
References yy_symbol_value_print(), YYFPRINTF, YYNTOKENS, and yytname.
Referenced by yy_reduce_print().


|
static |
Definition at line 1129 of file nasl_grammar.tab.c.
References YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN, YY_IGNORE_MAYBE_UNINITIALIZED_END, YYNTOKENS, and YYUSE.
Referenced by yy_symbol_print().

|
static |
Definition at line 1479 of file nasl_grammar.tab.c.
References YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN, YY_IGNORE_MAYBE_UNINITIALIZED_END, YY_SYMBOL_PRINT, and YYUSE.
Referenced by yyparse().

| int yyparse | ( | naslctxt * | parm | ) |
Definition at line 1500 of file nasl_grammar.tab.c.
References alloc_expr_cell(), alloc_RE_cell(), alloc_typed_cell(), naslctxt::always_signed, ARRAY_ELEM, naslctxt::buffer, COMP_EQ, COMP_GE, COMP_GT, COMP_LE, COMP_LT, COMP_MATCH, COMP_NE, COMP_NOMATCH, COMP_RE_MATCH, COMP_RE_NOMATCH, CONST_DATA, CONST_INT, CONST_STR, deref_cell(), EXPR_AND, EXPR_BIT_AND, EXPR_BIT_NOT, EXPR_BIT_OR, EXPR_BIT_XOR, EXPR_DECR, EXPR_DIV, EXPR_EXPO, EXPR_INCR, EXPR_L_SHIFT, EXPR_MINUS, EXPR_MODULO, EXPR_MULT, EXPR_NOT, EXPR_OR, EXPR_PLUS, EXPR_R_SHIFT, EXPR_R_USHIFT, EXPR_U_MINUS, TC::i_val, includes_hash, init_nasl_ctx(), naslctxt::kb, naslctxt::line_nb, LNB, make_array_from_elems(), nasl_get_filename(), nasl_perror(), nasl_set_filename(), nasl_set_function_filename(), naslparse(), YYSTYPE::node, NODE_AFF, NODE_ARG, NODE_ARRAY_EL, NODE_BREAK, NODE_CONTINUE, NODE_DECL, NODE_DIV_EQ, NODE_FOR, NODE_FOREACH, NODE_FUN_CALL, NODE_FUN_DEF, NODE_GLOBAL, NODE_IF_ELSE, NODE_INSTR_L, NODE_L_SHIFT_EQ, NODE_LOCAL, NODE_MINUS_EQ, NODE_MODULO_EQ, NODE_MULT_EQ, NODE_PLUS_EQ, NODE_R_SHIFT_EQ, NODE_R_USHIFT_EQ, NODE_REPEAT_UNTIL, NODE_REPEATED, NODE_RETURN, NODE_VAR, NODE_WHILE, ref_cell(), YYSTYPE::str, TC::str_val, naslctxt::tree, YY_, YY_ASSERT, YY_CAST, YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN, YY_IGNORE_MAYBE_UNINITIALIZED_END, YY_IGNORE_USELESS_CAST_BEGIN, YY_IGNORE_USELESS_CAST_END, YY_INITIAL_VALUE, YY_REDUCE_PRINT, YY_STACK_PRINT, YY_SYMBOL_PRINT, YYABORT, YYACCEPT, yycheck, yydefact, yydefgoto, yydestruct(), YYDPRINTF, YYEMPTY, YYEOF, yyerror, YYERROR, YYFINAL, YYINITDEPTH, YYLAST, yylex, YYMAXDEPTH, yynerrs, YYNSTATES, YYNTOKENS, yypact, yypact_value_is_default, yypgoto, YYPOPSTACK, YYPTRDIFF_T, yyr1, yyr2, YYSIZE_T, YYSIZEOF, yyalloc::yyss_alloc, YYSTACK_ALLOC, YYSTACK_BYTES, YYSTACK_FREE, YYSTACK_RELOCATE, yystos, YYSYNTAX_ERROR, yytable, yytable_value_is_error, YYTERROR, YYTRANSLATE, and yyalloc::yyvs_alloc.

|
static |
Definition at line 1267 of file nasl_grammar.tab.c.
Referenced by yytnamerr().

|
static |
Definition at line 1250 of file nasl_grammar.tab.c.
References YYPTRDIFF_T.
Referenced by yysyntax_error(), and yytnamerr().

|
static |
Definition at line 1340 of file nasl_grammar.tab.c.
References YY_, YY_NULLPTR, YYCASE_, yycheck, YYEMPTY, YYLAST, YYNTOKENS, yypact, yypact_value_is_default, YYPTRDIFF_T, YYSTACK_ALLOC_MAXIMUM, yystrlen(), yytable, yytable_value_is_error, YYTERROR, yytname, and yytnamerr().

|
static |
Definition at line 1289 of file nasl_grammar.tab.c.
References YYPTRDIFF_T, yystpcpy(), and yystrlen().
Referenced by yysyntax_error().


|
static |
Definition at line 2766 of file nasl_grammar.tab.c.
Referenced by init_nasl_ctx(), and load_checksums().
|
static |
Definition at line 2724 of file nasl_grammar.tab.c.
Referenced by add_nasl_inc_dir(), and init_nasl_ctx().
| GHashTable* includes_hash = NULL |
Definition at line 126 of file nasl_grammar.tab.c.
Referenced by nasl_clean_inc(), and yyparse().
| int nasldebug |
|
static |
Definition at line 120 of file nasl_grammar.tab.c.
Referenced by init_nasl_ctx(), and mylex().
|
static |
Definition at line 122 of file nasl_grammar.tab.c.
Referenced by init_nasl_ctx(), and mylex().
|
static |
Definition at line 884 of file nasl_grammar.tab.c.
Referenced by yyparse(), and yysyntax_error().
| int yydebug |
Definition at line 1216 of file nasl_grammar.tab.c.
|
static |
Definition at line 727 of file nasl_grammar.tab.c.
Referenced by yyparse().
|
static |
Definition at line 765 of file nasl_grammar.tab.c.
Referenced by yyparse().
|
static |
Definition at line 697 of file nasl_grammar.tab.c.
Referenced by yyparse(), and yysyntax_error().
|
static |
Definition at line 755 of file nasl_grammar.tab.c.
Referenced by yyparse().
|
static |
Definition at line 1021 of file nasl_grammar.tab.c.
Referenced by yyparse().
|
static |
Definition at line 1039 of file nasl_grammar.tab.c.
Referenced by yy_reduce_print(), and yyparse().
|
static |
Definition at line 625 of file nasl_grammar.tab.c.
Referenced by yy_reduce_print().
|
static |
Definition at line 993 of file nasl_grammar.tab.c.
Referenced by yy_reduce_print(), and yyparse().
|
static |
Definition at line 777 of file nasl_grammar.tab.c.
Referenced by yyparse(), and yysyntax_error().
|
static |
Definition at line 646 of file nasl_grammar.tab.c.
Referenced by yy_symbol_print(), and yysyntax_error().
|
static |
Definition at line 588 of file nasl_grammar.tab.c.