My Project
programmer's documentation
mei_parser.h
Go to the documentation of this file.
1 /* A Bison parser, made by GNU Bison 3.6.1. */
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_YY_SRC_MEI_MEI_PARSER_H_INCLUDED
39 # define YY_YY_SRC_MEI_MEI_PARSER_H_INCLUDED
40 /* Debug traces. */
41 #ifndef YYDEBUG
42 # define YYDEBUG 0
43 #endif
44 #if YYDEBUG
45 extern int yydebug;
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  NUMBER = 258, /* NUMBER */
58  VAR = 259, /* VAR */
59  FUN1 = 260, /* FUN1 */
60  FUN2 = 261, /* FUN2 */
61  FUN3 = 262, /* FUN3 */
62  FUN4 = 263, /* FUN4 */
63  IN1D = 264, /* IN1D */
64  WHILE = 265, /* WHILE */
65  IF = 266, /* IF */
66  PRINT = 267, /* PRINT */
67  IFX = 268, /* IFX */
68  ELSE = 269, /* ELSE */
69  OR = 270, /* OR */
70  AND = 271, /* AND */
71  EQ = 272, /* EQ */
72  NE = 273, /* NE */
73  GE = 274, /* GE */
74  LE = 275, /* LE */
75  UMINUS = 276, /* UMINUS */
76  UPLUS = 277 /* UPLUS */
77  };
79 #endif
80 
81 /* Value type. */
82 #if ! defined YYSTYPE && ! defined YYSTYPE_IS_DECLARED
83 union YYSTYPE
84 {
85 #line 50 "./src/mei/mei_parser.y"
86 
87  double iValue; /* double value */
88  char sIndex[200]; /* variable, constant or function identifier */
89  mei_node_t *nPtr; /* node pointer */
90 
91 #line 92 "./src/mei/mei_parser.h"
92 
93 };
94 typedef union YYSTYPE YYSTYPE;
95 # define YYSTYPE_IS_TRIVIAL 1
96 # define YYSTYPE_IS_DECLARED 1
97 #endif
98 
99 
100 extern YYSTYPE yylval;
101 
102 int yyparse (void);
103 
104 #endif /* !YY_YY_SRC_MEI_MEI_PARSER_H_INCLUDED */
yyparse
int yyparse(void)
Definition: mei_parser.c:1223
IFX
@ IFX
Definition: mei_parser.h:67
WHILE
@ WHILE
Definition: mei_parser.h:64
LE
@ LE
Definition: mei_parser.h:74
yylval
YYSTYPE yylval
Definition: mei_parser.c:1211
NE
@ NE
Definition: mei_parser.h:72
FUN4
@ FUN4
Definition: mei_parser.h:62
NUMBER
@ NUMBER
Definition: mei_parser.h:57
IF
@ IF
Definition: mei_parser.h:65
YYEMPTY
@ YYEMPTY
Definition: mei_parser.h:53
VAR
@ VAR
Definition: mei_parser.h:58
IN1D
@ IN1D
Definition: mei_parser.h:63
AND
@ AND
Definition: mei_parser.h:70
GE
@ GE
Definition: mei_parser.h:73
yytokentype
yytokentype
Definition: mei_parser.c:153
yytoken_kind_t
enum yytokentype yytoken_kind_t
Definition: mei_parser.h:78
EQ
@ EQ
Definition: mei_parser.h:71
FUN1
@ FUN1
Definition: mei_parser.h:59
PRINT
@ PRINT
Definition: mei_parser.h:66
UPLUS
@ UPLUS
Definition: mei_parser.h:76
UMINUS
@ UMINUS
Definition: mei_parser.h:75
YYUNDEF
@ YYUNDEF
Definition: mei_parser.h:56
FUN2
@ FUN2
Definition: mei_parser.h:60
YYerror
@ YYerror
Definition: mei_parser.h:55
ELSE
@ ELSE
Definition: mei_parser.h:68
FUN3
@ FUN3
Definition: mei_parser.h:61
OR
@ OR
Definition: mei_parser.h:69
YYEOF
@ YYEOF
Definition: mei_parser.h:54