ergo
ergo_input_processor.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_ERGO_INPUT_PROCESSOR_H_INCLUDED
34 # define YY_YY_ERGO_INPUT_PROCESSOR_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  DOT = 259,
50  SYMBOL = 260,
51  EQUAL = 261,
52  STRING = 262,
53  EOFTAG = 263,
54  GETEXC = 264,
55  GETPOL = 265,
56  K_ALL = 266,
57  HELP = 267,
58  MOLTAG = 268,
59  GHOSTTAG = 269,
60  MOLDAL = 270,
61  QUIT = 271,
62  RUNTAG = 272,
63  SYSTEM = 273,
64  GHOST = 274,
65  ANGSTROM = 275,
66  PRECISION = 276,
67  RANGE = 277,
68  WARRANTY = 278,
70  IS_CHT_USED = 280,
71  SET_NTHREADS = 281,
72  PLUS = 282,
73  MINUS = 283,
74  TIMES = 284,
75  DIVIDE = 285,
76  POWER = 286,
79  EOL = 289,
80  NEG = 290
81  };
82 #endif
83 /* Tokens. */
84 #define NUMBER 258
85 #define DOT 259
86 #define SYMBOL 260
87 #define EQUAL 261
88 #define STRING 262
89 #define EOFTAG 263
90 #define GETEXC 264
91 #define GETPOL 265
92 #define K_ALL 266
93 #define HELP 267
94 #define MOLTAG 268
95 #define GHOSTTAG 269
96 #define MOLDAL 270
97 #define QUIT 271
98 #define RUNTAG 272
99 #define SYSTEM 273
100 #define GHOST 274
101 #define ANGSTROM 275
102 #define PRECISION 276
103 #define RANGE 277
104 #define WARRANTY 278
105 #define LIST_DFT_FUNCS 279
106 #define IS_CHT_USED 280
107 #define SET_NTHREADS 281
108 #define PLUS 282
109 #define MINUS 283
110 #define TIMES 284
111 #define DIVIDE 285
112 #define POWER 286
113 #define LEFT_PARENTHESIS 287
114 #define RIGHT_PARENTHESIS 288
115 #define EOL 289
116 #define NEG 290
117 
118 /* Value type. */
119 #if ! defined YYSTYPE && ! defined YYSTYPE_IS_DECLARED
120 
121 union YYSTYPE
122 {
123 #line 18 "ergo_input_processor.y" /* yacc.c:1909 */
124 
125  double num; /* for returning numbers */
126  char str[256]; /* for returning strings */
127  struct variable *var; /* for returning lvalues */
128 
129 #line 130 "ergo_input_processor.h" /* yacc.c:1909 */
130 };
131 
132 typedef union YYSTYPE YYSTYPE;
133 # define YYSTYPE_IS_TRIVIAL 1
134 # define YYSTYPE_IS_DECLARED 1
135 #endif
136 
137 
138 extern YYSTYPE yylval;
139 
140 int yyparse (void);
141 
142 #endif /* !YY_YY_ERGO_INPUT_PROCESSOR_H_INCLUDED */
char str[256]
Definition: ergo_input_processor.c:195
YYSTYPE yylval
#define ANGSTROM
Definition: ergo_input_processor.h:101
#define PRECISION
Definition: ergo_input_processor.h:102
#define NEG
Definition: ergo_input_processor.h:116
#define WARRANTY
Definition: ergo_input_processor.h:104
#define MOLDAL
Definition: ergo_input_processor.h:96
#define SYMBOL
Definition: ergo_input_processor.h:86
#define GHOSTTAG
Definition: ergo_input_processor.h:95
#define EQUAL
Definition: ergo_input_processor.h:87
#define GHOST
Definition: ergo_input_processor.h:100
#define STRING
Definition: ergo_input_processor.h:88
#define IS_CHT_USED
Definition: ergo_input_processor.h:106
#define RIGHT_PARENTHESIS
Definition: ergo_input_processor.h:114
#define SYSTEM
Definition: ergo_input_processor.h:99
#define POWER
Definition: ergo_input_processor.h:112
#define LEFT_PARENTHESIS
Definition: ergo_input_processor.h:113
#define GETPOL
Definition: ergo_input_processor.h:91
#define DOT
Definition: ergo_input_processor.h:85
#define RUNTAG
Definition: ergo_input_processor.h:98
#define NUMBER
Definition: ergo_input_processor.h:84
#define RANGE
Definition: ergo_input_processor.h:103
int yyparse(void)
Definition: ergo_input_processor.c:1115
#define PLUS
Definition: ergo_input_processor.h:108
struct variable * var
Definition: ergo_input_processor.c:196
#define MINUS
Definition: ergo_input_processor.h:109
#define SET_NTHREADS
Definition: ergo_input_processor.h:107
#define GETEXC
Definition: ergo_input_processor.h:90
#define K_ALL
Definition: ergo_input_processor.h:92
#define TIMES
Definition: ergo_input_processor.h:110
#define LIST_DFT_FUNCS
Definition: ergo_input_processor.h:105
#define EOL
Definition: ergo_input_processor.h:115
double num
Definition: ergo_input_processor.c:194
Definition: ergo_input_processor.c:190
#define MOLTAG
Definition: ergo_input_processor.h:94
#define DIVIDE
Definition: ergo_input_processor.h:111
#define EOFTAG
Definition: ergo_input_processor.h:89
yytokentype
Definition: ergo_input_processor.c:115
#define HELP
Definition: ergo_input_processor.h:93
describes a variable recognized by the scripting system.
Definition: ergo_scripted.h:54
#define QUIT
Definition: ergo_input_processor.h:97