programmer's documentation
mei_parser.h
Go to the documentation of this file.
1 /* A Bison parser, made by GNU Bison 3.0.4. */
2 
3 /* Bison interface for Yacc-like parsers in C
4 
5  Copyright (C) 1984, 1989-1990, 2000-2015 Free Software Foundation, Inc.
6 
7  This program is free software: you can redistribute it and/or modify
8  it under the terms of the GNU General Public License as published by
9  the Free Software Foundation, either version 3 of the License, or
10  (at your option) any later version.
11 
12  This program is distributed in the hope that it will be useful,
13  but WITHOUT ANY WARRANTY; without even the implied warranty of
14  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15  GNU General Public License for more details.
16 
17  You should have received a copy of the GNU General Public License
18  along with this program. If not, see <http://www.gnu.org/licenses/>. */
19 
20 /* As a special exception, you may create a larger work that contains
21  part or all of the Bison parser skeleton and distribute that work
22  under terms of your choice, so long as that work isn't itself a
23  parser generator using the skeleton or a modified version thereof
24  as a parser skeleton. Alternatively, if you modify or redistribute
25  the parser skeleton itself, you may (at your option) remove this
26  special exception, which will cause the skeleton and the resulting
27  Bison output files to be licensed under the GNU General Public
28  License without this special exception.
29 
30  This special exception was added by the Free Software Foundation in
31  version 2.2 of Bison. */
32 
33 #ifndef YY_YY_MEI_PARSER_H_INCLUDED
34 # define YY_YY_MEI_PARSER_H_INCLUDED
35 /* Debug traces. */
36 #ifndef YYDEBUG
37 # define YYDEBUG 0
38 #endif
39 #if YYDEBUG
40 extern int yydebug;
41 #endif
42 
43 /* Token type. */
44 #ifndef YYTOKENTYPE
45 # define YYTOKENTYPE
47  {
48  NUMBER = 258,
49  VAR = 259,
50  FUN1 = 260,
51  FUN2 = 261,
52  FUN3 = 262,
53  FUN4 = 263,
54  IN1D = 264,
55  WHILE = 265,
56  IF = 266,
57  PRINT = 267,
58  IFX = 268,
59  ELSE = 269,
60  OR = 270,
61  AND = 271,
62  EQ = 272,
63  NE = 273,
64  GE = 274,
65  LE = 275,
66  UMINUS = 276,
67  UPLUS = 277
68  };
69 #endif
70 /* Tokens. */
71 #define NUMBER 258
72 #define VAR 259
73 #define FUN1 260
74 #define FUN2 261
75 #define FUN3 262
76 #define FUN4 263
77 #define IN1D 264
78 #define WHILE 265
79 #define IF 266
80 #define PRINT 267
81 #define IFX 268
82 #define ELSE 269
83 #define OR 270
84 #define AND 271
85 #define EQ 272
86 #define NE 273
87 #define GE 274
88 #define LE 275
89 #define UMINUS 276
90 #define UPLUS 277
91 
92 /* Value type. */
93 #if ! defined YYSTYPE && ! defined YYSTYPE_IS_DECLARED
94 
95 union YYSTYPE
96 {
97 #line 50 "mei_parser.y" /* yacc.c:1909 */
98 
99  double iValue; /* double value */
100  char sIndex[200]; /* variable, constant or function identifier */
101  mei_node_t *nPtr; /* node pointer */
102 
103 #line 104 "mei_parser.h" /* yacc.c:1909 */
104 };
105 
106 typedef union YYSTYPE YYSTYPE;
107 # define YYSTYPE_IS_TRIVIAL 1
108 # define YYSTYPE_IS_DECLARED 1
109 #endif
110 
111 
112 extern YYSTYPE yylval;
113 
114 int yyparse (void);
115 
116 #endif /* !YY_YY_MEI_PARSER_H_INCLUDED */
#define IF
Definition: mei_parser.h:79
#define IFX
Definition: mei_parser.h:81
#define UPLUS
Definition: mei_parser.h:90
#define AND
Definition: mei_parser.h:84
int yyparse(void)
Definition: mei_parser.c:1344
#define FUN2
Definition: mei_parser.h:74
#define NE
Definition: mei_parser.h:86
yytokentype
Definition: mei_parser.c:143
#define ELSE
Definition: mei_parser.h:82
#define EQ
Definition: mei_parser.h:85
#define NUMBER
Definition: mei_parser.h:71
#define PRINT
Definition: mei_parser.h:80
#define FUN1
Definition: mei_parser.h:73
#define WHILE
Definition: mei_parser.h:78
YYSTYPE yylval
#define OR
Definition: mei_parser.h:83
#define FUN3
Definition: mei_parser.h:75
#define FUN4
Definition: mei_parser.h:76
#define LE
Definition: mei_parser.h:88
#define IN1D
Definition: mei_parser.h:77
#define UMINUS
Definition: mei_parser.h:89
#define VAR
Definition: mei_parser.h:72
#define GE
Definition: mei_parser.h:87