mdlparse.h 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392
  1. /* A Bison parser, made by GNU Bison 3.0.4. */
  2. /* Bison interface for Yacc-like parsers in C
  3. Copyright (C) 1984, 1989-1990, 2000-2015 Free Software Foundation, Inc.
  4. This program is free software: you can redistribute it and/or modify
  5. it under the terms of the GNU General Public License as published by
  6. the Free Software Foundation, either version 3 of the License, or
  7. (at your option) any later version.
  8. This program is distributed in the hope that it will be useful,
  9. but WITHOUT ANY WARRANTY; without even the implied warranty of
  10. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  11. GNU General Public License for more details.
  12. You should have received a copy of the GNU General Public License
  13. along with this program. If not, see <http://www.gnu.org/licenses/>. */
  14. /* As a special exception, you may create a larger work that contains
  15. part or all of the Bison parser skeleton and distribute that work
  16. under terms of your choice, so long as that work isn't itself a
  17. parser generator using the skeleton or a modified version thereof
  18. as a parser skeleton. Alternatively, if you modify or redistribute
  19. the parser skeleton itself, you may (at your option) remove this
  20. special exception, which will cause the skeleton and the resulting
  21. Bison output files to be licensed under the GNU General Public
  22. License without this special exception.
  23. This special exception was added by the Free Software Foundation in
  24. version 2.2 of Bison. */
  25. #ifndef YY_MDL_HOME_JCZECH_MCELL_BUILD_DEPS_MDLPARSE_H_INCLUDED
  26. # define YY_MDL_HOME_JCZECH_MCELL_BUILD_DEPS_MDLPARSE_H_INCLUDED
  27. /* Debug traces. */
  28. #ifndef YYDEBUG
  29. # define YYDEBUG 0
  30. #endif
  31. #if YYDEBUG
  32. extern int mdldebug;
  33. #endif
  34. /* Token type. */
  35. #ifndef YYTOKENTYPE
  36. # define YYTOKENTYPE
  37. enum yytokentype
  38. {
  39. ABS = 258,
  40. ABSORPTIVE = 259,
  41. ACCURATE_3D_REACTIONS = 260,
  42. ACOS = 261,
  43. ALL_CROSSINGS = 262,
  44. ALL_DATA = 263,
  45. ALL_ELEMENTS = 264,
  46. ALL_ENCLOSED = 265,
  47. ALL_HITS = 266,
  48. ALL_ITERATIONS = 267,
  49. ALL_MOLECULES = 268,
  50. ALL_NOTIFICATIONS = 269,
  51. ALL_TIMES = 270,
  52. ALL_WARNINGS = 271,
  53. ASCII = 272,
  54. ASIN = 273,
  55. ASPECT_RATIO = 274,
  56. ATAN = 275,
  57. BACK = 276,
  58. BACK_CROSSINGS = 277,
  59. BACK_HITS = 278,
  60. BOTTOM = 279,
  61. BOX = 280,
  62. BOX_TRIANGULATION_REPORT = 281,
  63. BRIEF = 282,
  64. CEIL = 283,
  65. CELLBLENDER = 284,
  66. CENTER_MOLECULES_ON_GRID = 285,
  67. CHECKPOINT_INFILE = 286,
  68. CHECKPOINT_ITERATIONS = 287,
  69. CHECKPOINT_OUTFILE = 288,
  70. CHECKPOINT_REALTIME = 289,
  71. CHECKPOINT_REPORT = 290,
  72. CLAMP_CONCENTRATION = 291,
  73. CLOSE_PARTITION_SPACING = 292,
  74. CONCENTRATION = 293,
  75. CORNERS = 294,
  76. COS = 295,
  77. COUNT = 296,
  78. CUBIC = 297,
  79. CUBIC_RELEASE_SITE = 298,
  80. CUSTOM_SPACE_STEP = 299,
  81. CUSTOM_TIME_STEP = 300,
  82. DEFINE_MOLECULE = 301,
  83. DEFINE_MOLECULES = 302,
  84. DEFINE_REACTIONS = 303,
  85. DEFINE_RELEASE_PATTERN = 304,
  86. DEFINE_SURFACE_CLASS = 305,
  87. DEFINE_SURFACE_CLASSES = 306,
  88. DEFINE_SURFACE_REGIONS = 307,
  89. DEGENERATE_POLYGONS = 308,
  90. DELAY = 309,
  91. DENSITY = 310,
  92. DIFFUSION_CONSTANT_2D = 311,
  93. DIFFUSION_CONSTANT_3D = 312,
  94. DIFFUSION_CONSTANT_REPORT = 313,
  95. DYNAMIC_GEOMETRY = 314,
  96. DYNAMIC_GEOMETRY_MOLECULE_PLACEMENT = 315,
  97. EFFECTOR_GRID_DENSITY = 316,
  98. ELEMENT_CONNECTIONS = 317,
  99. ELLIPTIC = 318,
  100. ELLIPTIC_RELEASE_SITE = 319,
  101. EQUAL = 320,
  102. ERROR = 321,
  103. ESTIMATE_CONCENTRATION = 322,
  104. EXCLUDE_ELEMENTS = 323,
  105. EXCLUDE_PATCH = 324,
  106. EXCLUDE_REGION = 325,
  107. EXIT = 326,
  108. EXP = 327,
  109. EXPRESSION = 328,
  110. EXTERN = 329,
  111. FALSE = 330,
  112. FCLOSE = 331,
  113. FILENAME = 332,
  114. FILENAME_PREFIX = 333,
  115. FILE_OUTPUT_REPORT = 334,
  116. FINAL_SUMMARY = 335,
  117. FLOOR = 336,
  118. FOPEN = 337,
  119. FORMAT = 338,
  120. FPRINTF = 339,
  121. FPRINT_TIME = 340,
  122. FRONT = 341,
  123. FRONT_CROSSINGS = 342,
  124. FRONT_HITS = 343,
  125. GAUSSIAN_RELEASE_NUMBER = 344,
  126. GEOMETRY = 345,
  127. GRAPH_PATTERN = 346,
  128. HEADER = 347,
  129. HIGH_PROBABILITY_THRESHOLD = 348,
  130. HIGH_REACTION_PROBABILITY = 349,
  131. IGNORED = 350,
  132. INCLUDE_ELEMENTS = 351,
  133. INCLUDE_FILE = 352,
  134. INCLUDE_PATCH = 353,
  135. INCLUDE_REGION = 354,
  136. INPUT_FILE = 355,
  137. INSTANTIATE = 356,
  138. LLINTEGER = 357,
  139. FULLY_RANDOM = 358,
  140. INTERACTION_RADIUS = 359,
  141. ITERATION_LIST = 360,
  142. ITERATION_NUMBERS = 361,
  143. ITERATION_REPORT = 362,
  144. ITERATIONS = 363,
  145. KEEP_CHECKPOINT_FILES = 364,
  146. LEFT = 365,
  147. LIFETIME_THRESHOLD = 366,
  148. LIFETIME_TOO_SHORT = 367,
  149. LIST = 368,
  150. LOCATION = 369,
  151. LOG = 370,
  152. LOG10 = 371,
  153. MAX_TOK = 372,
  154. MAXIMUM_STEP_LENGTH = 373,
  155. MEAN_DIAMETER = 374,
  156. MEAN_NUMBER = 375,
  157. MEMORY_PARTITION_X = 376,
  158. MEMORY_PARTITION_Y = 377,
  159. MEMORY_PARTITION_Z = 378,
  160. MEMORY_PARTITION_POOL = 379,
  161. MICROSCOPIC_REVERSIBILITY = 380,
  162. MIN_TOK = 381,
  163. MISSED_REACTIONS = 382,
  164. MISSED_REACTION_THRESHOLD = 383,
  165. MISSING_SURFACE_ORIENTATION = 384,
  166. MOD = 385,
  167. MODE = 386,
  168. MODIFY_SURFACE_REGIONS = 387,
  169. MOLECULE = 388,
  170. MOLECULE_COLLISION_REPORT = 389,
  171. MOLECULE_DENSITY = 390,
  172. MOLECULE_NUMBER = 391,
  173. MOLECULE_POSITIONS = 392,
  174. MOLECULES = 393,
  175. MOLECULE_PLACEMENT_FAILURE = 394,
  176. NAME_LIST = 395,
  177. NEAREST_POINT = 396,
  178. NEAREST_TRIANGLE = 397,
  179. NEGATIVE_DIFFUSION_CONSTANT = 398,
  180. NEGATIVE_REACTION_RATE = 399,
  181. NO = 400,
  182. NOEXIT = 401,
  183. NONE = 402,
  184. NO_SPECIES = 403,
  185. NOT_EQUAL = 404,
  186. NOTIFICATIONS = 405,
  187. NUMBER_OF_SUBUNITS = 406,
  188. NUMBER_OF_TRAINS = 407,
  189. NUMBER_TO_RELEASE = 408,
  190. OBJECT = 409,
  191. OFF = 410,
  192. ON = 411,
  193. ORIENTATIONS = 412,
  194. OUTPUT_BUFFER_SIZE = 413,
  195. INVALID_OUTPUT_STEP_TIME = 414,
  196. LARGE_MOLECULAR_DISPLACEMENT = 415,
  197. ADD_REMOVE_MESH = 416,
  198. OVERWRITTEN_OUTPUT_FILE = 417,
  199. PARTITION_LOCATION_REPORT = 418,
  200. PARTITION_X = 419,
  201. PARTITION_Y = 420,
  202. PARTITION_Z = 421,
  203. PERIODIC_BOX = 422,
  204. PERIODIC_X = 423,
  205. PERIODIC_Y = 424,
  206. PERIODIC_Z = 425,
  207. PERIODIC_TRADITIONAL = 426,
  208. PI_TOK = 427,
  209. POLYGON_LIST = 428,
  210. POSITIONS = 429,
  211. PRINTF = 430,
  212. PRINT_TIME = 431,
  213. PROBABILITY_REPORT = 432,
  214. PROBABILITY_REPORT_THRESHOLD = 433,
  215. PROGRESS_REPORT = 434,
  216. RADIAL_DIRECTIONS = 435,
  217. RADIAL_SUBDIVISIONS = 436,
  218. RAND_GAUSSIAN = 437,
  219. RAND_UNIFORM = 438,
  220. REACTION_DATA_OUTPUT = 439,
  221. REACTION_OUTPUT_REPORT = 440,
  222. REAL = 441,
  223. RECTANGULAR_RELEASE_SITE = 442,
  224. RECTANGULAR_TOKEN = 443,
  225. REFLECTIVE = 444,
  226. RELEASE_EVENT_REPORT = 445,
  227. RELEASE_INTERVAL = 446,
  228. RELEASE_PATTERN = 447,
  229. RELEASE_PROBABILITY = 448,
  230. RELEASE_SITE = 449,
  231. REMOVE_ELEMENTS = 450,
  232. RIGHT = 451,
  233. ROTATE = 452,
  234. ROUND_OFF = 453,
  235. SCALE = 454,
  236. SEED = 455,
  237. SHAPE = 456,
  238. SHOW_EXACT_TIME = 457,
  239. SIN = 458,
  240. SITE_DIAMETER = 459,
  241. SITE_RADIUS = 460,
  242. SPACE_STEP = 461,
  243. SPHERICAL = 462,
  244. SPHERICAL_RELEASE_SITE = 463,
  245. SPHERICAL_SHELL = 464,
  246. SPHERICAL_SHELL_SITE = 465,
  247. SPRINTF = 466,
  248. SQRT = 467,
  249. STANDARD_DEVIATION = 468,
  250. PERIODIC_BOX_INITIAL = 469,
  251. STEP = 470,
  252. STRING_TO_NUM = 471,
  253. STR_VALUE = 472,
  254. SUBUNIT = 473,
  255. SUBUNIT_RELATIONSHIPS = 474,
  256. SUMMATION_OPERATOR = 475,
  257. SURFACE_CLASS = 476,
  258. SURFACE_ONLY = 477,
  259. TAN = 478,
  260. TARGET_ONLY = 479,
  261. TET_ELEMENT_CONNECTIONS = 480,
  262. THROUGHPUT_REPORT = 481,
  263. TIME_LIST = 482,
  264. TIME_POINTS = 483,
  265. TIME_STEP = 484,
  266. TIME_STEP_MAX = 485,
  267. TO = 486,
  268. TOP = 487,
  269. TRAIN_DURATION = 488,
  270. TRAIN_INTERVAL = 489,
  271. TRANSLATE = 490,
  272. TRANSPARENT = 491,
  273. TRIGGER = 492,
  274. TRUE = 493,
  275. UNLIMITED = 494,
  276. USELESS_VOLUME_ORIENTATION = 495,
  277. VACANCY_SEARCH_DISTANCE = 496,
  278. VAR = 497,
  279. VARYING_PROBABILITY_REPORT = 498,
  280. VERTEX_LIST = 499,
  281. VIZ_OUTPUT = 500,
  282. VIZ_OUTPUT_REPORT = 501,
  283. VIZ_VALUE = 502,
  284. VOLUME_DATA_OUTPUT = 503,
  285. VOLUME_OUTPUT_REPORT = 504,
  286. VOLUME_DEPENDENT_RELEASE_NUMBER = 505,
  287. VOLUME_ONLY = 506,
  288. VOXEL_COUNT = 507,
  289. VOXEL_LIST = 508,
  290. VOXEL_SIZE = 509,
  291. WARNING = 510,
  292. WARNINGS = 511,
  293. WORLD = 512,
  294. YES = 513,
  295. UNARYMINUS = 514
  296. };
  297. #endif
  298. /* Value type. */
  299. #if ! defined YYSTYPE && ! defined YYSTYPE_IS_DECLARED
  300. union YYSTYPE
  301. {
  302. #line 67 "/home/jczech/mcell/src/mdlparse.y" /* yacc.c:1909 */
  303. int ival;
  304. int tok;
  305. double dbl;
  306. long long llival;
  307. char *str;
  308. struct sym_entry *sym;
  309. struct vector3 *vec3;
  310. struct num_expr_list_head nlist;
  311. struct release_evaluator *rev;
  312. struct sym_table_list *symlist;
  313. struct output_times *otimes;
  314. /* Reaction output */
  315. struct output_times_inlist ro_otimes;
  316. struct output_column_list ro_cols;
  317. struct output_set *ro_set;
  318. struct output_set_list ro_sets;
  319. struct output_expression *cnt;
  320. /* Viz output */
  321. struct frame_data_list_head frame_list;
  322. /* Region definitions */
  323. struct element_list *elem_list_item;
  324. struct element_list_head elem_list;
  325. struct region *reg;
  326. /* Diffusion constants */
  327. struct diffusion_constant diff_const;
  328. /* Geometry */
  329. struct vertex_list_head vertlist;
  330. struct vertex_list *vertlistitem;
  331. struct element_connection_list_head ecl;
  332. struct element_connection_list *elem_conn;
  333. struct object *obj;
  334. struct object_list obj_list;
  335. struct voxel_object *voxel;
  336. /* Molecule species */
  337. struct mcell_species mol_type;
  338. struct mcell_species_list mol_type_list;
  339. struct mcell_species_spec *mcell_mol_spec;
  340. struct parse_mcell_species_list mcell_species_lst;
  341. struct sm_dat *surf_mol_dat;
  342. struct sm_dat_list surf_mol_dat_list;
  343. struct species_list species_lst;
  344. struct species_list_item *species_lst_item;
  345. /* Reactions */
  346. struct reaction_arrow react_arrow;
  347. struct reaction_rate react_rate;
  348. struct reaction_rates react_rates;
  349. /* Release sites/patterns */
  350. struct release_pattern rpat;
  351. struct release_single_molecule *rsm;
  352. struct release_single_molecule_list rsm_list;
  353. /* printf arguments */
  354. struct arg *printfarg;
  355. struct arg_list printfargs;
  356. #line 380 "/home/jczech/mcell/build/deps/mdlparse.h" /* yacc.c:1909 */
  357. };
  358. typedef union YYSTYPE YYSTYPE;
  359. # define YYSTYPE_IS_TRIVIAL 1
  360. # define YYSTYPE_IS_DECLARED 1
  361. #endif
  362. int mdlparse (struct mdlparse_vars *parse_state, yyscan_t scanner);
  363. #endif /* !YY_MDL_HOME_JCZECH_MCELL_BUILD_DEPS_MDLPARSE_H_INCLUDED */