OpenVAS Scanner  22.7.9
nasl_grammar.tab.h
Go to the documentation of this file.
1 /* A Bison parser, made by GNU Bison 3.7.2. */
2 
3 /* Bison interface for Yacc-like parsers in C
4 
5  Copyright (C) 1984, 1989-1990, 2000-2015, 2018-2020 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 <http://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
45 extern 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  };
105  typedef enum yytokentype yytoken_kind_t;
106 #endif
107 
108 /* Value type. */
109 #if ! defined YYSTYPE && ! defined YYSTYPE_IS_DECLARED
110 union YYSTYPE
111 {
112 #line 57 "/builddir/build/BUILD/openvas-scanner-22.7.9/nasl/nasl_grammar.y"
113 
114  long int num;
115  char *str;
116  struct asciiz {
117  char *val;
118  int len;
119  } data;
121 
122 #line 123 "nasl_grammar.tab.h"
123 
124 };
125 typedef union YYSTYPE YYSTYPE;
126 # define YYSTYPE_IS_TRIVIAL 1
127 # define YYSTYPE_IS_DECLARED 1
128 #endif
129 
130 
131 
132 int naslparse (naslctxt * parm, int * err_c);
133 
134 #endif /* !YY_NASL_NASL_GRAMMAR_TAB_H_INCLUDED */
RE_MATCH
@ RE_MATCH
Definition: nasl_grammar.tab.h:94
YYerror
@ YYerror
Definition: nasl_grammar.tab.h:55
STRING1
@ STRING1
Definition: nasl_grammar.tab.h:98
INCLUDE
@ INCLUDE
Definition: nasl_grammar.tab.h:77
FOREACH
@ FOREACH
Definition: nasl_grammar.tab.h:71
yytokentype
yytokentype
Definition: nasl_grammar.tab.h:52
yytoken_kind_t
enum yytokentype yytoken_kind_t
Definition: nasl_grammar.tab.h:105
INTEGER
@ INTEGER
Definition: nasl_grammar.tab.h:100
REPEAT
@ REPEAT
Definition: nasl_grammar.tab.h:69
IDENT
@ IDENT
Definition: nasl_grammar.tab.h:97
SUPEQ
@ SUPEQ
Definition: nasl_grammar.tab.h:61
naslctxt
Definition: nasl_global_ctxt.h:18
YYSTYPE::num
long int num
Definition: nasl_grammar.tab.h:114
YYSTYPE::node
tree_cell * node
Definition: nasl_grammar.tab.h:120
R_USHIFT
@ R_USHIFT
Definition: nasl_grammar.tab.h:84
MINUS_EQ
@ MINUS_EQ
Definition: nasl_grammar.tab.h:87
PLUS_EQ
@ PLUS_EQ
Definition: nasl_grammar.tab.h:86
LOCAL
@ LOCAL
Definition: nasl_grammar.tab.h:78
OR
@ OR
Definition: nasl_grammar.tab.h:63
MODULO_EQ
@ MODULO_EQ
Definition: nasl_grammar.tab.h:90
FUNCTION
@ FUNCTION
Definition: nasl_grammar.tab.h:75
GLOBAL
@ GLOBAL
Definition: nasl_grammar.tab.h:79
REP
@ REP
Definition: nasl_grammar.tab.h:67
YYEOF
@ YYEOF
Definition: nasl_grammar.tab.h:54
FOR
@ FOR
Definition: nasl_grammar.tab.h:68
MATCH
@ MATCH
Definition: nasl_grammar.tab.h:65
UMINUS
@ UMINUS
Definition: nasl_grammar.tab.h:102
ARROW
@ ARROW
Definition: nasl_grammar.tab.h:96
L_SHIFT_EQ
@ L_SHIFT_EQ
Definition: nasl_grammar.tab.h:91
R_SHIFT
@ R_SHIFT
Definition: nasl_grammar.tab.h:83
naslparse
int naslparse(naslctxt *parm, int *err_c)
WHILE
@ WHILE
Definition: nasl_grammar.tab.h:72
YYEMPTY
@ YYEMPTY
Definition: nasl_grammar.tab.h:53
YYSTYPE
Definition: nasl_grammar.tab.h:111
INFEQ
@ INFEQ
Definition: nasl_grammar.tab.h:62
CONTINUE
@ CONTINUE
Definition: nasl_grammar.tab.h:74
IF
@ IF
Definition: nasl_grammar.tab.h:57
NEQ
@ NEQ
Definition: nasl_grammar.tab.h:60
BREAK
@ BREAK
Definition: nasl_grammar.tab.h:73
STRING2
@ STRING2
Definition: nasl_grammar.tab.h:99
nasldebug
int nasldebug
YYSTYPE::asciiz::val
char * val
Definition: nasl_grammar.tab.h:117
TC
Definition: nasl_tree.h:94
L_SHIFT
@ L_SHIFT
Definition: nasl_grammar.tab.h:82
RE_NOMATCH
@ RE_NOMATCH
Definition: nasl_grammar.tab.h:95
EXPO
@ EXPO
Definition: nasl_grammar.tab.h:85
ELSE
@ ELSE
Definition: nasl_grammar.tab.h:58
PLUS_PLUS
@ PLUS_PLUS
Definition: nasl_grammar.tab.h:80
YYSTYPE::asciiz::len
int len
Definition: nasl_grammar.tab.h:118
YYUNDEF
@ YYUNDEF
Definition: nasl_grammar.tab.h:56
YYSTYPE::data
struct YYSTYPE::asciiz data
BIT_NOT
@ BIT_NOT
Definition: nasl_grammar.tab.h:103
MINUS_MINUS
@ MINUS_MINUS
Definition: nasl_grammar.tab.h:81
YYSTYPE::asciiz
Definition: nasl_grammar.tab.h:116
NOT
@ NOT
Definition: nasl_grammar.tab.h:101
YYSTYPE::str
char * str
Definition: nasl_grammar.tab.h:115
AND
@ AND
Definition: nasl_grammar.tab.h:64
MULT_EQ
@ MULT_EQ
Definition: nasl_grammar.tab.h:88
DIV_EQ
@ DIV_EQ
Definition: nasl_grammar.tab.h:89
NOMATCH
@ NOMATCH
Definition: nasl_grammar.tab.h:66
EQ
@ EQ
Definition: nasl_grammar.tab.h:59
UNTIL
@ UNTIL
Definition: nasl_grammar.tab.h:70
RETURN
@ RETURN
Definition: nasl_grammar.tab.h:76
R_USHIFT_EQ
@ R_USHIFT_EQ
Definition: nasl_grammar.tab.h:93
R_SHIFT_EQ
@ R_SHIFT_EQ
Definition: nasl_grammar.tab.h:92