OpenVAS Scanner  21.4.1
nasl_grammar.tab.h
Go to the documentation of this file.
1 /* A Bison parser, made by GNU Bison 3.7.4. */
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 61 "/builddir/build/BUILD/openvas-scanner-21.4.1/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);
133 
134 #endif /* !YY_NASL_NASL_GRAMMAR_TAB_H_INCLUDED */
yytokentype
Definition: nasl_grammar.tab.h:52
@ NOT
Definition: nasl_grammar.tab.h:101
@ MINUS_EQ
Definition: nasl_grammar.tab.h:87
@ PLUS_PLUS
Definition: nasl_grammar.tab.h:80
@ R_SHIFT_EQ
Definition: nasl_grammar.tab.h:92
@ YYEOF
Definition: nasl_grammar.tab.h:54
@ MATCH
Definition: nasl_grammar.tab.h:65
@ DIV_EQ
Definition: nasl_grammar.tab.h:89
@ UMINUS
Definition: nasl_grammar.tab.h:102
@ IF
Definition: nasl_grammar.tab.h:57
@ MINUS_MINUS
Definition: nasl_grammar.tab.h:81
@ R_SHIFT
Definition: nasl_grammar.tab.h:83
@ INCLUDE
Definition: nasl_grammar.tab.h:77
@ MODULO_EQ
Definition: nasl_grammar.tab.h:90
@ WHILE
Definition: nasl_grammar.tab.h:72
@ RE_NOMATCH
Definition: nasl_grammar.tab.h:95
@ CONTINUE
Definition: nasl_grammar.tab.h:74
@ PLUS_EQ
Definition: nasl_grammar.tab.h:86
@ YYerror
Definition: nasl_grammar.tab.h:55
@ RETURN
Definition: nasl_grammar.tab.h:76
@ ARROW
Definition: nasl_grammar.tab.h:96
@ YYEMPTY
Definition: nasl_grammar.tab.h:53
@ INTEGER
Definition: nasl_grammar.tab.h:100
@ INFEQ
Definition: nasl_grammar.tab.h:62
@ FOREACH
Definition: nasl_grammar.tab.h:71
@ NOMATCH
Definition: nasl_grammar.tab.h:66
@ EXPO
Definition: nasl_grammar.tab.h:85
@ L_SHIFT
Definition: nasl_grammar.tab.h:82
@ AND
Definition: nasl_grammar.tab.h:64
@ R_USHIFT
Definition: nasl_grammar.tab.h:84
@ YYUNDEF
Definition: nasl_grammar.tab.h:56
@ ELSE
Definition: nasl_grammar.tab.h:58
@ BREAK
Definition: nasl_grammar.tab.h:73
@ OR
Definition: nasl_grammar.tab.h:63
@ REPEAT
Definition: nasl_grammar.tab.h:69
@ STRING1
Definition: nasl_grammar.tab.h:98
@ EQ
Definition: nasl_grammar.tab.h:59
@ UNTIL
Definition: nasl_grammar.tab.h:70
@ FOR
Definition: nasl_grammar.tab.h:68
@ R_USHIFT_EQ
Definition: nasl_grammar.tab.h:93
@ FUNCTION
Definition: nasl_grammar.tab.h:75
@ BIT_NOT
Definition: nasl_grammar.tab.h:103
@ NEQ
Definition: nasl_grammar.tab.h:60
@ L_SHIFT_EQ
Definition: nasl_grammar.tab.h:91
@ REP
Definition: nasl_grammar.tab.h:67
@ LOCAL
Definition: nasl_grammar.tab.h:78
@ MULT_EQ
Definition: nasl_grammar.tab.h:88
@ RE_MATCH
Definition: nasl_grammar.tab.h:94
@ STRING2
Definition: nasl_grammar.tab.h:99
@ SUPEQ
Definition: nasl_grammar.tab.h:61
@ IDENT
Definition: nasl_grammar.tab.h:97
@ GLOBAL
Definition: nasl_grammar.tab.h:79
int nasldebug
int naslparse(naslctxt *parm)
enum yytokentype yytoken_kind_t
Definition: nasl_grammar.tab.h:105
Definition: nasl_tree.h:105
Definition: nasl_grammar.tab.h:116
char * val
Definition: nasl_grammar.tab.h:117
int len
Definition: nasl_grammar.tab.h:118
Definition: nasl_global_ctxt.h:27
Definition: nasl_grammar.tab.h:111
tree_cell * node
Definition: nasl_grammar.tab.h:120
char * str
Definition: nasl_grammar.tab.h:115
long int num
Definition: nasl_grammar.tab.h:114
struct YYSTYPE::asciiz data