OpenVAS Scanner 23.40.3
nasl_grammar.tab.h
Go to the documentation of this file.
1/* A Bison parser, made by GNU Bison 3.8.2. */
2
3/* Bison interface for Yacc-like parsers in C
4
5 Copyright (C) 1984, 1989-1990, 2000-2015, 2018-2021 Free Software Foundation,
6 Inc.
7
8 This program is free software: you can redistribute it and/or modify
9 it under the terms of the GNU General Public License as published by
10 the Free Software Foundation, either version 3 of the License, or
11 (at your option) any later version.
12
13 This program is distributed in the hope that it will be useful,
14 but WITHOUT ANY WARRANTY; without even the implied warranty of
15 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 GNU General Public License for more details.
17
18 You should have received a copy of the GNU General Public License
19 along with this program. If not, see <https://www.gnu.org/licenses/>. */
20
21/* As a special exception, you may create a larger work that contains
22 part or all of the Bison parser skeleton and distribute that work
23 under terms of your choice, so long as that work isn't itself a
24 parser generator using the skeleton or a modified version thereof
25 as a parser skeleton. Alternatively, if you modify or redistribute
26 the parser skeleton itself, you may (at your option) remove this
27 special exception, which will cause the skeleton and the resulting
28 Bison output files to be licensed under the GNU General Public
29 License without this special exception.
30
31 This special exception was added by the Free Software Foundation in
32 version 2.2 of Bison. */
33
34/* DO NOT RELY ON FEATURES THAT ARE NOT DOCUMENTED in the manual,
35 especially those whose name start with YY_ or yy_. They are
36 private implementation details that can be changed or removed. */
37
38#ifndef YY_NASL_NASL_GRAMMAR_TAB_H_INCLUDED
39# define YY_NASL_NASL_GRAMMAR_TAB_H_INCLUDED
40/* Debug traces. */
41#ifndef YYDEBUG
42# define YYDEBUG 1
43#endif
44#if YYDEBUG
45extern int nasldebug;
46#endif
47
48/* Token kinds. */
49#ifndef YYTOKENTYPE
50# define YYTOKENTYPE
52 {
53 YYEMPTY = -2,
54 YYEOF = 0, /* "end of file" */
55 YYerror = 256, /* error */
56 YYUNDEF = 257, /* "invalid token" */
57 IF = 258, /* IF */
58 ELSE = 259, /* ELSE */
59 EQ = 260, /* EQ */
60 NEQ = 261, /* NEQ */
61 SUPEQ = 262, /* SUPEQ */
62 INFEQ = 263, /* INFEQ */
63 OR = 264, /* OR */
64 AND = 265, /* AND */
65 MATCH = 266, /* MATCH */
66 NOMATCH = 267, /* NOMATCH */
67 REP = 268, /* REP */
68 FOR = 269, /* FOR */
69 REPEAT = 270, /* REPEAT */
70 UNTIL = 271, /* UNTIL */
71 FOREACH = 272, /* FOREACH */
72 WHILE = 273, /* WHILE */
73 BREAK = 274, /* BREAK */
74 CONTINUE = 275, /* CONTINUE */
75 FUNCTION = 276, /* FUNCTION */
76 RETURN = 277, /* RETURN */
77 INCLUDE = 278, /* INCLUDE */
78 LOCAL = 279, /* LOCAL */
79 GLOBAL = 280, /* GLOBAL */
80 PLUS_PLUS = 281, /* PLUS_PLUS */
81 MINUS_MINUS = 282, /* MINUS_MINUS */
82 L_SHIFT = 283, /* L_SHIFT */
83 R_SHIFT = 284, /* R_SHIFT */
84 R_USHIFT = 285, /* R_USHIFT */
85 EXPO = 286, /* EXPO */
86 PLUS_EQ = 287, /* PLUS_EQ */
87 MINUS_EQ = 288, /* MINUS_EQ */
88 MULT_EQ = 289, /* MULT_EQ */
89 DIV_EQ = 290, /* DIV_EQ */
90 MODULO_EQ = 291, /* MODULO_EQ */
91 L_SHIFT_EQ = 292, /* L_SHIFT_EQ */
92 R_SHIFT_EQ = 293, /* R_SHIFT_EQ */
93 R_USHIFT_EQ = 294, /* R_USHIFT_EQ */
94 RE_MATCH = 295, /* RE_MATCH */
95 RE_NOMATCH = 296, /* RE_NOMATCH */
96 ARROW = 297, /* ARROW */
97 IDENT = 298, /* IDENT */
98 STRING1 = 299, /* STRING1 */
99 STRING2 = 300, /* STRING2 */
100 INTEGER = 301, /* INTEGER */
101 NOT = 302, /* NOT */
102 UMINUS = 303, /* UMINUS */
103 BIT_NOT = 304 /* BIT_NOT */
104 };
106#endif
107
108/* Value type. */
109#if ! defined YYSTYPE && ! defined YYSTYPE_IS_DECLARED
111{
112#line 57 "/usr/src/RPM/BUILD/openvas-scanner-23.40.3/nasl/nasl_grammar.y"
113
114 long int num;
115 char *str;
116 struct asciiz {
117 char *val;
118 int len;
121
122#line 123 "nasl_grammar.tab.h"
123
124};
125typedef union YYSTYPE YYSTYPE;
126# define YYSTYPE_IS_TRIVIAL 1
127# define YYSTYPE_IS_DECLARED 1
128#endif
129
130
131
132
133int naslparse (naslctxt * parm, int * err_c);
134
135
136#endif /* !YY_NASL_NASL_GRAMMAR_TAB_H_INCLUDED */
yytokentype
@ MINUS_EQ
@ PLUS_PLUS
@ R_SHIFT_EQ
@ YYEOF
@ MATCH
@ DIV_EQ
@ UMINUS
@ MINUS_MINUS
@ R_SHIFT
@ INCLUDE
@ MODULO_EQ
@ WHILE
@ RE_NOMATCH
@ CONTINUE
@ PLUS_EQ
@ YYerror
@ RETURN
@ ARROW
@ YYEMPTY
@ INTEGER
@ INFEQ
@ FOREACH
@ NOMATCH
@ EXPO
@ L_SHIFT
@ AND
@ R_USHIFT
@ YYUNDEF
@ ELSE
@ BREAK
@ REPEAT
@ STRING1
@ UNTIL
@ FOR
@ R_USHIFT_EQ
@ FUNCTION
@ BIT_NOT
@ NEQ
@ L_SHIFT_EQ
@ REP
@ LOCAL
@ MULT_EQ
@ RE_MATCH
@ STRING2
@ SUPEQ
@ IDENT
@ GLOBAL
int nasldebug
int naslparse(naslctxt *parm, int *err_c)
enum yytokentype yytoken_kind_t
struct TC tree_cell
tree_cell * node
long int num
struct YYSTYPE::asciiz data