dcetab.c 54 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997
  1. /* A Bison parser, made by GNU Bison 2.4.3. */
  2. /* Skeleton implementation for Bison's Yacc-like parsers in C
  3. Copyright (C) 1984, 1989, 1990, 2000, 2001, 2002, 2003, 2004, 2005, 2006,
  4. 2009, 2010 Free Software Foundation, Inc.
  5. This program is free software: you can redistribute it and/or modify
  6. it under the terms of the GNU General Public License as published by
  7. the Free Software Foundation, either version 3 of the License, or
  8. (at your option) any later version.
  9. This program is distributed in the hope that it will be useful,
  10. but WITHOUT ANY WARRANTY; without even the implied warranty of
  11. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  12. GNU General Public License for more details.
  13. You should have received a copy of the GNU General Public License
  14. along with this program. If not, see <http://www.gnu.org/licenses/>. */
  15. /* As a special exception, you may create a larger work that contains
  16. part or all of the Bison parser skeleton and distribute that work
  17. under terms of your choice, so long as that work isn't itself a
  18. parser generator using the skeleton or a modified version thereof
  19. as a parser skeleton. Alternatively, if you modify or redistribute
  20. the parser skeleton itself, you may (at your option) remove this
  21. special exception, which will cause the skeleton and the resulting
  22. Bison output files to be licensed under the GNU General Public
  23. License without this special exception.
  24. This special exception was added by the Free Software Foundation in
  25. version 2.2 of Bison. */
  26. /* C LALR(1) parser skeleton written by Richard Stallman, by
  27. simplifying the original so-called "semantic" parser. */
  28. /* All symbols defined below should begin with yy or YY, to avoid
  29. infringing on user name space. This should be done even for local
  30. variables, as they might otherwise be expanded by user macros.
  31. There are some unavoidable exceptions within include files to
  32. define necessary library symbols; they are noted "INFRINGES ON
  33. USER NAME SPACE" below. */
  34. /* Identify Bison output. */
  35. #define YYBISON 1
  36. /* Bison version. */
  37. #define YYBISON_VERSION "2.4.3"
  38. /* Skeleton name. */
  39. #define YYSKELETON_NAME "yacc.c"
  40. /* Pure parsers. */
  41. #define YYPURE 1
  42. /* Push parsers. */
  43. #define YYPUSH 0
  44. /* Pull parsers. */
  45. #define YYPULL 1
  46. /* Using locations. */
  47. #define YYLSP_NEEDED 0
  48. /* Substitute the variable and function names. */
  49. #define yyparse dceparse
  50. #define yylex dcelex
  51. #define yyerror dceerror
  52. #define yylval dcelval
  53. #define yychar dcechar
  54. #define yydebug dcedebug
  55. #define yynerrs dcenerrs
  56. /* Copy the first part of user declarations. */
  57. /* Line 189 of yacc.c */
  58. #line 11 "dce.y"
  59. #include "config.h"
  60. #include <stdlib.h>
  61. #include "netcdf.h"
  62. #include "ncbytes.h"
  63. #include "nclist.h"
  64. #include "dceconstraints.h"
  65. #include "dceparselex.h"
  66. /* Line 189 of yacc.c */
  67. #line 93 "dce.tab.c"
  68. /* Enabling traces. */
  69. #ifndef YYDEBUG
  70. # define YYDEBUG 1
  71. #endif
  72. /* Enabling verbose error messages. */
  73. #ifdef YYERROR_VERBOSE
  74. # undef YYERROR_VERBOSE
  75. # define YYERROR_VERBOSE 1
  76. #else
  77. # define YYERROR_VERBOSE 0
  78. #endif
  79. /* Enabling the token table. */
  80. #ifndef YYTOKEN_TABLE
  81. # define YYTOKEN_TABLE 0
  82. #endif
  83. /* Tokens. */
  84. #ifndef YYTOKENTYPE
  85. # define YYTOKENTYPE
  86. /* Put the tokens into the symbol table, so that GDB and other debuggers
  87. know about them. */
  88. enum yytokentype {
  89. SCAN_WORD = 258,
  90. SCAN_STRINGCONST = 259,
  91. SCAN_NUMBERCONST = 260
  92. };
  93. #endif
  94. #if ! defined YYSTYPE && ! defined YYSTYPE_IS_DECLARED
  95. typedef int YYSTYPE;
  96. # define YYSTYPE_IS_TRIVIAL 1
  97. # define yystype YYSTYPE /* obsolescent; will be withdrawn */
  98. # define YYSTYPE_IS_DECLARED 1
  99. #endif
  100. /* Copy the second part of user declarations. */
  101. /* Line 264 of yacc.c */
  102. #line 140 "dce.tab.c"
  103. #ifdef short
  104. # undef short
  105. #endif
  106. #ifdef YYTYPE_UINT8
  107. typedef YYTYPE_UINT8 yytype_uint8;
  108. #else
  109. typedef unsigned char yytype_uint8;
  110. #endif
  111. #ifdef YYTYPE_INT8
  112. typedef YYTYPE_INT8 yytype_int8;
  113. #elif (defined __STDC__ || defined __C99__FUNC__ \
  114. || defined __cplusplus || defined _MSC_VER)
  115. typedef signed char yytype_int8;
  116. #else
  117. typedef short int yytype_int8;
  118. #endif
  119. #ifdef YYTYPE_UINT16
  120. typedef YYTYPE_UINT16 yytype_uint16;
  121. #else
  122. typedef unsigned short int yytype_uint16;
  123. #endif
  124. #ifdef YYTYPE_INT16
  125. typedef YYTYPE_INT16 yytype_int16;
  126. #else
  127. typedef short int yytype_int16;
  128. #endif
  129. #ifndef YYSIZE_T
  130. # ifdef __SIZE_TYPE__
  131. # define YYSIZE_T __SIZE_TYPE__
  132. # elif defined size_t
  133. # define YYSIZE_T size_t
  134. # elif ! defined YYSIZE_T && (defined __STDC__ || defined __C99__FUNC__ \
  135. || defined __cplusplus || defined _MSC_VER)
  136. # include <stddef.h> /* INFRINGES ON USER NAME SPACE */
  137. # define YYSIZE_T size_t
  138. # else
  139. # define YYSIZE_T unsigned int
  140. # endif
  141. #endif
  142. #define YYSIZE_MAXIMUM ((YYSIZE_T) -1)
  143. #ifndef YY_
  144. # if defined YYENABLE_NLS && YYENABLE_NLS
  145. # if ENABLE_NLS
  146. # include <libintl.h> /* INFRINGES ON USER NAME SPACE */
  147. # define YY_(msgid) dgettext ("bison-runtime", msgid)
  148. # endif
  149. # endif
  150. # ifndef YY_
  151. # define YY_(msgid) msgid
  152. # endif
  153. #endif
  154. /* Suppress unused-variable warnings by "using" E. */
  155. #if ! defined lint || defined __GNUC__
  156. # define YYUSE(e) ((void) (e))
  157. #else
  158. # define YYUSE(e) /* empty */
  159. #endif
  160. /* Identity function, used to suppress warnings about constant conditions. */
  161. #ifndef lint
  162. # define YYID(n) (n)
  163. #else
  164. #if (defined __STDC__ || defined __C99__FUNC__ \
  165. || defined __cplusplus || defined _MSC_VER)
  166. static int
  167. YYID (int yyi)
  168. #else
  169. static int
  170. YYID (yyi)
  171. int yyi;
  172. #endif
  173. {
  174. return yyi;
  175. }
  176. #endif
  177. #if ! defined yyoverflow || YYERROR_VERBOSE
  178. /* The parser invokes alloca or malloc; define the necessary symbols. */
  179. # ifdef YYSTACK_USE_ALLOCA
  180. # if YYSTACK_USE_ALLOCA
  181. # ifdef __GNUC__
  182. # define YYSTACK_ALLOC __builtin_alloca
  183. # elif defined __BUILTIN_VA_ARG_INCR
  184. # include <alloca.h> /* INFRINGES ON USER NAME SPACE */
  185. # elif defined _AIX
  186. # define YYSTACK_ALLOC __alloca
  187. # elif defined _MSC_VER
  188. # include <malloc.h> /* INFRINGES ON USER NAME SPACE */
  189. # define alloca _alloca
  190. # else
  191. # define YYSTACK_ALLOC alloca
  192. # if ! defined _ALLOCA_H && ! defined _STDLIB_H && (defined __STDC__ || defined __C99__FUNC__ \
  193. || defined __cplusplus || defined _MSC_VER)
  194. # include <stdlib.h> /* INFRINGES ON USER NAME SPACE */
  195. # ifndef _STDLIB_H
  196. # define _STDLIB_H 1
  197. # endif
  198. # endif
  199. # endif
  200. # endif
  201. # endif
  202. # ifdef YYSTACK_ALLOC
  203. /* Pacify GCC's `empty if-body' warning. */
  204. # define YYSTACK_FREE(Ptr) do { /* empty */; } while (YYID (0))
  205. # ifndef YYSTACK_ALLOC_MAXIMUM
  206. /* The OS might guarantee only one guard page at the bottom of the stack,
  207. and a page size can be as small as 4096 bytes. So we cannot safely
  208. invoke alloca (N) if N exceeds 4096. Use a slightly smaller number
  209. to allow for a few compiler-allocated temporary stack slots. */
  210. # define YYSTACK_ALLOC_MAXIMUM 4032 /* reasonable circa 2006 */
  211. # endif
  212. # else
  213. # define YYSTACK_ALLOC YYMALLOC
  214. # define YYSTACK_FREE YYFREE
  215. # ifndef YYSTACK_ALLOC_MAXIMUM
  216. # define YYSTACK_ALLOC_MAXIMUM YYSIZE_MAXIMUM
  217. # endif
  218. # if (defined __cplusplus && ! defined _STDLIB_H \
  219. && ! ((defined YYMALLOC || defined malloc) \
  220. && (defined YYFREE || defined free)))
  221. # include <stdlib.h> /* INFRINGES ON USER NAME SPACE */
  222. # ifndef _STDLIB_H
  223. # define _STDLIB_H 1
  224. # endif
  225. # endif
  226. # ifndef YYMALLOC
  227. # define YYMALLOC malloc
  228. # if ! defined malloc && ! defined _STDLIB_H && (defined __STDC__ || defined __C99__FUNC__ \
  229. || defined __cplusplus || defined _MSC_VER)
  230. void *malloc (YYSIZE_T); /* INFRINGES ON USER NAME SPACE */
  231. # endif
  232. # endif
  233. # ifndef YYFREE
  234. # define YYFREE free
  235. # if ! defined free && ! defined _STDLIB_H && (defined __STDC__ || defined __C99__FUNC__ \
  236. || defined __cplusplus || defined _MSC_VER)
  237. void free (void *); /* INFRINGES ON USER NAME SPACE */
  238. # endif
  239. # endif
  240. # endif
  241. #endif /* ! defined yyoverflow || YYERROR_VERBOSE */
  242. #if (! defined yyoverflow \
  243. && (! defined __cplusplus \
  244. || (defined YYSTYPE_IS_TRIVIAL && YYSTYPE_IS_TRIVIAL)))
  245. /* A type that is properly aligned for any stack member. */
  246. union yyalloc
  247. {
  248. yytype_int16 yyss_alloc;
  249. YYSTYPE yyvs_alloc;
  250. };
  251. /* The size of the maximum gap between one aligned stack and the next. */
  252. # define YYSTACK_GAP_MAXIMUM (sizeof (union yyalloc) - 1)
  253. /* The size of an array large to enough to hold all stacks, each with
  254. N elements. */
  255. # define YYSTACK_BYTES(N) \
  256. ((N) * (sizeof (yytype_int16) + sizeof (YYSTYPE)) \
  257. + YYSTACK_GAP_MAXIMUM)
  258. /* Copy COUNT objects from FROM to TO. The source and destination do
  259. not overlap. */
  260. # ifndef YYCOPY
  261. # if defined __GNUC__ && 1 < __GNUC__
  262. # define YYCOPY(To, From, Count) \
  263. __builtin_memcpy (To, From, (Count) * sizeof (*(From)))
  264. # else
  265. # define YYCOPY(To, From, Count) \
  266. do \
  267. { \
  268. YYSIZE_T yyi; \
  269. for (yyi = 0; yyi < (Count); yyi++) \
  270. (To)[yyi] = (From)[yyi]; \
  271. } \
  272. while (YYID (0))
  273. # endif
  274. # endif
  275. /* Relocate STACK from its old location to the new one. The
  276. local variables YYSIZE and YYSTACKSIZE give the old and new number of
  277. elements in the stack, and YYPTR gives the new location of the
  278. stack. Advance YYPTR to a properly aligned location for the next
  279. stack. */
  280. # define YYSTACK_RELOCATE(Stack_alloc, Stack) \
  281. do \
  282. { \
  283. YYSIZE_T yynewbytes; \
  284. YYCOPY (&yyptr->Stack_alloc, Stack, yysize); \
  285. Stack = &yyptr->Stack_alloc; \
  286. yynewbytes = yystacksize * sizeof (*Stack) + YYSTACK_GAP_MAXIMUM; \
  287. yyptr += yynewbytes / sizeof (*yyptr); \
  288. } \
  289. while (YYID (0))
  290. #endif
  291. /* YYFINAL -- State number of the termination state. */
  292. #define YYFINAL 4
  293. /* YYLAST -- Last index in YYTABLE. */
  294. #define YYLAST 83
  295. /* YYNTOKENS -- Number of terminals. */
  296. #define YYNTOKENS 22
  297. /* YYNNTS -- Number of nonterminals. */
  298. #define YYNNTS 29
  299. /* YYNRULES -- Number of rules. */
  300. #define YYNRULES 59
  301. /* YYNRULES -- Number of states. */
  302. #define YYNSTATES 87
  303. /* YYTRANSLATE(YYLEX) -- Bison symbol number corresponding to YYLEX. */
  304. #define YYUNDEFTOK 2
  305. #define YYMAXUTOK 260
  306. #define YYTRANSLATE(YYX) \
  307. ((unsigned int) (YYX) <= YYMAXUTOK ? yytranslate[YYX] : YYUNDEFTOK)
  308. /* YYTRANSLATE[YYLEX] -- Bison symbol number corresponding to YYLEX. */
  309. static const yytype_uint8 yytranslate[] =
  310. {
  311. 0, 2, 2, 2, 2, 2, 2, 2, 2, 2,
  312. 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
  313. 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
  314. 2, 2, 2, 20, 2, 2, 2, 2, 14, 2,
  315. 8, 9, 2, 2, 7, 2, 10, 2, 2, 2,
  316. 2, 2, 2, 2, 2, 2, 2, 2, 13, 2,
  317. 19, 17, 18, 6, 2, 2, 2, 2, 2, 2,
  318. 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
  319. 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
  320. 2, 11, 2, 12, 2, 2, 2, 2, 2, 2,
  321. 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
  322. 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
  323. 2, 2, 2, 15, 2, 16, 21, 2, 2, 2,
  324. 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
  325. 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
  326. 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
  327. 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
  328. 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
  329. 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
  330. 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
  331. 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
  332. 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
  333. 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
  334. 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
  335. 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
  336. 2, 2, 2, 2, 2, 2, 1, 2, 3, 4,
  337. 5
  338. };
  339. #if YYDEBUG
  340. /* YYPRHS[YYN] -- Index of the first RHS symbol of rule number YYN in
  341. YYRHS. */
  342. static const yytype_uint8 yyprhs[] =
  343. {
  344. 0, 0, 3, 6, 9, 13, 14, 16, 17, 19,
  345. 21, 23, 27, 29, 31, 35, 40, 42, 46, 48,
  346. 51, 53, 56, 60, 66, 74, 78, 80, 83, 90,
  347. 95, 98, 100, 104, 106, 108, 110, 112, 114, 116,
  348. 118, 122, 124, 127, 129, 132, 136, 141, 143, 147,
  349. 149, 151, 153, 156, 159, 162, 165, 167, 169, 171
  350. };
  351. /* YYRHS -- A `-1'-separated list of the rules' RHS. */
  352. static const yytype_int8 yyrhs[] =
  353. {
  354. 23, 0, -1, 24, 25, -1, 24, 26, -1, 24,
  355. 25, 26, -1, -1, 6, -1, -1, 27, -1, 35,
  356. -1, 28, -1, 27, 7, 28, -1, 30, -1, 29,
  357. -1, 47, 8, 9, -1, 47, 8, 45, 9, -1,
  358. 31, -1, 30, 10, 31, -1, 48, -1, 48, 32,
  359. -1, 33, -1, 32, 33, -1, 11, 49, 12, -1,
  360. 11, 49, 13, 49, 12, -1, 11, 49, 13, 49,
  361. 13, 49, 12, -1, 11, 49, 12, -1, 36, -1,
  362. 35, 36, -1, 14, 38, 46, 15, 37, 16, -1,
  363. 14, 38, 46, 38, -1, 14, 44, -1, 38, -1,
  364. 37, 7, 38, -1, 40, -1, 29, -1, 39, -1,
  365. 49, -1, 50, -1, 41, -1, 42, -1, 41, 10,
  366. 42, -1, 48, -1, 48, 43, -1, 34, -1, 43,
  367. 34, -1, 47, 8, 9, -1, 47, 8, 45, 9,
  368. -1, 38, -1, 37, 7, 38, -1, 17, -1, 18,
  369. -1, 19, -1, 20, 17, -1, 18, 17, -1, 19,
  370. 17, -1, 17, 21, -1, 48, -1, 3, -1, 5,
  371. -1, 4, -1
  372. };
  373. /* YYRLINE[YYN] -- source line where rule number YYN was defined. */
  374. static const yytype_uint8 yyrline[] =
  375. {
  376. 0, 34, 34, 35, 36, 37, 40, 40, 43, 47,
  377. 51, 53, 58, 60, 65, 67, 72, 74, 79, 81,
  378. 86, 88, 93, 95, 97, 101, 107, 109, 114, 116,
  379. 118, 123, 125, 130, 132, 134, 139, 141, 146, 151,
  380. 153, 158, 160, 165, 167, 172, 174, 179, 181, 186,
  381. 187, 188, 189, 190, 191, 192, 195, 199, 203, 207
  382. };
  383. #endif
  384. #if YYDEBUG || YYERROR_VERBOSE || YYTOKEN_TABLE
  385. /* YYTNAME[SYMBOL-NUM] -- String name of the symbol SYMBOL-NUM.
  386. First, the terminals, then, starting at YYNTOKENS, nonterminals. */
  387. static const char *const yytname[] =
  388. {
  389. "$end", "error", "$undefined", "SCAN_WORD", "SCAN_STRINGCONST",
  390. "SCAN_NUMBERCONST", "'?'", "','", "'('", "')'", "'.'", "'['", "']'",
  391. "':'", "'&'", "'{'", "'}'", "'='", "'>'", "'<'", "'!'", "'~'", "$accept",
  392. "constraints", "optquestionmark", "projections", "selections",
  393. "projectionlist", "projection", "function", "segmentlist", "segment",
  394. "rangelist", "range", "range1", "clauselist", "sel_clause", "value_list",
  395. "value", "constant", "var", "indexpath", "index", "array_indices",
  396. "boolfunction", "arg_list", "rel_op", "ident", "word", "number",
  397. "string", 0
  398. };
  399. #endif
  400. # ifdef YYPRINT
  401. /* YYTOKNUM[YYLEX-NUM] -- Internal token number corresponding to
  402. token YYLEX-NUM. */
  403. static const yytype_uint16 yytoknum[] =
  404. {
  405. 0, 256, 257, 258, 259, 260, 63, 44, 40, 41,
  406. 46, 91, 93, 58, 38, 123, 125, 61, 62, 60,
  407. 33, 126
  408. };
  409. # endif
  410. /* YYR1[YYN] -- Symbol number of symbol that rule YYN derives. */
  411. static const yytype_uint8 yyr1[] =
  412. {
  413. 0, 22, 23, 23, 23, 23, 24, 24, 25, 26,
  414. 27, 27, 28, 28, 29, 29, 30, 30, 31, 31,
  415. 32, 32, 33, 33, 33, 34, 35, 35, 36, 36,
  416. 36, 37, 37, 38, 38, 38, 39, 39, 40, 41,
  417. 41, 42, 42, 43, 43, 44, 44, 45, 45, 46,
  418. 46, 46, 46, 46, 46, 46, 47, 48, 49, 50
  419. };
  420. /* YYR2[YYN] -- Number of symbols composing right hand side of rule YYN. */
  421. static const yytype_uint8 yyr2[] =
  422. {
  423. 0, 2, 2, 2, 3, 0, 1, 0, 1, 1,
  424. 1, 3, 1, 1, 3, 4, 1, 3, 1, 2,
  425. 1, 2, 3, 5, 7, 3, 1, 2, 6, 4,
  426. 2, 1, 3, 1, 1, 1, 1, 1, 1, 1,
  427. 3, 1, 2, 1, 2, 3, 4, 1, 3, 1,
  428. 1, 1, 2, 2, 2, 2, 1, 1, 1, 1
  429. };
  430. /* YYDEFACT[STATE-NAME] -- Default rule to reduce with in state
  431. STATE-NUM when YYTABLE doesn't specify something else to do. Zero
  432. means the default is an error. */
  433. static const yytype_uint8 yydefact[] =
  434. {
  435. 7, 6, 0, 0, 1, 57, 0, 2, 3, 8,
  436. 10, 13, 12, 16, 9, 26, 0, 18, 59, 58,
  437. 34, 0, 35, 33, 38, 39, 30, 0, 41, 36,
  438. 37, 4, 0, 0, 27, 0, 0, 19, 20, 49,
  439. 50, 51, 0, 0, 0, 0, 0, 43, 42, 11,
  440. 17, 18, 14, 0, 31, 0, 0, 21, 55, 53,
  441. 54, 52, 0, 29, 40, 41, 14, 0, 0, 44,
  442. 0, 15, 22, 0, 0, 31, 15, 25, 32, 0,
  443. 0, 28, 23, 0, 32, 0, 24
  444. };
  445. /* YYDEFGOTO[NTERM-NUM]. */
  446. static const yytype_int8 yydefgoto[] =
  447. {
  448. -1, 2, 3, 7, 8, 9, 10, 20, 12, 13,
  449. 37, 38, 47, 14, 15, 53, 54, 22, 23, 24,
  450. 25, 48, 26, 55, 43, 16, 28, 29, 30
  451. };
  452. /* YYPACT[STATE-NUM] -- Index in YYTABLE of the portion describing
  453. STATE-NUM. */
  454. #define YYPACT_NINF -36
  455. static const yytype_int8 yypact[] =
  456. {
  457. 10, -36, 8, 4, -36, -36, 46, 12, -36, 23,
  458. -36, -36, 44, -36, 12, -36, 7, -2, -36, -36,
  459. -36, 27, -36, -36, 45, -36, -36, 49, 17, -36,
  460. -36, -36, 36, 36, -36, 18, 53, 48, -36, 39,
  461. 50, 51, 52, 9, 36, 31, 53, -36, 54, -36,
  462. -36, 48, -36, 55, 57, 61, 29, -36, -36, -36,
  463. -36, -36, 46, -36, -36, 54, 3, 62, 60, -36,
  464. 46, -36, -36, 53, 13, -36, 5, -36, 64, 40,
  465. 46, -36, -36, 53, -36, 63, -36
  466. };
  467. /* YYPGOTO[NTERM-NUM]. */
  468. static const yytype_int8 yypgoto[] =
  469. {
  470. -36, -36, -36, -36, 56, -36, 47, 1, -36, 28,
  471. -36, 41, 32, -36, 67, 14, -6, -36, -36, -36,
  472. 33, -36, -36, 37, -36, 77, -1, -35, -36
  473. };
  474. /* YYTABLE[YYPACT[STATE-NUM]]. What to do in state STATE-NUM. If
  475. positive, shift that token. If negative, reduce the rule which
  476. number is the opposite. If zero, do what YYDEFACT says.
  477. If YYTABLE_NINF, syntax error. */
  478. #define YYTABLE_NINF -57
  479. static const yytype_int8 yytable[] =
  480. {
  481. 21, 56, 17, -45, 11, -46, -56, 5, 4, 36,
  482. -5, 68, 5, 18, 19, 35, 1, -45, 6, -46,
  483. 80, 5, 18, 19, 62, -56, 6, 52, 46, 81,
  484. 32, 17, 51, 11, 5, 18, 19, 63, 79, 5,
  485. 66, 72, 73, 65, 39, 40, 41, 42, 85, 5,
  486. 18, 19, 82, 83, 33, 44, 75, 45, 19, 36,
  487. 58, 50, 70, 31, 78, 46, -47, 59, 60, 61,
  488. 71, 76, 77, -48, 84, 86, 74, 64, 57, 49,
  489. 69, 34, 67, 27
  490. };
  491. static const yytype_uint8 yycheck[] =
  492. {
  493. 6, 36, 3, 0, 3, 0, 8, 3, 0, 11,
  494. 0, 46, 3, 4, 5, 8, 6, 14, 14, 14,
  495. 7, 3, 4, 5, 15, 8, 14, 9, 11, 16,
  496. 7, 32, 33, 32, 3, 4, 5, 43, 73, 3,
  497. 9, 12, 13, 44, 17, 18, 19, 20, 83, 3,
  498. 4, 5, 12, 13, 10, 10, 62, 8, 5, 11,
  499. 21, 33, 7, 7, 70, 11, 9, 17, 17, 17,
  500. 9, 9, 12, 9, 80, 12, 62, 44, 37, 32,
  501. 48, 14, 45, 6
  502. };
  503. /* YYSTOS[STATE-NUM] -- The (internal number of the) accessing
  504. symbol of state STATE-NUM. */
  505. static const yytype_uint8 yystos[] =
  506. {
  507. 0, 6, 23, 24, 0, 3, 14, 25, 26, 27,
  508. 28, 29, 30, 31, 35, 36, 47, 48, 4, 5,
  509. 29, 38, 39, 40, 41, 42, 44, 47, 48, 49,
  510. 50, 26, 7, 10, 36, 8, 11, 32, 33, 17,
  511. 18, 19, 20, 46, 10, 8, 11, 34, 43, 28,
  512. 31, 48, 9, 37, 38, 45, 49, 33, 21, 17,
  513. 17, 17, 15, 38, 42, 48, 9, 45, 49, 34,
  514. 7, 9, 12, 13, 37, 38, 9, 12, 38, 49,
  515. 7, 16, 12, 13, 38, 49, 12
  516. };
  517. #define yyerrok (yyerrstatus = 0)
  518. #define yyclearin (yychar = YYEMPTY)
  519. #define YYEMPTY (-2)
  520. #define YYEOF 0
  521. #define YYACCEPT goto yyacceptlab
  522. #define YYABORT goto yyabortlab
  523. #define YYERROR goto yyerrorlab
  524. /* Like YYERROR except do call yyerror. This remains here temporarily
  525. to ease the transition to the new meaning of YYERROR, for GCC.
  526. Once GCC version 2 has supplanted version 1, this can go. However,
  527. YYFAIL appears to be in use. Nevertheless, it is formally deprecated
  528. in Bison 2.4.2's NEWS entry, where a plan to phase it out is
  529. discussed. */
  530. #define YYFAIL goto yyerrlab
  531. #if defined YYFAIL
  532. /* This is here to suppress warnings from the GCC cpp's
  533. -Wunused-macros. Normally we don't worry about that warning, but
  534. some users do, and we want to make it easy for users to remove
  535. YYFAIL uses, which will produce warnings from Bison 2.5. */
  536. #endif
  537. #define YYRECOVERING() (!!yyerrstatus)
  538. #define YYBACKUP(Token, Value) \
  539. do \
  540. if (yychar == YYEMPTY && yylen == 1) \
  541. { \
  542. yychar = (Token); \
  543. yylval = (Value); \
  544. yytoken = YYTRANSLATE (yychar); \
  545. YYPOPSTACK (1); \
  546. goto yybackup; \
  547. } \
  548. else \
  549. { \
  550. yyerror (parsestate, YY_("syntax error: cannot back up")); \
  551. YYERROR; \
  552. } \
  553. while (YYID (0))
  554. #define YYTERROR 1
  555. #define YYERRCODE 256
  556. /* YYLLOC_DEFAULT -- Set CURRENT to span from RHS[1] to RHS[N].
  557. If N is 0, then set CURRENT to the empty location which ends
  558. the previous symbol: RHS[0] (always defined). */
  559. #define YYRHSLOC(Rhs, K) ((Rhs)[K])
  560. #ifndef YYLLOC_DEFAULT
  561. # define YYLLOC_DEFAULT(Current, Rhs, N) \
  562. do \
  563. if (YYID (N)) \
  564. { \
  565. (Current).first_line = YYRHSLOC (Rhs, 1).first_line; \
  566. (Current).first_column = YYRHSLOC (Rhs, 1).first_column; \
  567. (Current).last_line = YYRHSLOC (Rhs, N).last_line; \
  568. (Current).last_column = YYRHSLOC (Rhs, N).last_column; \
  569. } \
  570. else \
  571. { \
  572. (Current).first_line = (Current).last_line = \
  573. YYRHSLOC (Rhs, 0).last_line; \
  574. (Current).first_column = (Current).last_column = \
  575. YYRHSLOC (Rhs, 0).last_column; \
  576. } \
  577. while (YYID (0))
  578. #endif
  579. /* YY_LOCATION_PRINT -- Print the location on the stream.
  580. This macro was not mandated originally: define only if we know
  581. we won't break user code: when these are the locations we know. */
  582. #ifndef YY_LOCATION_PRINT
  583. # if defined YYLTYPE_IS_TRIVIAL && YYLTYPE_IS_TRIVIAL
  584. # define YY_LOCATION_PRINT(File, Loc) \
  585. fprintf (File, "%d.%d-%d.%d", \
  586. (Loc).first_line, (Loc).first_column, \
  587. (Loc).last_line, (Loc).last_column)
  588. # else
  589. # define YY_LOCATION_PRINT(File, Loc) ((void) 0)
  590. # endif
  591. #endif
  592. /* YYLEX -- calling `yylex' with the right arguments. */
  593. #ifdef YYLEX_PARAM
  594. # define YYLEX yylex (&yylval, YYLEX_PARAM)
  595. #else
  596. # define YYLEX yylex (&yylval, parsestate)
  597. #endif
  598. /* Enable debugging if requested. */
  599. #if YYDEBUG
  600. # ifndef YYFPRINTF
  601. # include <stdio.h> /* INFRINGES ON USER NAME SPACE */
  602. # define YYFPRINTF fprintf
  603. # endif
  604. # define YYDPRINTF(Args) \
  605. do { \
  606. if (yydebug) \
  607. YYFPRINTF Args; \
  608. } while (YYID (0))
  609. # define YY_SYMBOL_PRINT(Title, Type, Value, Location) \
  610. do { \
  611. if (yydebug) \
  612. { \
  613. YYFPRINTF (stderr, "%s ", Title); \
  614. yy_symbol_print (stderr, \
  615. Type, Value, parsestate); \
  616. YYFPRINTF (stderr, "\n"); \
  617. } \
  618. } while (YYID (0))
  619. /*--------------------------------.
  620. | Print this symbol on YYOUTPUT. |
  621. `--------------------------------*/
  622. /*ARGSUSED*/
  623. #if (defined __STDC__ || defined __C99__FUNC__ \
  624. || defined __cplusplus || defined _MSC_VER)
  625. static void
  626. yy_symbol_value_print (FILE *yyoutput, int yytype, YYSTYPE const * const yyvaluep, DCEparsestate* parsestate)
  627. #else
  628. static void
  629. yy_symbol_value_print (yyoutput, yytype, yyvaluep, parsestate)
  630. FILE *yyoutput;
  631. int yytype;
  632. YYSTYPE const * const yyvaluep;
  633. DCEparsestate* parsestate;
  634. #endif
  635. {
  636. if (!yyvaluep)
  637. return;
  638. YYUSE (parsestate);
  639. # ifdef YYPRINT
  640. if (yytype < YYNTOKENS)
  641. YYPRINT (yyoutput, yytoknum[yytype], *yyvaluep);
  642. # else
  643. YYUSE (yyoutput);
  644. # endif
  645. switch (yytype)
  646. {
  647. default:
  648. break;
  649. }
  650. }
  651. /*--------------------------------.
  652. | Print this symbol on YYOUTPUT. |
  653. `--------------------------------*/
  654. #if (defined __STDC__ || defined __C99__FUNC__ \
  655. || defined __cplusplus || defined _MSC_VER)
  656. static void
  657. yy_symbol_print (FILE *yyoutput, int yytype, YYSTYPE const * const yyvaluep, DCEparsestate* parsestate)
  658. #else
  659. static void
  660. yy_symbol_print (yyoutput, yytype, yyvaluep, parsestate)
  661. FILE *yyoutput;
  662. int yytype;
  663. YYSTYPE const * const yyvaluep;
  664. DCEparsestate* parsestate;
  665. #endif
  666. {
  667. if (yytype < YYNTOKENS)
  668. YYFPRINTF (yyoutput, "token %s (", yytname[yytype]);
  669. else
  670. YYFPRINTF (yyoutput, "nterm %s (", yytname[yytype]);
  671. yy_symbol_value_print (yyoutput, yytype, yyvaluep, parsestate);
  672. YYFPRINTF (yyoutput, ")");
  673. }
  674. /*------------------------------------------------------------------.
  675. | yy_stack_print -- Print the state stack from its BOTTOM up to its |
  676. | TOP (included). |
  677. `------------------------------------------------------------------*/
  678. #if (defined __STDC__ || defined __C99__FUNC__ \
  679. || defined __cplusplus || defined _MSC_VER)
  680. static void
  681. yy_stack_print (yytype_int16 *yybottom, yytype_int16 *yytop)
  682. #else
  683. static void
  684. yy_stack_print (yybottom, yytop)
  685. yytype_int16 *yybottom;
  686. yytype_int16 *yytop;
  687. #endif
  688. {
  689. YYFPRINTF (stderr, "Stack now");
  690. for (; yybottom <= yytop; yybottom++)
  691. {
  692. int yybot = *yybottom;
  693. YYFPRINTF (stderr, " %d", yybot);
  694. }
  695. YYFPRINTF (stderr, "\n");
  696. }
  697. # define YY_STACK_PRINT(Bottom, Top) \
  698. do { \
  699. if (yydebug) \
  700. yy_stack_print ((Bottom), (Top)); \
  701. } while (YYID (0))
  702. /*------------------------------------------------.
  703. | Report that the YYRULE is going to be reduced. |
  704. `------------------------------------------------*/
  705. #if (defined __STDC__ || defined __C99__FUNC__ \
  706. || defined __cplusplus || defined _MSC_VER)
  707. static void
  708. yy_reduce_print (YYSTYPE *yyvsp, int yyrule, DCEparsestate* parsestate)
  709. #else
  710. static void
  711. yy_reduce_print (yyvsp, yyrule, parsestate)
  712. YYSTYPE *yyvsp;
  713. int yyrule;
  714. DCEparsestate* parsestate;
  715. #endif
  716. {
  717. int yynrhs = yyr2[yyrule];
  718. int yyi;
  719. unsigned long int yylno = yyrline[yyrule];
  720. YYFPRINTF (stderr, "Reducing stack by rule %d (line %lu):\n",
  721. yyrule - 1, yylno);
  722. /* The symbols being reduced. */
  723. for (yyi = 0; yyi < yynrhs; yyi++)
  724. {
  725. YYFPRINTF (stderr, " $%d = ", yyi + 1);
  726. yy_symbol_print (stderr, yyrhs[yyprhs[yyrule] + yyi],
  727. &(yyvsp[(yyi + 1) - (yynrhs)])
  728. , parsestate);
  729. YYFPRINTF (stderr, "\n");
  730. }
  731. }
  732. # define YY_REDUCE_PRINT(Rule) \
  733. do { \
  734. if (yydebug) \
  735. yy_reduce_print (yyvsp, Rule, parsestate); \
  736. } while (YYID (0))
  737. /* Nonzero means print parse trace. It is left uninitialized so that
  738. multiple parsers can coexist. */
  739. int yydebug;
  740. #else /* !YYDEBUG */
  741. # define YYDPRINTF(Args)
  742. # define YY_SYMBOL_PRINT(Title, Type, Value, Location)
  743. # define YY_STACK_PRINT(Bottom, Top)
  744. # define YY_REDUCE_PRINT(Rule)
  745. #endif /* !YYDEBUG */
  746. /* YYINITDEPTH -- initial size of the parser's stacks. */
  747. #ifndef YYINITDEPTH
  748. # define YYINITDEPTH 200
  749. #endif
  750. /* YYMAXDEPTH -- maximum size the stacks can grow to (effective only
  751. if the built-in stack extension method is used).
  752. Do not make this value too large; the results are undefined if
  753. YYSTACK_ALLOC_MAXIMUM < YYSTACK_BYTES (YYMAXDEPTH)
  754. evaluated with infinite-precision integer arithmetic. */
  755. #ifndef YYMAXDEPTH
  756. # define YYMAXDEPTH 10000
  757. #endif
  758. #if YYERROR_VERBOSE
  759. # ifndef yystrlen
  760. # if defined __GLIBC__ && defined _STRING_H
  761. # define yystrlen strlen
  762. # else
  763. /* Return the length of YYSTR. */
  764. #if (defined __STDC__ || defined __C99__FUNC__ \
  765. || defined __cplusplus || defined _MSC_VER)
  766. static YYSIZE_T
  767. yystrlen (const char *yystr)
  768. #else
  769. static YYSIZE_T
  770. yystrlen (yystr)
  771. const char *yystr;
  772. #endif
  773. {
  774. YYSIZE_T yylen;
  775. for (yylen = 0; yystr[yylen]; yylen++)
  776. continue;
  777. return yylen;
  778. }
  779. # endif
  780. # endif
  781. # ifndef yystpcpy
  782. # if defined __GLIBC__ && defined _STRING_H && defined _GNU_SOURCE
  783. # define yystpcpy stpcpy
  784. # else
  785. /* Copy YYSRC to YYDEST, returning the address of the terminating '\0' in
  786. YYDEST. */
  787. #if (defined __STDC__ || defined __C99__FUNC__ \
  788. || defined __cplusplus || defined _MSC_VER)
  789. static char *
  790. yystpcpy (char *yydest, const char *yysrc)
  791. #else
  792. static char *
  793. yystpcpy (yydest, yysrc)
  794. char *yydest;
  795. const char *yysrc;
  796. #endif
  797. {
  798. char *yyd = yydest;
  799. const char *yys = yysrc;
  800. while ((*yyd++ = *yys++) != '\0')
  801. continue;
  802. return yyd - 1;
  803. }
  804. # endif
  805. # endif
  806. # ifndef yytnamerr
  807. /* Copy to YYRES the contents of YYSTR after stripping away unnecessary
  808. quotes and backslashes, so that it's suitable for yyerror. The
  809. heuristic is that double-quoting is unnecessary unless the string
  810. contains an apostrophe, a comma, or backslash (other than
  811. backslash-backslash). YYSTR is taken from yytname. If YYRES is
  812. null, do not copy; instead, return the length of what the result
  813. would have been. */
  814. static YYSIZE_T
  815. yytnamerr (char *yyres, const char *yystr)
  816. {
  817. if (*yystr == '"')
  818. {
  819. YYSIZE_T yyn = 0;
  820. char const *yyp = yystr;
  821. for (;;)
  822. switch (*++yyp)
  823. {
  824. case '\'':
  825. case ',':
  826. goto do_not_strip_quotes;
  827. case '\\':
  828. if (*++yyp != '\\')
  829. goto do_not_strip_quotes;
  830. /* Fall through. */
  831. default:
  832. if (yyres)
  833. yyres[yyn] = *yyp;
  834. yyn++;
  835. break;
  836. case '"':
  837. if (yyres)
  838. yyres[yyn] = '\0';
  839. return yyn;
  840. }
  841. do_not_strip_quotes: ;
  842. }
  843. if (! yyres)
  844. return yystrlen (yystr);
  845. return yystpcpy (yyres, yystr) - yyres;
  846. }
  847. # endif
  848. /* Copy into YYRESULT an error message about the unexpected token
  849. YYCHAR while in state YYSTATE. Return the number of bytes copied,
  850. including the terminating null byte. If YYRESULT is null, do not
  851. copy anything; just return the number of bytes that would be
  852. copied. As a special case, return 0 if an ordinary "syntax error"
  853. message will do. Return YYSIZE_MAXIMUM if overflow occurs during
  854. size calculation. */
  855. static YYSIZE_T
  856. yysyntax_error (char *yyresult, int yystate, int yychar)
  857. {
  858. int yyn = yypact[yystate];
  859. if (! (YYPACT_NINF < yyn && yyn <= YYLAST))
  860. return 0;
  861. else
  862. {
  863. int yytype = YYTRANSLATE (yychar);
  864. YYSIZE_T yysize0 = yytnamerr (0, yytname[yytype]);
  865. YYSIZE_T yysize = yysize0;
  866. YYSIZE_T yysize1;
  867. int yysize_overflow = 0;
  868. enum { YYERROR_VERBOSE_ARGS_MAXIMUM = 5 };
  869. char const *yyarg[YYERROR_VERBOSE_ARGS_MAXIMUM];
  870. int yyx;
  871. # if 0
  872. /* This is so xgettext sees the translatable formats that are
  873. constructed on the fly. */
  874. YY_("syntax error, unexpected %s");
  875. YY_("syntax error, unexpected %s, expecting %s");
  876. YY_("syntax error, unexpected %s, expecting %s or %s");
  877. YY_("syntax error, unexpected %s, expecting %s or %s or %s");
  878. YY_("syntax error, unexpected %s, expecting %s or %s or %s or %s");
  879. # endif
  880. char *yyfmt;
  881. char const *yyf;
  882. static char const yyunexpected[] = "syntax error, unexpected %s";
  883. static char const yyexpecting[] = ", expecting %s";
  884. static char const yyor[] = " or %s";
  885. char yyformat[sizeof yyunexpected
  886. + sizeof yyexpecting - 1
  887. + ((YYERROR_VERBOSE_ARGS_MAXIMUM - 2)
  888. * (sizeof yyor - 1))];
  889. char const *yyprefix = yyexpecting;
  890. /* Start YYX at -YYN if negative to avoid negative indexes in
  891. YYCHECK. */
  892. int yyxbegin = yyn < 0 ? -yyn : 0;
  893. /* Stay within bounds of both yycheck and yytname. */
  894. int yychecklim = YYLAST - yyn + 1;
  895. int yyxend = yychecklim < YYNTOKENS ? yychecklim : YYNTOKENS;
  896. int yycount = 1;
  897. yyarg[0] = yytname[yytype];
  898. yyfmt = yystpcpy (yyformat, yyunexpected);
  899. for (yyx = yyxbegin; yyx < yyxend; ++yyx)
  900. if (yycheck[yyx + yyn] == yyx && yyx != YYTERROR)
  901. {
  902. if (yycount == YYERROR_VERBOSE_ARGS_MAXIMUM)
  903. {
  904. yycount = 1;
  905. yysize = yysize0;
  906. yyformat[sizeof yyunexpected - 1] = '\0';
  907. break;
  908. }
  909. yyarg[yycount++] = yytname[yyx];
  910. yysize1 = yysize + yytnamerr (0, yytname[yyx]);
  911. yysize_overflow |= (yysize1 < yysize);
  912. yysize = yysize1;
  913. yyfmt = yystpcpy (yyfmt, yyprefix);
  914. yyprefix = yyor;
  915. }
  916. yyf = YY_(yyformat);
  917. yysize1 = yysize + yystrlen (yyf);
  918. yysize_overflow |= (yysize1 < yysize);
  919. yysize = yysize1;
  920. if (yysize_overflow)
  921. return YYSIZE_MAXIMUM;
  922. if (yyresult)
  923. {
  924. /* Avoid sprintf, as that infringes on the user's name space.
  925. Don't have undefined behavior even if the translation
  926. produced a string with the wrong number of "%s"s. */
  927. char *yyp = yyresult;
  928. int yyi = 0;
  929. while ((*yyp = *yyf) != '\0')
  930. {
  931. if (*yyp == '%' && yyf[1] == 's' && yyi < yycount)
  932. {
  933. yyp += yytnamerr (yyp, yyarg[yyi++]);
  934. yyf += 2;
  935. }
  936. else
  937. {
  938. yyp++;
  939. yyf++;
  940. }
  941. }
  942. }
  943. return yysize;
  944. }
  945. }
  946. #endif /* YYERROR_VERBOSE */
  947. /*-----------------------------------------------.
  948. | Release the memory associated to this symbol. |
  949. `-----------------------------------------------*/
  950. /*ARGSUSED*/
  951. #if (defined __STDC__ || defined __C99__FUNC__ \
  952. || defined __cplusplus || defined _MSC_VER)
  953. static void
  954. yydestruct (const char *yymsg, int yytype, YYSTYPE *yyvaluep, DCEparsestate* parsestate)
  955. #else
  956. static void
  957. yydestruct (yymsg, yytype, yyvaluep, parsestate)
  958. const char *yymsg;
  959. int yytype;
  960. YYSTYPE *yyvaluep;
  961. DCEparsestate* parsestate;
  962. #endif
  963. {
  964. YYUSE (yyvaluep);
  965. YYUSE (parsestate);
  966. if (!yymsg)
  967. yymsg = "Deleting";
  968. YY_SYMBOL_PRINT (yymsg, yytype, yyvaluep, yylocationp);
  969. switch (yytype)
  970. {
  971. default:
  972. break;
  973. }
  974. }
  975. /* Prevent warnings from -Wmissing-prototypes. */
  976. #ifdef YYPARSE_PARAM
  977. #if defined __STDC__ || defined __cplusplus
  978. int yyparse (void *YYPARSE_PARAM);
  979. #else
  980. int yyparse ();
  981. #endif
  982. #else /* ! YYPARSE_PARAM */
  983. #if defined __STDC__ || defined __cplusplus
  984. int yyparse (DCEparsestate* parsestate);
  985. #else
  986. int yyparse ();
  987. #endif
  988. #endif /* ! YYPARSE_PARAM */
  989. /*-------------------------.
  990. | yyparse or yypush_parse. |
  991. `-------------------------*/
  992. #ifdef YYPARSE_PARAM
  993. #if (defined __STDC__ || defined __C99__FUNC__ \
  994. || defined __cplusplus || defined _MSC_VER)
  995. int
  996. yyparse (void *YYPARSE_PARAM)
  997. #else
  998. int
  999. yyparse (YYPARSE_PARAM)
  1000. void *YYPARSE_PARAM;
  1001. #endif
  1002. #else /* ! YYPARSE_PARAM */
  1003. #if (defined __STDC__ || defined __C99__FUNC__ \
  1004. || defined __cplusplus || defined _MSC_VER)
  1005. int
  1006. yyparse (DCEparsestate* parsestate)
  1007. #else
  1008. int
  1009. yyparse (parsestate)
  1010. DCEparsestate* parsestate;
  1011. #endif
  1012. #endif
  1013. {
  1014. /* The lookahead symbol. */
  1015. int yychar;
  1016. /* The semantic value of the lookahead symbol. */
  1017. YYSTYPE yylval;
  1018. /* Number of syntax errors so far. */
  1019. int yynerrs;
  1020. int yystate;
  1021. /* Number of tokens to shift before error messages enabled. */
  1022. int yyerrstatus;
  1023. /* The stacks and their tools:
  1024. `yyss': related to states.
  1025. `yyvs': related to semantic values.
  1026. Refer to the stacks thru separate pointers, to allow yyoverflow
  1027. to reallocate them elsewhere. */
  1028. /* The state stack. */
  1029. yytype_int16 yyssa[YYINITDEPTH];
  1030. yytype_int16 *yyss;
  1031. yytype_int16 *yyssp;
  1032. /* The semantic value stack. */
  1033. YYSTYPE yyvsa[YYINITDEPTH];
  1034. YYSTYPE *yyvs;
  1035. YYSTYPE *yyvsp;
  1036. YYSIZE_T yystacksize;
  1037. int yyn;
  1038. int yyresult;
  1039. /* Lookahead token as an internal (translated) token number. */
  1040. int yytoken;
  1041. /* The variables used to return semantic value and location from the
  1042. action routines. */
  1043. YYSTYPE yyval;
  1044. #if YYERROR_VERBOSE
  1045. /* Buffer for error messages, and its allocated size. */
  1046. char yymsgbuf[128];
  1047. char *yymsg = yymsgbuf;
  1048. YYSIZE_T yymsg_alloc = sizeof yymsgbuf;
  1049. #endif
  1050. #define YYPOPSTACK(N) (yyvsp -= (N), yyssp -= (N))
  1051. /* The number of symbols on the RHS of the reduced rule.
  1052. Keep to zero when no symbol should be popped. */
  1053. int yylen = 0;
  1054. yytoken = 0;
  1055. yyss = yyssa;
  1056. yyvs = yyvsa;
  1057. yystacksize = YYINITDEPTH;
  1058. YYDPRINTF ((stderr, "Starting parse\n"));
  1059. yystate = 0;
  1060. yyerrstatus = 0;
  1061. yynerrs = 0;
  1062. yychar = YYEMPTY; /* Cause a token to be read. */
  1063. /* Initialize stack pointers.
  1064. Waste one element of value and location stack
  1065. so that they stay on the same level as the state stack.
  1066. The wasted elements are never initialized. */
  1067. yyssp = yyss;
  1068. yyvsp = yyvs;
  1069. goto yysetstate;
  1070. /*------------------------------------------------------------.
  1071. | yynewstate -- Push a new state, which is found in yystate. |
  1072. `------------------------------------------------------------*/
  1073. yynewstate:
  1074. /* In all cases, when you get here, the value and location stacks
  1075. have just been pushed. So pushing a state here evens the stacks. */
  1076. yyssp++;
  1077. yysetstate:
  1078. *yyssp = yystate;
  1079. if (yyss + yystacksize - 1 <= yyssp)
  1080. {
  1081. /* Get the current used size of the three stacks, in elements. */
  1082. YYSIZE_T yysize = yyssp - yyss + 1;
  1083. #ifdef yyoverflow
  1084. {
  1085. /* Give user a chance to reallocate the stack. Use copies of
  1086. these so that the &'s don't force the real ones into
  1087. memory. */
  1088. YYSTYPE *yyvs1 = yyvs;
  1089. yytype_int16 *yyss1 = yyss;
  1090. /* Each stack pointer address is followed by the size of the
  1091. data in use in that stack, in bytes. This used to be a
  1092. conditional around just the two extra args, but that might
  1093. be undefined if yyoverflow is a macro. */
  1094. yyoverflow (YY_("memory exhausted"),
  1095. &yyss1, yysize * sizeof (*yyssp),
  1096. &yyvs1, yysize * sizeof (*yyvsp),
  1097. &yystacksize);
  1098. yyss = yyss1;
  1099. yyvs = yyvs1;
  1100. }
  1101. #else /* no yyoverflow */
  1102. # ifndef YYSTACK_RELOCATE
  1103. goto yyexhaustedlab;
  1104. # else
  1105. /* Extend the stack our own way. */
  1106. if (YYMAXDEPTH <= yystacksize)
  1107. goto yyexhaustedlab;
  1108. yystacksize *= 2;
  1109. if (YYMAXDEPTH < yystacksize)
  1110. yystacksize = YYMAXDEPTH;
  1111. {
  1112. yytype_int16 *yyss1 = yyss;
  1113. union yyalloc *yyptr =
  1114. (union yyalloc *) YYSTACK_ALLOC (YYSTACK_BYTES (yystacksize));
  1115. if (! yyptr)
  1116. goto yyexhaustedlab;
  1117. YYSTACK_RELOCATE (yyss_alloc, yyss);
  1118. YYSTACK_RELOCATE (yyvs_alloc, yyvs);
  1119. # undef YYSTACK_RELOCATE
  1120. if (yyss1 != yyssa)
  1121. YYSTACK_FREE (yyss1);
  1122. }
  1123. # endif
  1124. #endif /* no yyoverflow */
  1125. yyssp = yyss + yysize - 1;
  1126. yyvsp = yyvs + yysize - 1;
  1127. YYDPRINTF ((stderr, "Stack size increased to %lu\n",
  1128. (unsigned long int) yystacksize));
  1129. if (yyss + yystacksize - 1 <= yyssp)
  1130. YYABORT;
  1131. }
  1132. YYDPRINTF ((stderr, "Entering state %d\n", yystate));
  1133. if (yystate == YYFINAL)
  1134. YYACCEPT;
  1135. goto yybackup;
  1136. /*-----------.
  1137. | yybackup. |
  1138. `-----------*/
  1139. yybackup:
  1140. /* Do appropriate processing given the current state. Read a
  1141. lookahead token if we need one and don't already have one. */
  1142. /* First try to decide what to do without reference to lookahead token. */
  1143. yyn = yypact[yystate];
  1144. if (yyn == YYPACT_NINF)
  1145. goto yydefault;
  1146. /* Not known => get a lookahead token if don't already have one. */
  1147. /* YYCHAR is either YYEMPTY or YYEOF or a valid lookahead symbol. */
  1148. if (yychar == YYEMPTY)
  1149. {
  1150. YYDPRINTF ((stderr, "Reading a token: "));
  1151. yychar = YYLEX;
  1152. }
  1153. if (yychar <= YYEOF)
  1154. {
  1155. yychar = yytoken = YYEOF;
  1156. YYDPRINTF ((stderr, "Now at end of input.\n"));
  1157. }
  1158. else
  1159. {
  1160. yytoken = YYTRANSLATE (yychar);
  1161. YY_SYMBOL_PRINT ("Next token is", yytoken, &yylval, &yylloc);
  1162. }
  1163. /* If the proper action on seeing token YYTOKEN is to reduce or to
  1164. detect an error, take that action. */
  1165. yyn += yytoken;
  1166. if (yyn < 0 || YYLAST < yyn || yycheck[yyn] != yytoken)
  1167. goto yydefault;
  1168. yyn = yytable[yyn];
  1169. if (yyn <= 0)
  1170. {
  1171. if (yyn == 0 || yyn == YYTABLE_NINF)
  1172. goto yyerrlab;
  1173. yyn = -yyn;
  1174. goto yyreduce;
  1175. }
  1176. /* Count tokens shifted since error; after three, turn off error
  1177. status. */
  1178. if (yyerrstatus)
  1179. yyerrstatus--;
  1180. /* Shift the lookahead token. */
  1181. YY_SYMBOL_PRINT ("Shifting", yytoken, &yylval, &yylloc);
  1182. /* Discard the shifted token. */
  1183. yychar = YYEMPTY;
  1184. yystate = yyn;
  1185. *++yyvsp = yylval;
  1186. goto yynewstate;
  1187. /*-----------------------------------------------------------.
  1188. | yydefault -- do the default action for the current state. |
  1189. `-----------------------------------------------------------*/
  1190. yydefault:
  1191. yyn = yydefact[yystate];
  1192. if (yyn == 0)
  1193. goto yyerrlab;
  1194. goto yyreduce;
  1195. /*-----------------------------.
  1196. | yyreduce -- Do a reduction. |
  1197. `-----------------------------*/
  1198. yyreduce:
  1199. /* yyn is the number of a rule to reduce with. */
  1200. yylen = yyr2[yyn];
  1201. /* If YYLEN is nonzero, implement the default value of the action:
  1202. `$$ = $1'.
  1203. Otherwise, the following line sets YYVAL to garbage.
  1204. This behavior is undocumented and Bison
  1205. users should not rely upon it. Assigning to YYVAL
  1206. unconditionally makes the parser a bit smaller, and it avoids a
  1207. GCC warning that YYVAL may be used uninitialized. */
  1208. yyval = yyvsp[1-yylen];
  1209. YY_REDUCE_PRINT (yyn);
  1210. switch (yyn)
  1211. {
  1212. case 8:
  1213. /* Line 1464 of yacc.c */
  1214. #line 43 "dce.y"
  1215. {projections(parsestate,(yyvsp[(1) - (1)]));;}
  1216. break;
  1217. case 9:
  1218. /* Line 1464 of yacc.c */
  1219. #line 47 "dce.y"
  1220. {selections(parsestate,(yyvsp[(1) - (1)]));;}
  1221. break;
  1222. case 10:
  1223. /* Line 1464 of yacc.c */
  1224. #line 52 "dce.y"
  1225. {(yyval)=projectionlist(parsestate,(Object)null,(yyvsp[(1) - (1)]));;}
  1226. break;
  1227. case 11:
  1228. /* Line 1464 of yacc.c */
  1229. #line 54 "dce.y"
  1230. {(yyval)=projectionlist(parsestate,(yyvsp[(1) - (3)]),(yyvsp[(3) - (3)]));;}
  1231. break;
  1232. case 12:
  1233. /* Line 1464 of yacc.c */
  1234. #line 59 "dce.y"
  1235. {(yyval)=projection(parsestate,(yyvsp[(1) - (1)]));;}
  1236. break;
  1237. case 13:
  1238. /* Line 1464 of yacc.c */
  1239. #line 61 "dce.y"
  1240. {(yyval)=(yyvsp[(1) - (1)]);;}
  1241. break;
  1242. case 14:
  1243. /* Line 1464 of yacc.c */
  1244. #line 66 "dce.y"
  1245. {(yyval)=function(parsestate,(yyvsp[(1) - (3)]),null);;}
  1246. break;
  1247. case 15:
  1248. /* Line 1464 of yacc.c */
  1249. #line 68 "dce.y"
  1250. {(yyval)=function(parsestate,(yyvsp[(1) - (4)]),(yyvsp[(3) - (4)]));;}
  1251. break;
  1252. case 16:
  1253. /* Line 1464 of yacc.c */
  1254. #line 73 "dce.y"
  1255. {(yyval)=segmentlist(parsestate,null,(yyvsp[(1) - (1)]));;}
  1256. break;
  1257. case 17:
  1258. /* Line 1464 of yacc.c */
  1259. #line 75 "dce.y"
  1260. {(yyval)=segmentlist(parsestate,(yyvsp[(1) - (3)]),(yyvsp[(3) - (3)]));;}
  1261. break;
  1262. case 18:
  1263. /* Line 1464 of yacc.c */
  1264. #line 80 "dce.y"
  1265. {(yyval)=segment(parsestate,(yyvsp[(1) - (1)]),null);;}
  1266. break;
  1267. case 19:
  1268. /* Line 1464 of yacc.c */
  1269. #line 82 "dce.y"
  1270. {(yyval)=segment(parsestate,(yyvsp[(1) - (2)]),(yyvsp[(2) - (2)]));;}
  1271. break;
  1272. case 20:
  1273. /* Line 1464 of yacc.c */
  1274. #line 87 "dce.y"
  1275. {(yyval)=rangelist(parsestate,null,(yyvsp[(1) - (1)]));;}
  1276. break;
  1277. case 21:
  1278. /* Line 1464 of yacc.c */
  1279. #line 89 "dce.y"
  1280. {(yyval)=rangelist(parsestate,(yyvsp[(1) - (2)]),(yyvsp[(2) - (2)]));;}
  1281. break;
  1282. case 22:
  1283. /* Line 1464 of yacc.c */
  1284. #line 94 "dce.y"
  1285. {(yyval)=range(parsestate,(yyvsp[(2) - (3)]),null,null);;}
  1286. break;
  1287. case 23:
  1288. /* Line 1464 of yacc.c */
  1289. #line 96 "dce.y"
  1290. {(yyval)=range(parsestate,(yyvsp[(2) - (5)]),null,(yyvsp[(4) - (5)]));;}
  1291. break;
  1292. case 24:
  1293. /* Line 1464 of yacc.c */
  1294. #line 98 "dce.y"
  1295. {(yyval)=range(parsestate,(yyvsp[(2) - (7)]),(yyvsp[(4) - (7)]),(yyvsp[(6) - (7)]));;}
  1296. break;
  1297. case 25:
  1298. /* Line 1464 of yacc.c */
  1299. #line 102 "dce.y"
  1300. {(yyval) = range1(parsestate,(yyvsp[(2) - (3)]));;}
  1301. break;
  1302. case 26:
  1303. /* Line 1464 of yacc.c */
  1304. #line 108 "dce.y"
  1305. {(yyval)=clauselist(parsestate,null,(yyvsp[(1) - (1)]));;}
  1306. break;
  1307. case 27:
  1308. /* Line 1464 of yacc.c */
  1309. #line 110 "dce.y"
  1310. {(yyval)=clauselist(parsestate,(yyvsp[(1) - (2)]),(yyvsp[(2) - (2)]));;}
  1311. break;
  1312. case 28:
  1313. /* Line 1464 of yacc.c */
  1314. #line 115 "dce.y"
  1315. {(yyval)=sel_clause(parsestate,1,(yyvsp[(2) - (6)]),(yyvsp[(3) - (6)]),(yyvsp[(5) - (6)]));;}
  1316. break;
  1317. case 29:
  1318. /* Line 1464 of yacc.c */
  1319. #line 117 "dce.y"
  1320. {(yyval)=sel_clause(parsestate,2,(yyvsp[(2) - (4)]),(yyvsp[(3) - (4)]),(yyvsp[(4) - (4)]));;}
  1321. break;
  1322. case 30:
  1323. /* Line 1464 of yacc.c */
  1324. #line 119 "dce.y"
  1325. {(yyval)=(yyvsp[(1) - (2)]);;}
  1326. break;
  1327. case 31:
  1328. /* Line 1464 of yacc.c */
  1329. #line 124 "dce.y"
  1330. {(yyval)=value_list(parsestate,null,(yyvsp[(1) - (1)]));;}
  1331. break;
  1332. case 32:
  1333. /* Line 1464 of yacc.c */
  1334. #line 126 "dce.y"
  1335. {(yyval)=value_list(parsestate,(yyvsp[(1) - (3)]),(yyvsp[(3) - (3)]));;}
  1336. break;
  1337. case 33:
  1338. /* Line 1464 of yacc.c */
  1339. #line 131 "dce.y"
  1340. {(yyval)=value(parsestate,(yyvsp[(1) - (1)]));;}
  1341. break;
  1342. case 34:
  1343. /* Line 1464 of yacc.c */
  1344. #line 133 "dce.y"
  1345. {(yyval)=value(parsestate,(yyvsp[(1) - (1)]));;}
  1346. break;
  1347. case 35:
  1348. /* Line 1464 of yacc.c */
  1349. #line 135 "dce.y"
  1350. {(yyval)=value(parsestate,(yyvsp[(1) - (1)]));;}
  1351. break;
  1352. case 36:
  1353. /* Line 1464 of yacc.c */
  1354. #line 140 "dce.y"
  1355. {(yyval)=constant(parsestate,(yyvsp[(1) - (1)]),SCAN_NUMBERCONST);;}
  1356. break;
  1357. case 37:
  1358. /* Line 1464 of yacc.c */
  1359. #line 142 "dce.y"
  1360. {(yyval)=constant(parsestate,(yyvsp[(1) - (1)]),SCAN_STRINGCONST);;}
  1361. break;
  1362. case 38:
  1363. /* Line 1464 of yacc.c */
  1364. #line 147 "dce.y"
  1365. {(yyval)=var(parsestate,(yyvsp[(1) - (1)]));;}
  1366. break;
  1367. case 39:
  1368. /* Line 1464 of yacc.c */
  1369. #line 152 "dce.y"
  1370. {(yyval)=indexpath(parsestate,null,(yyvsp[(1) - (1)]));;}
  1371. break;
  1372. case 40:
  1373. /* Line 1464 of yacc.c */
  1374. #line 154 "dce.y"
  1375. {(yyval)=indexpath(parsestate,(yyvsp[(1) - (3)]),(yyvsp[(3) - (3)]));;}
  1376. break;
  1377. case 41:
  1378. /* Line 1464 of yacc.c */
  1379. #line 159 "dce.y"
  1380. {(yyval)=indexer(parsestate,(yyvsp[(1) - (1)]),null);;}
  1381. break;
  1382. case 42:
  1383. /* Line 1464 of yacc.c */
  1384. #line 161 "dce.y"
  1385. {(yyval)=indexer(parsestate,(yyvsp[(1) - (2)]),(yyvsp[(2) - (2)]));;}
  1386. break;
  1387. case 43:
  1388. /* Line 1464 of yacc.c */
  1389. #line 166 "dce.y"
  1390. {(yyval)=array_indices(parsestate,null,(yyvsp[(1) - (1)]));;}
  1391. break;
  1392. case 44:
  1393. /* Line 1464 of yacc.c */
  1394. #line 168 "dce.y"
  1395. {(yyval)=array_indices(parsestate,(yyvsp[(1) - (2)]),(yyvsp[(2) - (2)]));;}
  1396. break;
  1397. case 45:
  1398. /* Line 1464 of yacc.c */
  1399. #line 173 "dce.y"
  1400. {(yyval)=function(parsestate,(yyvsp[(1) - (3)]),null);;}
  1401. break;
  1402. case 46:
  1403. /* Line 1464 of yacc.c */
  1404. #line 175 "dce.y"
  1405. {(yyval)=function(parsestate,(yyvsp[(1) - (4)]),(yyvsp[(3) - (4)]));;}
  1406. break;
  1407. case 47:
  1408. /* Line 1464 of yacc.c */
  1409. #line 180 "dce.y"
  1410. {(yyval)=arg_list(parsestate,null,(yyvsp[(1) - (1)]));;}
  1411. break;
  1412. case 48:
  1413. /* Line 1464 of yacc.c */
  1414. #line 182 "dce.y"
  1415. {(yyval)=arg_list(parsestate,(yyvsp[(1) - (3)]),(yyvsp[(3) - (3)]));;}
  1416. break;
  1417. case 49:
  1418. /* Line 1464 of yacc.c */
  1419. #line 186 "dce.y"
  1420. {(yyval)=makeselectiontag(CEO_EQ);;}
  1421. break;
  1422. case 50:
  1423. /* Line 1464 of yacc.c */
  1424. #line 187 "dce.y"
  1425. {(yyval)=makeselectiontag(CEO_GT);;}
  1426. break;
  1427. case 51:
  1428. /* Line 1464 of yacc.c */
  1429. #line 188 "dce.y"
  1430. {(yyval)=makeselectiontag(CEO_LT);;}
  1431. break;
  1432. case 52:
  1433. /* Line 1464 of yacc.c */
  1434. #line 189 "dce.y"
  1435. {(yyval)=makeselectiontag(CEO_NEQ);;}
  1436. break;
  1437. case 53:
  1438. /* Line 1464 of yacc.c */
  1439. #line 190 "dce.y"
  1440. {(yyval)=makeselectiontag(CEO_GE);;}
  1441. break;
  1442. case 54:
  1443. /* Line 1464 of yacc.c */
  1444. #line 191 "dce.y"
  1445. {(yyval)=makeselectiontag(CEO_LE);;}
  1446. break;
  1447. case 55:
  1448. /* Line 1464 of yacc.c */
  1449. #line 192 "dce.y"
  1450. {(yyval)=makeselectiontag(CEO_RE);;}
  1451. break;
  1452. case 56:
  1453. /* Line 1464 of yacc.c */
  1454. #line 196 "dce.y"
  1455. {(yyval) = (yyvsp[(1) - (1)]);;}
  1456. break;
  1457. case 57:
  1458. /* Line 1464 of yacc.c */
  1459. #line 200 "dce.y"
  1460. {(yyval) = checkobject((yyvsp[(1) - (1)]));;}
  1461. break;
  1462. case 58:
  1463. /* Line 1464 of yacc.c */
  1464. #line 204 "dce.y"
  1465. {(yyval) = checkobject((yyvsp[(1) - (1)]));;}
  1466. break;
  1467. case 59:
  1468. /* Line 1464 of yacc.c */
  1469. #line 208 "dce.y"
  1470. {(yyval) = checkobject((yyvsp[(1) - (1)]));;}
  1471. break;
  1472. /* Line 1464 of yacc.c */
  1473. #line 1786 "dce.tab.c"
  1474. default: break;
  1475. }
  1476. YY_SYMBOL_PRINT ("-> $$ =", yyr1[yyn], &yyval, &yyloc);
  1477. YYPOPSTACK (yylen);
  1478. yylen = 0;
  1479. YY_STACK_PRINT (yyss, yyssp);
  1480. *++yyvsp = yyval;
  1481. /* Now `shift' the result of the reduction. Determine what state
  1482. that goes to, based on the state we popped back to and the rule
  1483. number reduced by. */
  1484. yyn = yyr1[yyn];
  1485. yystate = yypgoto[yyn - YYNTOKENS] + *yyssp;
  1486. if (0 <= yystate && yystate <= YYLAST && yycheck[yystate] == *yyssp)
  1487. yystate = yytable[yystate];
  1488. else
  1489. yystate = yydefgoto[yyn - YYNTOKENS];
  1490. goto yynewstate;
  1491. /*------------------------------------.
  1492. | yyerrlab -- here on detecting error |
  1493. `------------------------------------*/
  1494. yyerrlab:
  1495. /* If not already recovering from an error, report this error. */
  1496. if (!yyerrstatus)
  1497. {
  1498. ++yynerrs;
  1499. #if ! YYERROR_VERBOSE
  1500. yyerror (parsestate, YY_("syntax error"));
  1501. #else
  1502. {
  1503. YYSIZE_T yysize = yysyntax_error (0, yystate, yychar);
  1504. if (yymsg_alloc < yysize && yymsg_alloc < YYSTACK_ALLOC_MAXIMUM)
  1505. {
  1506. YYSIZE_T yyalloc = 2 * yysize;
  1507. if (! (yysize <= yyalloc && yyalloc <= YYSTACK_ALLOC_MAXIMUM))
  1508. yyalloc = YYSTACK_ALLOC_MAXIMUM;
  1509. if (yymsg != yymsgbuf)
  1510. YYSTACK_FREE (yymsg);
  1511. yymsg = (char *) YYSTACK_ALLOC (yyalloc);
  1512. if (yymsg)
  1513. yymsg_alloc = yyalloc;
  1514. else
  1515. {
  1516. yymsg = yymsgbuf;
  1517. yymsg_alloc = sizeof yymsgbuf;
  1518. }
  1519. }
  1520. if (0 < yysize && yysize <= yymsg_alloc)
  1521. {
  1522. (void) yysyntax_error (yymsg, yystate, yychar);
  1523. yyerror (parsestate, yymsg);
  1524. }
  1525. else
  1526. {
  1527. yyerror (parsestate, YY_("syntax error"));
  1528. if (yysize != 0)
  1529. goto yyexhaustedlab;
  1530. }
  1531. }
  1532. #endif
  1533. }
  1534. if (yyerrstatus == 3)
  1535. {
  1536. /* If just tried and failed to reuse lookahead token after an
  1537. error, discard it. */
  1538. if (yychar <= YYEOF)
  1539. {
  1540. /* Return failure if at end of input. */
  1541. if (yychar == YYEOF)
  1542. YYABORT;
  1543. }
  1544. else
  1545. {
  1546. yydestruct ("Error: discarding",
  1547. yytoken, &yylval, parsestate);
  1548. yychar = YYEMPTY;
  1549. }
  1550. }
  1551. /* Else will try to reuse lookahead token after shifting the error
  1552. token. */
  1553. goto yyerrlab1;
  1554. /*---------------------------------------------------.
  1555. | yyerrorlab -- error raised explicitly by YYERROR. |
  1556. `---------------------------------------------------*/
  1557. yyerrorlab:
  1558. /* Pacify compilers like GCC when the user code never invokes
  1559. YYERROR and the label yyerrorlab therefore never appears in user
  1560. code. */
  1561. if (/*CONSTCOND*/ 0)
  1562. goto yyerrorlab;
  1563. /* Do not reclaim the symbols of the rule which action triggered
  1564. this YYERROR. */
  1565. YYPOPSTACK (yylen);
  1566. yylen = 0;
  1567. YY_STACK_PRINT (yyss, yyssp);
  1568. yystate = *yyssp;
  1569. goto yyerrlab1;
  1570. /*-------------------------------------------------------------.
  1571. | yyerrlab1 -- common code for both syntax error and YYERROR. |
  1572. `-------------------------------------------------------------*/
  1573. yyerrlab1:
  1574. yyerrstatus = 3; /* Each real token shifted decrements this. */
  1575. for (;;)
  1576. {
  1577. yyn = yypact[yystate];
  1578. if (yyn != YYPACT_NINF)
  1579. {
  1580. yyn += YYTERROR;
  1581. if (0 <= yyn && yyn <= YYLAST && yycheck[yyn] == YYTERROR)
  1582. {
  1583. yyn = yytable[yyn];
  1584. if (0 < yyn)
  1585. break;
  1586. }
  1587. }
  1588. /* Pop the current state because it cannot handle the error token. */
  1589. if (yyssp == yyss)
  1590. YYABORT;
  1591. yydestruct ("Error: popping",
  1592. yystos[yystate], yyvsp, parsestate);
  1593. YYPOPSTACK (1);
  1594. yystate = *yyssp;
  1595. YY_STACK_PRINT (yyss, yyssp);
  1596. }
  1597. *++yyvsp = yylval;
  1598. /* Shift the error token. */
  1599. YY_SYMBOL_PRINT ("Shifting", yystos[yyn], yyvsp, yylsp);
  1600. yystate = yyn;
  1601. goto yynewstate;
  1602. /*-------------------------------------.
  1603. | yyacceptlab -- YYACCEPT comes here. |
  1604. `-------------------------------------*/
  1605. yyacceptlab:
  1606. yyresult = 0;
  1607. goto yyreturn;
  1608. /*-----------------------------------.
  1609. | yyabortlab -- YYABORT comes here. |
  1610. `-----------------------------------*/
  1611. yyabortlab:
  1612. yyresult = 1;
  1613. goto yyreturn;
  1614. #if !defined(yyoverflow) || YYERROR_VERBOSE
  1615. /*-------------------------------------------------.
  1616. | yyexhaustedlab -- memory exhaustion comes here. |
  1617. `-------------------------------------------------*/
  1618. yyexhaustedlab:
  1619. yyerror (parsestate, YY_("memory exhausted"));
  1620. yyresult = 2;
  1621. /* Fall through. */
  1622. #endif
  1623. yyreturn:
  1624. if (yychar != YYEMPTY)
  1625. yydestruct ("Cleanup: discarding lookahead",
  1626. yytoken, &yylval, parsestate);
  1627. /* Do not reclaim the symbols of the rule which action triggered
  1628. this YYABORT or YYACCEPT. */
  1629. YYPOPSTACK (yylen);
  1630. YY_STACK_PRINT (yyss, yyssp);
  1631. while (yyssp != yyss)
  1632. {
  1633. yydestruct ("Cleanup: popping",
  1634. yystos[*yyssp], yyvsp, parsestate);
  1635. YYPOPSTACK (1);
  1636. }
  1637. #ifndef yyoverflow
  1638. if (yyss != yyssa)
  1639. YYSTACK_FREE (yyss);
  1640. #endif
  1641. #if YYERROR_VERBOSE
  1642. if (yymsg != yymsgbuf)
  1643. YYSTACK_FREE (yymsg);
  1644. #endif
  1645. /* Make sure YYID is used. */
  1646. return YYID (yyresult);
  1647. }
  1648. /* Line 1684 of yacc.c */
  1649. #line 211 "dce.y"