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 <stddef.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.0.4" |
#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_NULLPTR 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 | YYSIZE_T size_t |
#define | YYSIZE_MAXIMUM ((YYSIZE_T) -1) |
#define | YY_(Msgid) Msgid |
#define | YY_ATTRIBUTE(Spec) /* empty */ |
#define | YY_ATTRIBUTE_PURE YY_ATTRIBUTE ((__pure__)) |
#define | YY_ATTRIBUTE_UNUSED YY_ATTRIBUTE ((__unused__)) |
#define | _Noreturn YY_ATTRIBUTE ((__noreturn__)) |
#define | YYUSE(E) ((void) (E)) |
#define | YY_INITIAL_VALUE(Value) Value |
#define | YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN |
#define | YY_IGNORE_MAYBE_UNINITIALIZED_END |
#define | YYSTACK_ALLOC YYMALLOC |
#define | YYSTACK_FREE YYFREE |
#define | YYSTACK_ALLOC_MAXIMUM YYSIZE_MAXIMUM |
#define | YYMALLOC malloc |
#define | YYFREE free |
#define | YYSTACK_GAP_MAXIMUM (sizeof (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) ((unsigned int) (YYX) <= YYMAXUTOK ? yytranslate[YYX] : YYUNDEFTOK) |
#define | YYPACT_NINF -91 |
#define | yypact_value_is_default(Yystate) (!!((Yystate) == (-91))) |
#define | YYTABLE_NINF -69 |
#define | yytable_value_is_error(Yytable_value) (!!((Yytable_value) == (-69))) |
#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 unsigned char | yytype_uint8 |
typedef signed char | yytype_int8 |
typedef unsigned short int | yytype_uint16 |
typedef short int | yytype_int16 |
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 *yyoutput, int yytype, YYSTYPE const *const yyvaluep, naslctxt *parm) |
static void | yy_symbol_print (FILE *yyoutput, int yytype, YYSTYPE const *const yyvaluep, naslctxt *parm) |
static void | yy_stack_print (yytype_int16 *yybottom, yytype_int16 *yytop) |
static void | yy_reduce_print (yytype_int16 *yyssp, YYSTYPE *yyvsp, int yyrule, naslctxt *parm) |
static YYSIZE_T | yystrlen (const char *yystr) |
static char * | yystpcpy (char *yydest, const char *yysrc) |
static YYSIZE_T | yytnamerr (char *yyres, const char *yystr) |
static int | yysyntax_error (YYSIZE_T *yymsg_alloc, char **yymsg, yytype_int16 *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_uint8 | yytranslate [] |
static const yytype_uint16 | yyrline [] |
static const char *const | yytname [] |
static const yytype_int16 | yypact [] |
static const yytype_uint8 | yydefact [] |
static const yytype_int16 | yypgoto [] |
static const yytype_int16 | yydefgoto [] |
static const yytype_int16 | yytable [] |
static const yytype_int16 | yycheck [] |
static const yytype_uint8 | yystos [] |
static const yytype_uint8 | yyr1 [] |
static const yytype_uint8 | yyr2 [] |
int | yydebug |
static GSList * | inc_dirs = NULL |
static int | checksum_algorithm = GCRY_MD_NONE |
#define _Noreturn YY_ATTRIBUTE ((__noreturn__)) |
Definition at line 326 of file nasl_grammar.tab.c.
#define G_LOG_DOMAIN "lib nasl" |
GLib logging domain.
Definition at line 115 of file nasl_grammar.tab.c.
#define LNB (((naslctxt*)parm)->line_nb) |
Definition at line 94 of file nasl_grammar.tab.c.
Referenced by yyparse().
#define YY_ | ( | Msgid | ) | Msgid |
Definition at line 299 of file nasl_grammar.tab.c.
Referenced by yyparse(), and yysyntax_error().
#define YY_ATTRIBUTE | ( | Spec | ) | /* empty */ |
Definition at line 309 of file nasl_grammar.tab.c.
#define YY_ATTRIBUTE_PURE YY_ATTRIBUTE ((__pure__)) |
Definition at line 314 of file nasl_grammar.tab.c.
#define YY_ATTRIBUTE_UNUSED YY_ATTRIBUTE ((__unused__)) |
Definition at line 318 of file nasl_grammar.tab.c.
#define YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN |
Definition at line 349 of file nasl_grammar.tab.c.
Referenced by yydestruct(), and yyparse().
#define YY_IGNORE_MAYBE_UNINITIALIZED_END |
Definition at line 350 of file nasl_grammar.tab.c.
Referenced by yydestruct(), and yyparse().
#define YY_INITIAL_VALUE | ( | Value | ) | Value |
Definition at line 346 of file nasl_grammar.tab.c.
Referenced by yyparse().
#define YY_LOCATION_PRINT | ( | File, | |
Loc | |||
) | ((void) 0) |
Definition at line 1029 of file nasl_grammar.tab.c.
#define YY_NASL_NASL_GRAMMAR_TAB_H_INCLUDED |
Definition at line 148 of file nasl_grammar.tab.c.
#define YY_NULLPTR 0 |
Definition at line 133 of file nasl_grammar.tab.c.
Referenced by yysyntax_error().
#define YY_REDUCE_PRINT | ( | Rule | ) |
Definition at line 1127 of file nasl_grammar.tab.c.
Referenced by yyparse().
#define YY_STACK_PRINT | ( | Bottom, | |
Top | |||
) |
Definition at line 1096 of file nasl_grammar.tab.c.
Referenced by yyparse().
#define YY_SYMBOL_PRINT | ( | Title, | |
Type, | |||
Value, | |||
Location | |||
) |
Definition at line 1033 of file nasl_grammar.tab.c.
Referenced by yydestruct(), and yyparse().
#define YYABORT goto yyabortlab |
Definition at line 984 of file nasl_grammar.tab.c.
Referenced by yyparse().
#define YYACCEPT goto yyacceptlab |
Definition at line 983 of file nasl_grammar.tab.c.
Referenced by yyparse().
#define YYBACKUP | ( | Token, | |
Value | |||
) |
Definition at line 990 of file nasl_grammar.tab.c.
#define YYBISON 1 |
Definition at line 44 of file nasl_grammar.tab.c.
#define YYBISON_VERSION "3.0.4" |
Definition at line 47 of file nasl_grammar.tab.c.
#define YYCASE_ | ( | N, | |
S | |||
) |
Referenced by yysyntax_error().
#define yyclearin (yychar = YYEMPTY) |
Definition at line 979 of file nasl_grammar.tab.c.
#define YYCOPY | ( | Dst, | |
Src, | |||
Count | |||
) |
Definition at line 473 of file nasl_grammar.tab.c.
#define YYCOPY_NEEDED 1 |
Definition at line 445 of file nasl_grammar.tab.c.
#define yydebug nasldebug |
Definition at line 66 of file nasl_grammar.tab.c.
#define YYDEBUG 1 |
Definition at line 151 of file nasl_grammar.tab.c.
#define YYDPRINTF | ( | Args | ) |
Definition at line 1021 of file nasl_grammar.tab.c.
Referenced by yyparse().
#define YYEMPTY (-2) |
Definition at line 980 of file nasl_grammar.tab.c.
Referenced by yyparse(), and yysyntax_error().
#define YYEOF 0 |
Definition at line 981 of file nasl_grammar.tab.c.
Referenced by yyparse().
#define YYERRCODE 256 |
Definition at line 1009 of file nasl_grammar.tab.c.
#define yyerrok (yyerrstatus = 0) |
Definition at line 978 of file nasl_grammar.tab.c.
#define yyerror naslerror |
Definition at line 65 of file nasl_grammar.tab.c.
Referenced by yyparse().
#define YYERROR goto yyerrorlab |
Definition at line 985 of file nasl_grammar.tab.c.
#define YYERROR_VERBOSE |
Definition at line 140 of file nasl_grammar.tab.c.
#define YYERROR_VERBOSE 1 |
Definition at line 140 of file nasl_grammar.tab.c.
#define YYFINAL 78 |
Definition at line 486 of file nasl_grammar.tab.c.
Referenced by yyparse().
#define YYFPRINTF fprintf |
Definition at line 1018 of file nasl_grammar.tab.c.
Referenced by yy_reduce_print(), yy_stack_print(), and yy_symbol_print().
#define YYFREE free |
Definition at line 416 of file nasl_grammar.tab.c.
#define YYINITDEPTH 200 |
Definition at line 1146 of file nasl_grammar.tab.c.
Referenced by yyparse().
#define YYLAST 1029 |
Definition at line 488 of file nasl_grammar.tab.c.
Referenced by yyparse(), and yysyntax_error().
#define yylex nasllex |
Definition at line 64 of file nasl_grammar.tab.c.
Referenced by yyparse().
#define YYLEX_PARAM parm |
Definition at line 92 of file nasl_grammar.tab.c.
#define YYMALLOC malloc |
Definition at line 410 of file nasl_grammar.tab.c.
#define YYMAXDEPTH 10000 |
Definition at line 1157 of file nasl_grammar.tab.c.
Referenced by yyparse().
#define YYMAXUTOK 304 |
Definition at line 502 of file nasl_grammar.tab.c.
#define yynerrs naslnerrs |
Definition at line 67 of file nasl_grammar.tab.c.
Referenced by yyparse().
#define YYNNTS 43 |
Definition at line 493 of file nasl_grammar.tab.c.
#define YYNRULES 126 |
Definition at line 495 of file nasl_grammar.tab.c.
#define YYNSTATES 227 |
Definition at line 497 of file nasl_grammar.tab.c.
#define YYNTOKENS 73 |
Definition at line 491 of file nasl_grammar.tab.c.
Referenced by yy_symbol_print(), yy_symbol_value_print(), yyparse(), and yysyntax_error().
#define YYPACT_NINF -91 |
Definition at line 606 of file nasl_grammar.tab.c.
#define yypact_value_is_default | ( | Yystate | ) | (!!((Yystate) == (-91))) |
Definition at line 608 of file nasl_grammar.tab.c.
Referenced by yyparse(), and yysyntax_error().
#define yyparse naslparse |
Definition at line 63 of file nasl_grammar.tab.c.
#define YYPARSE_PARAM parm |
Definition at line 91 of file nasl_grammar.tab.c.
#define YYPOPSTACK | ( | N | ) | (yyvsp -= (N), yyssp -= (N)) |
Referenced by yyparse().
#define YYPULL 1 |
Definition at line 59 of file nasl_grammar.tab.c.
#define YYPURE 1 |
Definition at line 53 of file nasl_grammar.tab.c.
#define YYPUSH 0 |
Definition at line 56 of file nasl_grammar.tab.c.
#define YYRECOVERING | ( | ) | (!!yyerrstatus) |
Definition at line 988 of file nasl_grammar.tab.c.
#define YYSIZE_MAXIMUM ((YYSIZE_T) -1) |
Definition at line 289 of file nasl_grammar.tab.c.
#define YYSIZE_T size_t |
Definition at line 283 of file nasl_grammar.tab.c.
Referenced by yyparse(), yystrlen(), yysyntax_error(), and yytnamerr().
#define YYSKELETON_NAME "yacc.c" |
Definition at line 50 of file nasl_grammar.tab.c.
#define YYSTACK_ALLOC YYMALLOC |
Definition at line 396 of file nasl_grammar.tab.c.
Referenced by yyparse().
#define YYSTACK_ALLOC_MAXIMUM YYSIZE_MAXIMUM |
Definition at line 399 of file nasl_grammar.tab.c.
Referenced by yysyntax_error().
#define YYSTACK_BYTES | ( | N | ) |
#define YYSTACK_FREE YYFREE |
Definition at line 397 of file nasl_grammar.tab.c.
Referenced by yyparse().
#define YYSTACK_GAP_MAXIMUM (sizeof (union yyalloc) - 1) |
Definition at line 437 of file nasl_grammar.tab.c.
#define YYSTACK_RELOCATE | ( | Stack_alloc, | |
Stack | |||
) |
Definition at line 452 of file nasl_grammar.tab.c.
Referenced by yyparse().
#define YYSTYPE_IS_DECLARED 1 |
Definition at line 232 of file nasl_grammar.tab.c.
#define YYSTYPE_IS_TRIVIAL 1 |
Definition at line 231 of file nasl_grammar.tab.c.
#define YYSYNTAX_ERROR |
Referenced by yyparse().
#define YYTABLE_NINF -69 |
Definition at line 611 of file nasl_grammar.tab.c.
#define yytable_value_is_error | ( | Yytable_value | ) | (!!((Yytable_value) == (-69))) |
Definition at line 613 of file nasl_grammar.tab.c.
Referenced by yyparse(), and yysyntax_error().
#define YYTERROR 1 |
Definition at line 1008 of file nasl_grammar.tab.c.
Referenced by yyparse(), and yysyntax_error().
#define YYTOKENTYPE |
Definition at line 159 of file nasl_grammar.tab.c.
#define YYTRANSLATE | ( | YYX | ) | ((unsigned int) (YYX) <= YYMAXUTOK ? yytranslate[YYX] : YYUNDEFTOK) |
Definition at line 504 of file nasl_grammar.tab.c.
Referenced by yyparse().
#define YYUNDEFTOK 2 |
Definition at line 501 of file nasl_grammar.tab.c.
#define YYUSE | ( | E | ) | ((void) (E)) |
Definition at line 332 of file nasl_grammar.tab.c.
Referenced by yy_symbol_value_print(), and yydestruct().
Definition at line 230 of file nasl_grammar.tab.c.
typedef short int yytype_int16 |
Definition at line 273 of file nasl_grammar.tab.c.
typedef signed char yytype_int8 |
Definition at line 261 of file nasl_grammar.tab.c.
typedef unsigned short int yytype_uint16 |
Definition at line 267 of file nasl_grammar.tab.c.
typedef unsigned char yytype_uint8 |
Definition at line 255 of file nasl_grammar.tab.c.
enum lex_state |
Definition at line 2909 of file nasl_grammar.tab.c.
enum yytokentype |
Definition at line 160 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 2636 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 2757 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 2792 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 2667 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 2939 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 2894 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 2901 of file nasl_grammar.tab.c.
References includes_hash.
Referenced by plugins_reload_from_dir().
|
static |
Definition at line 2616 of file nasl_grammar.tab.c.
|
static |
Definition at line 3504 of file nasl_grammar.tab.c.
References mylex().
int naslparse | ( | naslctxt * | parm | ) |
|
static |
Definition at line 1108 of file nasl_grammar.tab.c.
References yy_symbol_print(), YYFPRINTF, yyr2, yyrline, and yystos.
|
static |
|
static |
Definition at line 1070 of file nasl_grammar.tab.c.
References yy_symbol_value_print(), YYFPRINTF, YYNTOKENS, and yytname.
Referenced by yy_reduce_print().
|
static |
Definition at line 1050 of file nasl_grammar.tab.c.
References YYNTOKENS, and YYUSE.
Referenced by yy_symbol_print().
|
static |
Definition at line 1388 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 1409 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_IGNORE_MAYBE_UNINITIALIZED_BEGIN, YY_IGNORE_MAYBE_UNINITIALIZED_END, YY_INITIAL_VALUE, YY_REDUCE_PRINT, YY_STACK_PRINT, YY_SYMBOL_PRINT, YYABORT, YYACCEPT, yycheck, yydefact, yydefgoto, yydestruct(), YYDPRINTF, YYEMPTY, YYEOF, yyerror, YYFINAL, YYINITDEPTH, YYLAST, yylex, YYMAXDEPTH, yynerrs, YYNTOKENS, yypact, yypact_value_is_default, yypgoto, YYPOPSTACK, yyr1, yyr2, YYSIZE_T, 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 1186 of file nasl_grammar.tab.c.
Referenced by yytnamerr().
|
static |
Definition at line 1169 of file nasl_grammar.tab.c.
References YYSIZE_T.
Referenced by yysyntax_error(), and yytnamerr().
|
static |
Definition at line 1256 of file nasl_grammar.tab.c.
References YY_, YY_NULLPTR, YYCASE_, yycheck, YYEMPTY, YYLAST, YYNTOKENS, yypact, yypact_value_is_default, YYSIZE_T, YYSTACK_ALLOC_MAXIMUM, yystrlen(), yytable, yytable_value_is_error, YYTERROR, yytname, and yytnamerr().
|
static |
Definition at line 1208 of file nasl_grammar.tab.c.
References YYSIZE_T, yystpcpy(), and yystrlen().
Referenced by yysyntax_error().
|
static |
Definition at line 2664 of file nasl_grammar.tab.c.
Referenced by init_nasl_ctx(), and load_checksums().
|
static |
Definition at line 2622 of file nasl_grammar.tab.c.
Referenced by add_nasl_inc_dir(), and init_nasl_ctx().
GHashTable* includes_hash = NULL |
Definition at line 123 of file nasl_grammar.tab.c.
Referenced by nasl_clean_inc(), and yyparse().
int nasldebug |
|
static |
Definition at line 117 of file nasl_grammar.tab.c.
Referenced by init_nasl_ctx(), and mylex().
|
static |
Definition at line 119 of file nasl_grammar.tab.c.
Referenced by init_nasl_ctx(), and mylex().
|
static |
Definition at line 805 of file nasl_grammar.tab.c.
Referenced by yyparse(), and yysyntax_error().
int yydebug |
Definition at line 1135 of file nasl_grammar.tab.c.
|
static |
Definition at line 648 of file nasl_grammar.tab.c.
Referenced by yyparse().
|
static |
Definition at line 686 of file nasl_grammar.tab.c.
Referenced by yyparse().
|
static |
Definition at line 618 of file nasl_grammar.tab.c.
Referenced by yyparse(), and yysyntax_error().
|
static |
Definition at line 676 of file nasl_grammar.tab.c.
Referenced by yyparse().
|
static |
Definition at line 942 of file nasl_grammar.tab.c.
Referenced by yyparse().
|
static |
Definition at line 960 of file nasl_grammar.tab.c.
Referenced by yy_reduce_print(), and yyparse().
|
static |
Definition at line 546 of file nasl_grammar.tab.c.
Referenced by yy_reduce_print().
|
static |
Definition at line 914 of file nasl_grammar.tab.c.
Referenced by yy_reduce_print(), and yyparse().
|
static |
Definition at line 698 of file nasl_grammar.tab.c.
Referenced by yyparse(), and yysyntax_error().
|
static |
Definition at line 567 of file nasl_grammar.tab.c.
Referenced by yy_symbol_print(), and yysyntax_error().
|
static |
Definition at line 509 of file nasl_grammar.tab.c.