initscan.c 66 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294
  1. /* A lexical scanner generated by flex */
  2. /* scanner skeleton version:
  3. * $Id$
  4. */
  5. #define FLEX_SCANNER
  6. #include <stdio.h>
  7. /* cfront 1.2 defines "c_plusplus" instead of "__cplusplus" */
  8. #ifdef c_plusplus
  9. #ifndef __cplusplus
  10. #define __cplusplus
  11. #endif
  12. #endif
  13. #ifdef __cplusplus
  14. #include <stdlib.h>
  15. #include <osfcn.h>
  16. /* use prototypes in function declarations */
  17. #define YY_USE_PROTOS
  18. /* the "const" storage-class-modifier is valid */
  19. #define YY_USE_CONST
  20. #else /* ! __cplusplus */
  21. #ifdef __STDC__
  22. #ifdef __GNUC__
  23. #include <stddef.h>
  24. void *malloc( size_t );
  25. void free( void* );
  26. #else
  27. #include <stdlib.h>
  28. #endif /* __GNUC__ */
  29. #define YY_USE_PROTOS
  30. #define YY_USE_CONST
  31. #endif /* __STDC__ */
  32. #endif /* ! __cplusplus */
  33. #ifdef __TURBOC__
  34. #define YY_USE_CONST
  35. #endif
  36. #ifndef YY_USE_CONST
  37. #define const
  38. #endif
  39. #ifdef YY_USE_PROTOS
  40. #define YY_PROTO(proto) proto
  41. #else
  42. #define YY_PROTO(proto) ()
  43. /* we can't get here if it's an ANSI C compiler, or a C++ compiler,
  44. * so it's got to be a K&R compiler, and therefore there's no standard
  45. * place from which to include these definitions
  46. */
  47. char *malloc();
  48. int free();
  49. int read();
  50. #endif
  51. /* amount of stuff to slurp up with each read */
  52. #ifndef YY_READ_BUF_SIZE
  53. #define YY_READ_BUF_SIZE 8192
  54. #endif
  55. /* returned upon end-of-file */
  56. #define YY_END_TOK 0
  57. /* copy whatever the last rule matched to the standard output */
  58. /* cast to (char *) is because for 8-bit chars, yytext is (unsigned char *) */
  59. /* this used to be an fputs(), but since the string might contain NUL's,
  60. * we now use fwrite()
  61. */
  62. #define ECHO (void) fwrite( (char *) yytext, yyleng, 1, yyout )
  63. /* gets input and stuffs it into "buf". number of characters read, or YY_NULL,
  64. * is returned in "result".
  65. */
  66. #define YY_INPUT(buf,result,max_size) \
  67. if ( (result = read( fileno(yyin), (char *) buf, max_size )) < 0 ) \
  68. YY_FATAL_ERROR( "read() in flex scanner failed" );
  69. #define YY_NULL 0
  70. /* no semi-colon after return; correct usage is to write "yyterminate();" -
  71. * we don't want an extra ';' after the "return" because that will cause
  72. * some compilers to complain about unreachable statements.
  73. */
  74. #define yyterminate() return ( YY_NULL )
  75. /* report a fatal error */
  76. /* The funky do-while is used to turn this macro definition into
  77. * a single C statement (which needs a semi-colon terminator).
  78. * This avoids problems with code like:
  79. *
  80. * if ( something_happens )
  81. * YY_FATAL_ERROR( "oops, the something happened" );
  82. * else
  83. * everything_okay();
  84. *
  85. * Prior to using the do-while the compiler would get upset at the
  86. * "else" because it interpreted the "if" statement as being all
  87. * done when it reached the ';' after the YY_FATAL_ERROR() call.
  88. */
  89. #define YY_FATAL_ERROR(msg) \
  90. do \
  91. { \
  92. (void) fputs( msg, stderr ); \
  93. (void) putc( '\n', stderr ); \
  94. exit( 1 ); \
  95. } \
  96. while ( 0 )
  97. /* default yywrap function - always treat EOF as an EOF */
  98. #define yywrap() 1
  99. /* enter a start condition. This macro really ought to take a parameter,
  100. * but we do it the disgusting crufty way forced on us by the ()-less
  101. * definition of BEGIN
  102. */
  103. #define BEGIN yy_start = 1 + 2 *
  104. /* action number for EOF rule of a given start state */
  105. #define YY_STATE_EOF(state) (YY_END_OF_BUFFER + state + 1)
  106. /* special action meaning "start processing a new file" */
  107. #define YY_NEW_FILE \
  108. do \
  109. { \
  110. yy_init_buffer( yy_current_buffer, yyin ); \
  111. yy_load_buffer_state(); \
  112. } \
  113. while ( 0 )
  114. /* default declaration of generated scanner - a define so the user can
  115. * easily add parameters
  116. */
  117. #define YY_DECL int yylex YY_PROTO(( void ))
  118. /* code executed at the end of each rule */
  119. #define YY_BREAK break;
  120. #define YY_END_OF_BUFFER_CHAR 0
  121. #ifndef YY_BUF_SIZE
  122. #define YY_BUF_SIZE (YY_READ_BUF_SIZE * 2) /* size of default input buffer */
  123. #endif
  124. typedef struct yy_buffer_state *YY_BUFFER_STATE;
  125. #define YY_CHAR unsigned char
  126. # line 1 "scan.l"
  127. #define INITIAL 0
  128. /* scan.l - scanner for flex input */
  129. # line 5 "scan.l"
  130. /*-
  131. * Copyright (c) 1990 The Regents of the University of California.
  132. * All rights reserved.
  133. *
  134. * This code is derived from software contributed to Berkeley by
  135. * Vern Paxson.
  136. *
  137. * The United States Government has rights in this work pursuant
  138. * to contract no. DE-AC03-76SF00098 between the United States
  139. * Department of Energy and the University of California.
  140. *
  141. * Redistribution and use in source and binary forms are permitted provided
  142. * that: (1) source distributions retain this entire copyright notice and
  143. * comment, and (2) distributions including binaries display the following
  144. * acknowledgement: ``This product includes software developed by the
  145. * University of California, Berkeley and its contributors'' in the
  146. * documentation or other materials provided with the distribution and in
  147. * all advertising materials mentioning features or use of this software.
  148. * Neither the name of the University nor the names of its contributors may
  149. * be used to endorse or promote products derived from this software without
  150. * specific prior written permission.
  151. * THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR IMPLIED
  152. * WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF
  153. * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
  154. */
  155. #ifndef lint
  156. static char rcsid[] =
  157. "@(#) $Id$ (LBL)";
  158. #endif
  159. #undef yywrap
  160. #include "flexdef.h"
  161. #include "parse.h"
  162. #define ACTION_ECHO fprintf( temp_action_file, "%s", yytext )
  163. #define MARK_END_OF_PROLOG fprintf( temp_action_file, "%%%% end of prolog\n" );
  164. #undef YY_DECL
  165. #define YY_DECL \
  166. int flexscan()
  167. #define RETURNCHAR \
  168. yylval = yytext[0]; \
  169. return ( CHAR );
  170. #define RETURNNAME \
  171. (void) strcpy( nmstr, (char *) yytext ); \
  172. return ( NAME );
  173. #define PUT_BACK_STRING(str, start) \
  174. for ( i = strlen( (char *) (str) ) - 1; i >= start; --i ) \
  175. unput((str)[i])
  176. #define CHECK_REJECT(str) \
  177. if ( all_upper( str ) ) \
  178. reject = true;
  179. #define CHECK_YYMORE(str) \
  180. if ( all_lower( str ) ) \
  181. yymore_used = true;
  182. #define SECT2 1
  183. #define SECT2PROLOG 2
  184. #define SECT3 3
  185. #define CODEBLOCK 4
  186. #define PICKUPDEF 5
  187. #define SC 6
  188. #define CARETISBOL 7
  189. #define NUM 8
  190. #define QUOTE 9
  191. #define FIRSTCCL 10
  192. #define CCL 11
  193. #define ACTION 12
  194. #define RECOVER 13
  195. #define BRACEERROR 14
  196. #define C_COMMENT 15
  197. #define ACTION_COMMENT 16
  198. #define ACTION_STRING 17
  199. #define PERCENT_BRACE_ACTION 18
  200. #define USED_LIST 19
  201. #define CODEBLOCK_2 20
  202. #define XLATION 21
  203. # line 84 "scan.l"
  204. /* done after the current pattern has been matched and before the
  205. * corresponding action - sets up yytext
  206. */
  207. #define YY_DO_BEFORE_ACTION \
  208. yytext = yy_bp; \
  209. yyleng = yy_cp - yy_bp; \
  210. yy_hold_char = *yy_cp; \
  211. *yy_cp = '\0'; \
  212. yy_c_buf_p = yy_cp;
  213. #define EOB_ACT_CONTINUE_SCAN 0
  214. #define EOB_ACT_END_OF_FILE 1
  215. #define EOB_ACT_LAST_MATCH 2
  216. /* return all but the first 'n' matched characters back to the input stream */
  217. #define yyless(n) \
  218. do \
  219. { \
  220. /* undo effects of setting up yytext */ \
  221. *yy_cp = yy_hold_char; \
  222. yy_c_buf_p = yy_cp = yy_bp + n; \
  223. YY_DO_BEFORE_ACTION; /* set up yytext again */ \
  224. } \
  225. while ( 0 )
  226. #define unput(c) yyunput( c, yytext )
  227. struct yy_buffer_state
  228. {
  229. FILE *yy_input_file;
  230. YY_CHAR *yy_ch_buf; /* input buffer */
  231. YY_CHAR *yy_buf_pos; /* current position in input buffer */
  232. /* size of input buffer in bytes, not including room for EOB characters*/
  233. int yy_buf_size;
  234. /* number of characters read into yy_ch_buf, not including EOB characters */
  235. int yy_n_chars;
  236. int yy_eof_status; /* whether we've seen an EOF on this buffer */
  237. #define EOF_NOT_SEEN 0
  238. /* "pending" happens when the EOF has been seen but there's still
  239. * some text process
  240. */
  241. #define EOF_PENDING 1
  242. #define EOF_DONE 2
  243. };
  244. static YY_BUFFER_STATE yy_current_buffer;
  245. /* we provide macros for accessing buffer states in case in the
  246. * future we want to put the buffer states in a more general
  247. * "scanner state"
  248. */
  249. #define YY_CURRENT_BUFFER yy_current_buffer
  250. /* yy_hold_char holds the character lost when yytext is formed */
  251. static YY_CHAR yy_hold_char;
  252. static int yy_n_chars; /* number of characters read into yy_ch_buf */
  253. #ifndef YY_USER_ACTION
  254. #define YY_USER_ACTION
  255. #endif
  256. #ifndef YY_USER_INIT
  257. #define YY_USER_INIT
  258. #endif
  259. extern YY_CHAR *yytext;
  260. extern int yyleng;
  261. extern FILE *yyin, *yyout;
  262. YY_CHAR *yytext;
  263. int yyleng;
  264. FILE *yyin = (FILE *) 0, *yyout = (FILE *) 0;
  265. #define YY_END_OF_BUFFER 121
  266. typedef int yy_state_type;
  267. static const short int yy_accept[341] =
  268. { 0,
  269. 0, 0, 0, 0, 0, 0, 119, 119, 0, 0,
  270. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  271. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  272. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  273. 0, 0, 0, 0, 121, 19, 7, 18, 19, 16,
  274. 1, 17, 19, 19, 19, 15, 67, 59, 60, 53,
  275. 67, 66, 51, 67, 67, 67, 50, 49, 67, 52,
  276. 120, 47, 119, 119, 28, 29, 28, 28, 28, 28,
  277. 31, 30, 32, 73, 120, 69, 70, 72, 74, 88,
  278. 89, 86, 85, 87, 75, 77, 76, 75, 81, 80,
  279. 81, 81, 83, 83, 83, 84, 99, 104, 103, 105,
  280. 105, 100, 100, 100, 97, 98, 120, 33, 91, 90,
  281. 22, 24, 23, 107, 109, 108, 111, 113, 114, 115,
  282. 95, 95, 96, 95, 95, 95, 95, 38, 35, 34,
  283. 38, 38, 44, 42, 45, 44, 44, 41, 41, 41,
  284. 40, 41, 7, 18, 0, 16, 1, 17, 0, 2,
  285. 14, 8, 0, 12, 4, 0, 0, 5, 0, 3,
  286. 15, 59, 60, 0, 0, 56, 0, 0, 0, 117,
  287. 117, 117, 55, 54, 55, 50, 49, 63, 50, 0,
  288. 47, 46, 119, 119, 28, 28, 28, 28, 28, 31,
  289. 30, 71, 72, 85, 118, 118, 118, 78, 79, 82,
  290. 99, 0, 102, 0, 101, 100, 100, 100, 0, 33,
  291. 22, 20, 107, 106, 111, 112, 95, 95, 95, 92,
  292. 95, 95, 95, 38, 35, 38, 38, 42, 0, 43,
  293. 43, 43, 42, 40, 0, 13, 14, 8, 8, 0,
  294. 12, 4, 0, 0, 0, 5, 0, 6, 57, 0,
  295. 58, 0, 64, 0, 0, 117, 117, 55, 55, 65,
  296. 63, 28, 28, 28, 25, 0, 118, 118, 100, 100,
  297. 0, 21, 92, 92, 95, 95, 38, 38, 0, 39,
  298. 43, 43, 0, 11, 4, 0, 11, 0, 0, 5,
  299. 0, 0, 0, 117, 28, 28, 118, 100, 100, 95,
  300. 95, 38, 38, 43, 0, 9, 0, 0, 0, 28,
  301. 28, 100, 100, 95, 95, 38, 38, 0, 0, 26,
  302. 27, 93, 94, 93, 94, 36, 37, 10, 62, 0
  303. } ;
  304. static const YY_CHAR yy_ec[256] =
  305. { 0,
  306. 1, 1, 1, 1, 1, 1, 1, 1, 2, 3,
  307. 1, 4, 1, 1, 1, 1, 1, 1, 1, 1,
  308. 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
  309. 1, 5, 1, 6, 7, 8, 9, 1, 10, 11,
  310. 11, 12, 11, 13, 14, 11, 15, 16, 16, 16,
  311. 16, 16, 16, 16, 16, 16, 16, 1, 1, 17,
  312. 1, 18, 11, 1, 24, 25, 26, 27, 28, 29,
  313. 23, 23, 23, 30, 31, 23, 32, 33, 34, 31,
  314. 23, 35, 36, 37, 38, 23, 23, 39, 40, 23,
  315. 19, 20, 21, 22, 23, 1, 24, 25, 26, 27,
  316. 28, 29, 23, 23, 23, 30, 31, 23, 32, 33,
  317. 34, 31, 23, 35, 36, 37, 38, 23, 23, 39,
  318. 40, 23, 41, 42, 43, 1, 1, 1, 1, 1,
  319. 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
  320. 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
  321. 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
  322. 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
  323. 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
  324. 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
  325. 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
  326. 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
  327. 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
  328. 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
  329. 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
  330. 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
  331. 1, 1, 1, 1, 1
  332. } ;
  333. static const YY_CHAR yy_meta[44] =
  334. { 0,
  335. 1, 2, 3, 2, 2, 4, 1, 1, 1, 5,
  336. 1, 6, 1, 7, 5, 8, 1, 1, 1, 9,
  337. 10, 1, 11, 12, 12, 12, 12, 12, 12, 11,
  338. 11, 11, 11, 11, 11, 11, 11, 11, 11, 11,
  339. 5, 1, 13
  340. } ;
  341. static const short int yy_base[404] =
  342. { 0,
  343. 0, 43, 85, 126, 1371, 1370, 1369, 1353, 168, 1346,
  344. 104, 108, 211, 0, 1332, 1320, 120, 252, 95, 119,
  345. 137, 144, 100, 141, 295, 0, 1327, 1323, 113, 336,
  346. 254, 255, 257, 258, 253, 268, 379, 0, 338, 421,
  347. 0, 0, 273, 460, 1325, 1442, 281, 1442, 1287, 0,
  348. 287, 1442, 1279, 472, 1257, 0, 1442, 425, 1442, 1442,
  349. 147, 1442, 1239, 1235, 78, 513, 433, 1442, 83, 1442,
  350. 1248, 0, 1247, 1442, 0, 1442, 0, 1218, 1205, 1194,
  351. 0, 342, 1442, 1442, 1442, 1442, 1202, 0, 1442, 1442,
  352. 1442, 1442, 1201, 1442, 1442, 1442, 1442, 79, 1442, 1442,
  353. 103, 1198, 1442, 0, 248, 1442, 0, 1442, 1442, 252,
  354. 1199, 0, 1173, 1158, 1442, 1442, 1185, 1442, 1442, 1442,
  355. 0, 1442, 1170, 0, 1442, 1152, 0, 1442, 1442, 0,
  356. 0, 346, 1442, 1123, 0, 1125, 1105, 0, 352, 1442,
  357. 1116, 1103, 1442, 356, 1442, 1100, 329, 1442, 360, 1093,
  358. 1101, 333, 441, 1442, 445, 0, 449, 1442, 1101, 1442,
  359. 365, 453, 1094, 466, 0, 480, 330, 0, 1095, 1442,
  360. 0, 555, 1442, 1044, 1077, 1442, 1051, 133, 456, 1442,
  361. 1059, 0, 0, 1442, 584, 563, 1442, 0, 1442, 1071,
  362. 0, 1442, 1063, 1442, 0, 0, 1010, 1007, 627, 0,
  363. 484, 1442, 0, 998, 1442, 992, 0, 1442, 1442, 1442,
  364. 0, 421, 1442, 0, 1442, 0, 971, 964, 992, 1442,
  365. 0, 962, 0, 1442, 0, 1442, 0, 488, 921, 670,
  366. 0, 717, 714, 0, 497, 715, 712, 569, 573, 1442,
  367. 727, 0, 577, 726, 581, 1442, 585, 0, 590, 738,
  368. 597, 0, 712, 683, 691, 0, 670, 1442, 1442, 623,
  369. 1442, 591, 1442, 458, 702, 590, 0, 0, 0, 1442,
  370. 0, 576, 569, 0, 1442, 593, 575, 0, 560, 546,
  371. 567, 1442, 0, 0, 541, 529, 534, 527, 730, 1442,
  372. 500, 0, 509, 1442, 0, 734, 1442, 468, 467, 0,
  373. 462, 704, 724, 1442, 461, 438, 1442, 440, 425, 433,
  374. 405, 413, 398, 1442, 404, 1442, 359, 259, 332, 338,
  375. 346, 334, 331, 257, 253, 226, 137, 133, 81, 0,
  376. 0, 0, 0, 0, 0, 0, 0, 1442, 1442, 1442,
  377. 753, 766, 779, 792, 805, 818, 831, 844, 857, 870,
  378. 883, 896, 909, 922, 935, 948, 955, 967, 980, 986,
  379. 998, 1011, 1024, 1037, 1050, 1063, 1070, 1082, 1089, 1101,
  380. 1114, 1127, 1140, 1150, 1157, 1169, 1182, 1195, 1208, 1221,
  381. 1234, 1241, 1253, 1266, 1279, 1282, 1284, 1296, 1309, 1315,
  382. 1327, 1339, 1345, 1357, 1363, 1375, 1382, 1388, 1393, 1405,
  383. 1411, 1423, 1429
  384. } ;
  385. static const short int yy_def[404] =
  386. { 0,
  387. 340, 340, 341, 341, 342, 342, 343, 343, 340, 9,
  388. 344, 344, 340, 13, 345, 345, 346, 346, 347, 347,
  389. 348, 348, 349, 349, 340, 25, 350, 350, 345, 345,
  390. 351, 351, 352, 352, 353, 353, 340, 37, 354, 354,
  391. 37, 37, 355, 356, 340, 340, 340, 340, 340, 357,
  392. 340, 340, 358, 359, 340, 360, 340, 340, 340, 340,
  393. 340, 340, 340, 361, 362, 340, 340, 340, 340, 340,
  394. 363, 364, 365, 340, 366, 340, 367, 367, 367, 366,
  395. 368, 340, 340, 340, 340, 340, 340, 369, 340, 340,
  396. 340, 340, 340, 340, 340, 340, 340, 362, 340, 340,
  397. 370, 371, 340, 372, 362, 340, 373, 340, 340, 374,
  398. 340, 375, 375, 375, 340, 340, 376, 340, 340, 340,
  399. 377, 340, 340, 378, 340, 340, 379, 340, 340, 380,
  400. 381, 381, 340, 381, 382, 382, 382, 383, 340, 340,
  401. 383, 383, 340, 340, 340, 340, 384, 340, 340, 340,
  402. 340, 384, 340, 340, 340, 357, 340, 340, 358, 340,
  403. 340, 385, 340, 340, 386, 340, 340, 387, 388, 340,
  404. 360, 340, 340, 340, 389, 340, 340, 361, 361, 340,
  405. 340, 390, 391, 340, 391, 340, 340, 392, 340, 363,
  406. 364, 340, 365, 340, 366, 367, 367, 367, 340, 368,
  407. 340, 340, 369, 340, 340, 340, 393, 340, 340, 340,
  408. 373, 374, 340, 374, 340, 375, 375, 375, 376, 340,
  409. 377, 394, 378, 340, 379, 340, 381, 381, 381, 340,
  410. 382, 382, 382, 383, 340, 383, 383, 340, 340, 340,
  411. 340, 395, 340, 340, 340, 340, 340, 385, 385, 396,
  412. 340, 397, 396, 340, 340, 398, 388, 340, 340, 389,
  413. 340, 340, 340, 361, 361, 340, 399, 391, 185, 340,
  414. 392, 367, 367, 199, 340, 400, 340, 401, 375, 375,
  415. 394, 340, 230, 402, 382, 382, 383, 383, 340, 340,
  416. 340, 403, 396, 340, 397, 396, 340, 340, 340, 398,
  417. 340, 361, 265, 340, 367, 367, 340, 375, 375, 382,
  418. 382, 383, 383, 340, 340, 340, 340, 361, 361, 367,
  419. 367, 375, 375, 382, 382, 383, 383, 340, 340, 367,
  420. 367, 375, 375, 382, 382, 383, 383, 340, 340, 0,
  421. 340, 340, 340, 340, 340, 340, 340, 340, 340, 340,
  422. 340, 340, 340, 340, 340, 340, 340, 340, 340, 340,
  423. 340, 340, 340, 340, 340, 340, 340, 340, 340, 340,
  424. 340, 340, 340, 340, 340, 340, 340, 340, 340, 340,
  425. 340, 340, 340, 340, 340, 340, 340, 340, 340, 340,
  426. 340, 340, 340, 340, 340, 340, 340, 340, 340, 340,
  427. 340, 340, 340
  428. } ;
  429. static const short int yy_nxt[1486] =
  430. { 0,
  431. 46, 47, 48, 47, 47, 46, 46, 46, 49, 46,
  432. 46, 46, 46, 46, 46, 46, 46, 46, 46, 46,
  433. 46, 46, 50, 50, 50, 50, 50, 50, 50, 50,
  434. 50, 50, 50, 50, 50, 50, 50, 50, 50, 50,
  435. 46, 46, 46, 46, 51, 52, 51, 51, 46, 53,
  436. 46, 54, 46, 46, 46, 46, 46, 55, 46, 46,
  437. 46, 46, 46, 46, 46, 56, 56, 56, 56, 56,
  438. 56, 56, 56, 56, 56, 56, 56, 56, 56, 56,
  439. 56, 56, 56, 46, 46, 46, 58, 59, 58, 58,
  440. 60, 188, 61, 181, 181, 62, 62, 96, 339, 62,
  441. 97, 63, 85, 64, 65, 82, 83, 82, 82, 82,
  442. 83, 82, 82, 104, 98, 119, 182, 182, 206, 105,
  443. 106, 96, 91, 189, 97, 66, 62, 67, 68, 67,
  444. 67, 60, 92, 61, 69, 93, 62, 62, 98, 85,
  445. 62, 207, 63, 85, 64, 65, 85, 70, 176, 176,
  446. 100, 176, 179, 263, 104, 120, 101, 100, 102, 338,
  447. 105, 106, 94, 101, 337, 102, 66, 62, 75, 75,
  448. 76, 75, 75, 75, 75, 75, 75, 75, 75, 75,
  449. 75, 75, 75, 75, 75, 75, 75, 75, 75, 75,
  450. 77, 77, 77, 77, 77, 77, 77, 77, 77, 77,
  451. 77, 77, 78, 77, 77, 77, 77, 79, 75, 75,
  452. 75, 84, 84, 85, 84, 84, 84, 84, 84, 84,
  453. 84, 84, 84, 86, 84, 84, 84, 84, 87, 84,
  454. 84, 84, 84, 88, 88, 88, 88, 88, 88, 88,
  455. 88, 88, 88, 88, 88, 88, 88, 88, 88, 88,
  456. 88, 84, 84, 84, 91, 128, 122, 122, 129, 125,
  457. 125, 213, 336, 181, 92, 123, 123, 93, 126, 126,
  458. 128, 214, 130, 129, 144, 145, 144, 144, 179, 263,
  459. 335, 146, 153, 154, 153, 153, 182, 130, 157, 158,
  460. 157, 157, 147, 334, 94, 107, 107, 108, 107, 107,
  461. 109, 107, 107, 107, 110, 107, 107, 107, 107, 111,
  462. 107, 107, 107, 107, 107, 107, 107, 112, 112, 112,
  463. 112, 112, 112, 112, 112, 112, 112, 112, 112, 113,
  464. 112, 112, 112, 112, 114, 115, 107, 116, 119, 139,
  465. 140, 139, 139, 201, 241, 201, 201, 228, 241, 228,
  466. 228, 179, 263, 235, 229, 235, 235, 238, 333, 238,
  467. 238, 243, 254, 243, 243, 255, 247, 242, 247, 247,
  468. 332, 242, 141, 331, 330, 244, 329, 142, 120, 131,
  469. 132, 133, 132, 132, 131, 131, 131, 134, 131, 131,
  470. 131, 131, 131, 131, 131, 131, 131, 131, 131, 131,
  471. 131, 135, 135, 135, 135, 135, 135, 135, 135, 135,
  472. 135, 135, 135, 136, 135, 135, 135, 135, 137, 131,
  473. 131, 131, 139, 140, 139, 139, 172, 173, 172, 172,
  474. 213, 328, 327, 174, 186, 187, 186, 186, 326, 325,
  475. 214, 174, 153, 154, 153, 153, 245, 246, 245, 245,
  476. 157, 158, 157, 157, 249, 141, 249, 249, 324, 323,
  477. 142, 149, 145, 149, 149, 322, 175, 251, 150, 251,
  478. 251, 264, 321, 302, 175, 151, 178, 179, 263, 152,
  479. 162, 245, 246, 245, 253, 201, 320, 201, 201, 228,
  480. 317, 228, 228, 316, 265, 163, 229, 164, 235, 163,
  481. 235, 235, 163, 315, 163, 163, 164, 165, 166, 167,
  482. 168, 294, 169, 183, 183, 240, 183, 183, 183, 183,
  483. 183, 183, 183, 183, 183, 183, 183, 183, 184, 183,
  484. 183, 183, 183, 183, 183, 185, 185, 185, 185, 185,
  485. 185, 185, 185, 185, 185, 185, 185, 185, 185, 185,
  486. 185, 185, 185, 183, 183, 183, 172, 173, 172, 172,
  487. 313, 312, 311, 174, 186, 187, 186, 186, 310, 282,
  488. 238, 174, 238, 238, 289, 290, 289, 289, 243, 309,
  489. 243, 243, 245, 246, 245, 245, 247, 308, 247, 247,
  490. 205, 249, 244, 249, 249, 275, 175, 269, 251, 269,
  491. 251, 251, 306, 305, 175, 180, 269, 269, 269, 269,
  492. 269, 269, 269, 269, 269, 269, 269, 269, 269, 269,
  493. 269, 269, 269, 269, 301, 261, 270, 274, 274, 275,
  494. 274, 274, 274, 274, 274, 274, 274, 274, 274, 274,
  495. 274, 274, 274, 274, 274, 274, 274, 274, 274, 276,
  496. 276, 276, 276, 276, 276, 276, 276, 276, 276, 276,
  497. 276, 276, 276, 276, 276, 276, 276, 274, 274, 274,
  498. 283, 283, 258, 283, 283, 283, 283, 283, 283, 283,
  499. 283, 283, 283, 283, 283, 283, 283, 283, 283, 283,
  500. 283, 283, 284, 284, 284, 284, 284, 284, 284, 284,
  501. 284, 284, 284, 284, 284, 284, 284, 284, 284, 284,
  502. 283, 283, 283, 296, 297, 296, 296, 303, 299, 318,
  503. 298, 179, 263, 179, 263, 303, 303, 303, 303, 303,
  504. 303, 289, 290, 289, 289, 296, 297, 296, 296, 319,
  505. 294, 244, 291, 288, 287, 286, 285, 319, 319, 319,
  506. 319, 319, 319, 57, 57, 57, 57, 57, 57, 57,
  507. 57, 57, 57, 57, 57, 57, 71, 71, 71, 71,
  508. 71, 71, 71, 71, 71, 71, 71, 71, 71, 73,
  509. 73, 73, 73, 73, 73, 73, 73, 73, 73, 73,
  510. 73, 73, 81, 81, 81, 81, 81, 81, 81, 81,
  511. 81, 81, 81, 81, 81, 85, 85, 85, 85, 85,
  512. 85, 85, 85, 85, 85, 85, 85, 85, 90, 90,
  513. 90, 90, 90, 90, 90, 90, 90, 90, 90, 90,
  514. 90, 95, 95, 95, 95, 95, 95, 95, 95, 95,
  515. 95, 95, 95, 95, 99, 99, 99, 99, 99, 99,
  516. 99, 99, 99, 99, 99, 99, 99, 103, 103, 103,
  517. 103, 103, 103, 103, 103, 103, 103, 103, 103, 103,
  518. 117, 117, 117, 117, 117, 117, 117, 117, 117, 117,
  519. 117, 117, 117, 121, 121, 121, 121, 121, 121, 121,
  520. 121, 121, 121, 121, 121, 121, 124, 124, 124, 124,
  521. 124, 124, 124, 124, 124, 124, 124, 124, 124, 127,
  522. 127, 127, 127, 127, 127, 127, 127, 127, 127, 127,
  523. 127, 127, 138, 138, 138, 138, 138, 138, 138, 138,
  524. 138, 138, 138, 138, 138, 143, 143, 143, 143, 143,
  525. 143, 143, 143, 143, 143, 143, 143, 143, 148, 148,
  526. 148, 148, 148, 148, 148, 148, 148, 148, 148, 148,
  527. 148, 156, 156, 230, 282, 156, 156, 159, 159, 159,
  528. 159, 159, 159, 159, 159, 159, 159, 159, 159, 159,
  529. 161, 161, 161, 161, 161, 161, 161, 161, 161, 161,
  530. 161, 161, 171, 171, 220, 280, 171, 171, 178, 178,
  531. 279, 178, 178, 178, 178, 178, 178, 277, 178, 178,
  532. 178, 180, 180, 204, 180, 180, 180, 180, 180, 180,
  533. 180, 180, 180, 180, 190, 190, 190, 190, 190, 190,
  534. 190, 190, 190, 190, 190, 190, 190, 192, 273, 272,
  535. 192, 192, 192, 192, 192, 192, 192, 192, 192, 192,
  536. 193, 193, 193, 193, 193, 193, 193, 193, 193, 193,
  537. 193, 193, 193, 195, 195, 194, 195, 195, 195, 195,
  538. 195, 195, 195, 191, 266, 195, 196, 196, 262, 261,
  539. 196, 196, 200, 200, 259, 200, 200, 200, 200, 200,
  540. 200, 200, 200, 200, 200, 203, 203, 258, 250, 203,
  541. 203, 205, 205, 160, 205, 205, 205, 205, 205, 205,
  542. 205, 205, 205, 205, 208, 208, 244, 208, 208, 208,
  543. 208, 208, 208, 208, 208, 208, 208, 210, 210, 239,
  544. 210, 210, 210, 210, 210, 210, 239, 210, 210, 210,
  545. 211, 211, 237, 236, 233, 211, 211, 211, 211, 211,
  546. 212, 212, 232, 212, 212, 212, 212, 212, 212, 212,
  547. 212, 212, 212, 216, 216, 230, 224, 216, 216, 219,
  548. 219, 219, 219, 219, 219, 219, 219, 219, 219, 219,
  549. 219, 219, 221, 221, 222, 221, 221, 220, 221, 221,
  550. 221, 221, 221, 221, 221, 223, 223, 218, 223, 223,
  551. 217, 223, 223, 223, 223, 223, 223, 223, 225, 225,
  552. 215, 209, 225, 225, 225, 225, 204, 225, 225, 225,
  553. 225, 226, 226, 202, 226, 226, 226, 226, 226, 226,
  554. 226, 226, 226, 226, 227, 227, 199, 227, 227, 227,
  555. 227, 227, 227, 227, 198, 197, 227, 231, 231, 194,
  556. 191, 231, 231, 234, 179, 177, 234, 234, 234, 234,
  557. 234, 234, 234, 234, 234, 234, 240, 240, 170, 240,
  558. 240, 240, 240, 240, 240, 240, 240, 240, 240, 248,
  559. 248, 160, 248, 248, 248, 248, 248, 248, 248, 248,
  560. 248, 248, 252, 252, 256, 256, 257, 257, 257, 257,
  561. 257, 257, 257, 257, 257, 257, 257, 257, 257, 260,
  562. 260, 260, 260, 260, 260, 260, 260, 260, 260, 260,
  563. 260, 260, 267, 155, 340, 118, 267, 268, 268, 118,
  564. 268, 268, 268, 268, 268, 268, 268, 268, 268, 271,
  565. 271, 89, 271, 271, 271, 271, 271, 271, 271, 271,
  566. 271, 271, 278, 89, 80, 74, 278, 281, 281, 281,
  567. 281, 281, 281, 281, 281, 281, 281, 281, 281, 281,
  568. 292, 74, 72, 72, 292, 293, 293, 293, 293, 293,
  569. 293, 293, 293, 293, 293, 293, 293, 293, 295, 295,
  570. 340, 340, 295, 295, 300, 300, 340, 340, 300, 300,
  571. 304, 340, 340, 340, 304, 276, 276, 276, 276, 276,
  572. 276, 276, 276, 276, 276, 276, 276, 276, 307, 340,
  573. 340, 340, 307, 284, 284, 340, 284, 284, 284, 284,
  574. 284, 284, 284, 284, 284, 284, 314, 340, 340, 340,
  575. 314, 45, 340, 340, 340, 340, 340, 340, 340, 340,
  576. 340, 340, 340, 340, 340, 340, 340, 340, 340, 340,
  577. 340, 340, 340, 340, 340, 340, 340, 340, 340, 340,
  578. 340, 340, 340, 340, 340, 340, 340, 340, 340, 340,
  579. 340, 340, 340, 340, 340
  580. } ;
  581. static const short int yy_chk[1486] =
  582. { 0,
  583. 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
  584. 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
  585. 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
  586. 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
  587. 1, 1, 1, 2, 2, 2, 2, 2, 2, 2,
  588. 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
  589. 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
  590. 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
  591. 2, 2, 2, 2, 2, 2, 3, 3, 3, 3,
  592. 3, 69, 3, 65, 98, 3, 3, 19, 329, 3,
  593. 19, 3, 23, 3, 3, 11, 11, 11, 11, 12,
  594. 12, 12, 12, 23, 19, 29, 65, 98, 101, 23,
  595. 23, 20, 17, 69, 20, 3, 3, 4, 4, 4,
  596. 4, 4, 17, 4, 4, 17, 4, 4, 20, 21,
  597. 4, 101, 4, 24, 4, 4, 22, 4, 61, 61,
  598. 21, 61, 178, 178, 24, 29, 21, 22, 21, 328,
  599. 24, 24, 17, 22, 327, 22, 4, 4, 9, 9,
  600. 9, 9, 9, 9, 9, 9, 9, 9, 9, 9,
  601. 9, 9, 9, 9, 9, 9, 9, 9, 9, 9,
  602. 9, 9, 9, 9, 9, 9, 9, 9, 9, 9,
  603. 9, 9, 9, 9, 9, 9, 9, 9, 9, 9,
  604. 9, 13, 13, 13, 13, 13, 13, 13, 13, 13,
  605. 13, 13, 13, 13, 13, 13, 13, 13, 13, 13,
  606. 13, 13, 13, 13, 13, 13, 13, 13, 13, 13,
  607. 13, 13, 13, 13, 13, 13, 13, 13, 13, 13,
  608. 13, 13, 13, 13, 18, 35, 31, 32, 35, 33,
  609. 34, 110, 326, 105, 18, 31, 32, 18, 33, 34,
  610. 36, 110, 35, 36, 43, 43, 43, 43, 318, 318,
  611. 325, 43, 47, 47, 47, 47, 105, 36, 51, 51,
  612. 51, 51, 43, 324, 18, 25, 25, 25, 25, 25,
  613. 25, 25, 25, 25, 25, 25, 25, 25, 25, 25,
  614. 25, 25, 25, 25, 25, 25, 25, 25, 25, 25,
  615. 25, 25, 25, 25, 25, 25, 25, 25, 25, 25,
  616. 25, 25, 25, 25, 25, 25, 25, 25, 30, 39,
  617. 39, 39, 39, 82, 147, 82, 82, 132, 152, 132,
  618. 132, 319, 319, 139, 132, 139, 139, 144, 323, 144,
  619. 144, 149, 167, 149, 149, 167, 161, 147, 161, 161,
  620. 322, 152, 39, 321, 320, 149, 317, 39, 30, 37,
  621. 37, 37, 37, 37, 37, 37, 37, 37, 37, 37,
  622. 37, 37, 37, 37, 37, 37, 37, 37, 37, 37,
  623. 37, 37, 37, 37, 37, 37, 37, 37, 37, 37,
  624. 37, 37, 37, 37, 37, 37, 37, 37, 37, 37,
  625. 37, 37, 40, 40, 40, 40, 58, 58, 58, 58,
  626. 212, 315, 313, 58, 67, 67, 67, 67, 312, 311,
  627. 212, 67, 153, 153, 153, 153, 155, 155, 155, 155,
  628. 157, 157, 157, 157, 162, 40, 162, 162, 310, 309,
  629. 40, 44, 44, 44, 44, 308, 58, 164, 44, 164,
  630. 164, 179, 306, 264, 67, 44, 179, 264, 264, 44,
  631. 54, 166, 166, 166, 166, 201, 305, 201, 201, 228,
  632. 301, 228, 228, 299, 179, 54, 228, 54, 235, 54,
  633. 235, 235, 54, 298, 54, 54, 54, 54, 54, 54,
  634. 54, 293, 54, 66, 66, 291, 66, 66, 66, 66,
  635. 66, 66, 66, 66, 66, 66, 66, 66, 66, 66,
  636. 66, 66, 66, 66, 66, 66, 66, 66, 66, 66,
  637. 66, 66, 66, 66, 66, 66, 66, 66, 66, 66,
  638. 66, 66, 66, 66, 66, 66, 172, 172, 172, 172,
  639. 288, 287, 286, 172, 186, 186, 186, 186, 285, 281,
  640. 238, 186, 238, 238, 239, 239, 239, 239, 243, 280,
  641. 243, 243, 245, 245, 245, 245, 247, 279, 247, 247,
  642. 277, 249, 243, 249, 249, 276, 172, 185, 251, 185,
  643. 251, 251, 273, 272, 186, 266, 185, 185, 185, 185,
  644. 185, 185, 185, 185, 185, 185, 185, 185, 185, 185,
  645. 185, 185, 185, 185, 262, 260, 185, 199, 199, 199,
  646. 199, 199, 199, 199, 199, 199, 199, 199, 199, 199,
  647. 199, 199, 199, 199, 199, 199, 199, 199, 199, 199,
  648. 199, 199, 199, 199, 199, 199, 199, 199, 199, 199,
  649. 199, 199, 199, 199, 199, 199, 199, 199, 199, 199,
  650. 230, 230, 257, 230, 230, 230, 230, 230, 230, 230,
  651. 230, 230, 230, 230, 230, 230, 230, 230, 230, 230,
  652. 230, 230, 230, 230, 230, 230, 230, 230, 230, 230,
  653. 230, 230, 230, 230, 230, 230, 230, 230, 230, 230,
  654. 230, 230, 230, 253, 253, 253, 253, 265, 255, 302,
  655. 254, 265, 265, 302, 302, 265, 265, 265, 265, 265,
  656. 265, 289, 289, 289, 289, 296, 296, 296, 296, 303,
  657. 250, 244, 241, 237, 236, 233, 232, 303, 303, 303,
  658. 303, 303, 303, 341, 341, 341, 341, 341, 341, 341,
  659. 341, 341, 341, 341, 341, 341, 342, 342, 342, 342,
  660. 342, 342, 342, 342, 342, 342, 342, 342, 342, 343,
  661. 343, 343, 343, 343, 343, 343, 343, 343, 343, 343,
  662. 343, 343, 344, 344, 344, 344, 344, 344, 344, 344,
  663. 344, 344, 344, 344, 344, 345, 345, 345, 345, 345,
  664. 345, 345, 345, 345, 345, 345, 345, 345, 346, 346,
  665. 346, 346, 346, 346, 346, 346, 346, 346, 346, 346,
  666. 346, 347, 347, 347, 347, 347, 347, 347, 347, 347,
  667. 347, 347, 347, 347, 348, 348, 348, 348, 348, 348,
  668. 348, 348, 348, 348, 348, 348, 348, 349, 349, 349,
  669. 349, 349, 349, 349, 349, 349, 349, 349, 349, 349,
  670. 350, 350, 350, 350, 350, 350, 350, 350, 350, 350,
  671. 350, 350, 350, 351, 351, 351, 351, 351, 351, 351,
  672. 351, 351, 351, 351, 351, 351, 352, 352, 352, 352,
  673. 352, 352, 352, 352, 352, 352, 352, 352, 352, 353,
  674. 353, 353, 353, 353, 353, 353, 353, 353, 353, 353,
  675. 353, 353, 354, 354, 354, 354, 354, 354, 354, 354,
  676. 354, 354, 354, 354, 354, 355, 355, 355, 355, 355,
  677. 355, 355, 355, 355, 355, 355, 355, 355, 356, 356,
  678. 356, 356, 356, 356, 356, 356, 356, 356, 356, 356,
  679. 356, 357, 357, 229, 222, 357, 357, 358, 358, 358,
  680. 358, 358, 358, 358, 358, 358, 358, 358, 358, 358,
  681. 359, 359, 359, 359, 359, 359, 359, 359, 359, 359,
  682. 359, 359, 360, 360, 219, 218, 360, 360, 361, 361,
  683. 217, 361, 361, 361, 361, 361, 361, 206, 361, 361,
  684. 361, 362, 362, 204, 362, 362, 362, 362, 362, 362,
  685. 362, 362, 362, 362, 363, 363, 363, 363, 363, 363,
  686. 363, 363, 363, 363, 363, 363, 363, 364, 198, 197,
  687. 364, 364, 364, 364, 364, 364, 364, 364, 364, 364,
  688. 365, 365, 365, 365, 365, 365, 365, 365, 365, 365,
  689. 365, 365, 365, 366, 366, 193, 366, 366, 366, 366,
  690. 366, 366, 366, 190, 181, 366, 367, 367, 177, 175,
  691. 367, 367, 368, 368, 174, 368, 368, 368, 368, 368,
  692. 368, 368, 368, 368, 368, 369, 369, 169, 163, 369,
  693. 369, 370, 370, 159, 370, 370, 370, 370, 370, 370,
  694. 370, 370, 370, 370, 371, 371, 151, 371, 371, 371,
  695. 371, 371, 371, 371, 371, 371, 371, 372, 372, 150,
  696. 372, 372, 372, 372, 372, 372, 146, 372, 372, 372,
  697. 373, 373, 142, 141, 137, 373, 373, 373, 373, 373,
  698. 374, 374, 136, 374, 374, 374, 374, 374, 374, 374,
  699. 374, 374, 374, 375, 375, 134, 126, 375, 375, 376,
  700. 376, 376, 376, 376, 376, 376, 376, 376, 376, 376,
  701. 376, 376, 377, 377, 123, 377, 377, 117, 377, 377,
  702. 377, 377, 377, 377, 377, 378, 378, 114, 378, 378,
  703. 113, 378, 378, 378, 378, 378, 378, 378, 379, 379,
  704. 111, 102, 379, 379, 379, 379, 93, 379, 379, 379,
  705. 379, 380, 380, 87, 380, 380, 380, 380, 380, 380,
  706. 380, 380, 380, 380, 381, 381, 80, 381, 381, 381,
  707. 381, 381, 381, 381, 79, 78, 381, 382, 382, 73,
  708. 71, 382, 382, 383, 64, 63, 383, 383, 383, 383,
  709. 383, 383, 383, 383, 383, 383, 384, 384, 55, 384,
  710. 384, 384, 384, 384, 384, 384, 384, 384, 384, 385,
  711. 385, 53, 385, 385, 385, 385, 385, 385, 385, 385,
  712. 385, 385, 386, 386, 387, 387, 388, 388, 388, 388,
  713. 388, 388, 388, 388, 388, 388, 388, 388, 388, 389,
  714. 389, 389, 389, 389, 389, 389, 389, 389, 389, 389,
  715. 389, 389, 390, 49, 45, 28, 390, 391, 391, 27,
  716. 391, 391, 391, 391, 391, 391, 391, 391, 391, 392,
  717. 392, 16, 392, 392, 392, 392, 392, 392, 392, 392,
  718. 392, 392, 393, 15, 10, 8, 393, 394, 394, 394,
  719. 394, 394, 394, 394, 394, 394, 394, 394, 394, 394,
  720. 395, 7, 6, 5, 395, 396, 396, 396, 396, 396,
  721. 396, 396, 396, 396, 396, 396, 396, 396, 397, 397,
  722. 0, 0, 397, 397, 398, 398, 0, 0, 398, 398,
  723. 399, 0, 0, 0, 399, 400, 400, 400, 400, 400,
  724. 400, 400, 400, 400, 400, 400, 400, 400, 401, 0,
  725. 0, 0, 401, 402, 402, 0, 402, 402, 402, 402,
  726. 402, 402, 402, 402, 402, 402, 403, 0, 0, 0,
  727. 403, 340, 340, 340, 340, 340, 340, 340, 340, 340,
  728. 340, 340, 340, 340, 340, 340, 340, 340, 340, 340,
  729. 340, 340, 340, 340, 340, 340, 340, 340, 340, 340,
  730. 340, 340, 340, 340, 340, 340, 340, 340, 340, 340,
  731. 340, 340, 340, 340, 340
  732. } ;
  733. static yy_state_type yy_last_accepting_state;
  734. static YY_CHAR *yy_last_accepting_cpos;
  735. /* the intent behind this definition is that it'll catch
  736. * any uses of REJECT which flex missed
  737. */
  738. #define REJECT reject_used_but_not_detected
  739. #define yymore() yymore_used_but_not_detected
  740. #define YY_MORE_ADJ 0
  741. /* these variables are all declared out here so that section 3 code can
  742. * manipulate them
  743. */
  744. /* points to current character in buffer */
  745. static YY_CHAR *yy_c_buf_p = (YY_CHAR *) 0;
  746. static int yy_init = 1; /* whether we need to initialize */
  747. static int yy_start = 0; /* start state number */
  748. /* flag which is used to allow yywrap()'s to do buffer switches
  749. * instead of setting up a fresh yyin. A bit of a hack ...
  750. */
  751. static int yy_did_buffer_switch_on_eof;
  752. static yy_state_type yy_get_previous_state YY_PROTO(( void ));
  753. static yy_state_type yy_try_NUL_trans YY_PROTO(( yy_state_type current_state ));
  754. static int yy_get_next_buffer YY_PROTO(( void ));
  755. static void yyunput YY_PROTO(( YY_CHAR c, YY_CHAR *buf_ptr ));
  756. void yyrestart YY_PROTO(( FILE *input_file ));
  757. void yy_switch_to_buffer YY_PROTO(( YY_BUFFER_STATE new_buffer ));
  758. void yy_load_buffer_state YY_PROTO(( void ));
  759. YY_BUFFER_STATE yy_create_buffer YY_PROTO(( FILE *file, int size ));
  760. void yy_delete_buffer YY_PROTO(( YY_BUFFER_STATE b ));
  761. void yy_init_buffer YY_PROTO(( YY_BUFFER_STATE b, FILE *file ));
  762. #define yy_new_buffer yy_create_buffer
  763. #ifdef __cplusplus
  764. static int yyinput YY_PROTO(( void ));
  765. #else
  766. static int input YY_PROTO(( void ));
  767. #endif
  768. YY_DECL
  769. {
  770. register yy_state_type yy_current_state;
  771. register YY_CHAR *yy_cp, *yy_bp;
  772. register int yy_act;
  773. static int bracelevel, didadef;
  774. int i, indented_code, checking_used, new_xlation;
  775. int doing_codeblock = false;
  776. Char nmdef[MAXLINE], myesc();
  777. if ( yy_init )
  778. {
  779. YY_USER_INIT;
  780. if ( ! yy_start )
  781. yy_start = 1; /* first start state */
  782. if ( ! yyin )
  783. yyin = stdin;
  784. if ( ! yyout )
  785. yyout = stdout;
  786. if ( yy_current_buffer )
  787. yy_init_buffer( yy_current_buffer, yyin );
  788. else
  789. yy_current_buffer = yy_create_buffer( yyin, YY_BUF_SIZE );
  790. yy_load_buffer_state();
  791. yy_init = 0;
  792. }
  793. while ( 1 ) /* loops until end-of-file is reached */
  794. {
  795. yy_cp = yy_c_buf_p;
  796. /* support of yytext */
  797. *yy_cp = yy_hold_char;
  798. /* yy_bp points to the position in yy_ch_buf of the start of the
  799. * current run.
  800. */
  801. yy_bp = yy_cp;
  802. yy_current_state = yy_start;
  803. if ( yy_bp[-1] == '\n' )
  804. ++yy_current_state;
  805. yy_match:
  806. do
  807. {
  808. register YY_CHAR yy_c = yy_ec[*yy_cp];
  809. if ( yy_accept[yy_current_state] )
  810. {
  811. yy_last_accepting_state = yy_current_state;
  812. yy_last_accepting_cpos = yy_cp;
  813. }
  814. while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state )
  815. {
  816. yy_current_state = yy_def[yy_current_state];
  817. if ( yy_current_state >= 341 )
  818. yy_c = yy_meta[yy_c];
  819. }
  820. yy_current_state = yy_nxt[yy_base[yy_current_state] + yy_c];
  821. ++yy_cp;
  822. }
  823. while ( yy_current_state != 340 );
  824. yy_cp = yy_last_accepting_cpos;
  825. yy_current_state = yy_last_accepting_state;
  826. yy_find_action:
  827. yy_act = yy_accept[yy_current_state];
  828. YY_DO_BEFORE_ACTION;
  829. YY_USER_ACTION;
  830. do_action: /* this label is used only to access EOF actions */
  831. switch ( yy_act )
  832. {
  833. case 0: /* must backtrack */
  834. /* undo the effects of YY_DO_BEFORE_ACTION */
  835. *yy_cp = yy_hold_char;
  836. yy_cp = yy_last_accepting_cpos;
  837. yy_current_state = yy_last_accepting_state;
  838. goto yy_find_action;
  839. case 1:
  840. # line 90 "scan.l"
  841. indented_code = true; BEGIN(CODEBLOCK);
  842. YY_BREAK
  843. case 2:
  844. # line 91 "scan.l"
  845. ++linenum; /* treat as a comment */
  846. YY_BREAK
  847. case 3:
  848. # line 92 "scan.l"
  849. ECHO; BEGIN(C_COMMENT);
  850. YY_BREAK
  851. case 4:
  852. # line 93 "scan.l"
  853. return ( SCDECL );
  854. YY_BREAK
  855. case 5:
  856. # line 94 "scan.l"
  857. return ( XSCDECL );
  858. YY_BREAK
  859. case 6:
  860. # line 95 "scan.l"
  861. {
  862. ++linenum;
  863. line_directive_out( stdout );
  864. indented_code = false;
  865. BEGIN(CODEBLOCK);
  866. }
  867. YY_BREAK
  868. case 7:
  869. # line 102 "scan.l"
  870. return ( WHITESPACE );
  871. YY_BREAK
  872. case 8:
  873. # line 104 "scan.l"
  874. {
  875. sectnum = 2;
  876. line_directive_out( stdout );
  877. BEGIN(SECT2PROLOG);
  878. return ( SECTEND );
  879. }
  880. YY_BREAK
  881. case 9:
  882. # line 111 "scan.l"
  883. {
  884. pinpoint_message( "warning - %%used/%%unused have been deprecated" );
  885. checking_used = REALLY_USED; BEGIN(USED_LIST);
  886. }
  887. YY_BREAK
  888. case 10:
  889. # line 115 "scan.l"
  890. {
  891. checking_used = REALLY_NOT_USED; BEGIN(USED_LIST);
  892. pinpoint_message( "warning - %%used/%%unused have been deprecated" );
  893. checking_used = REALLY_NOT_USED; BEGIN(USED_LIST);
  894. }
  895. YY_BREAK
  896. case 11:
  897. # line 122 "scan.l"
  898. {
  899. #ifdef NOTDEF
  900. fprintf( stderr,
  901. "old-style lex command at line %d ignored:\n\t%s",
  902. linenum, yytext );
  903. #endif
  904. ++linenum;
  905. }
  906. YY_BREAK
  907. case 12:
  908. # line 131 "scan.l"
  909. /* ignore old lex directive */
  910. YY_BREAK
  911. case 13:
  912. # line 133 "scan.l"
  913. {
  914. ++linenum;
  915. xlation =
  916. (int *) malloc( sizeof( int ) * (unsigned) csize );
  917. if ( ! xlation )
  918. flexfatal(
  919. "dynamic memory failure building %t table" );
  920. for ( i = 0; i < csize; ++i )
  921. xlation[i] = 0;
  922. num_xlations = 0;
  923. BEGIN(XLATION);
  924. }
  925. YY_BREAK
  926. case 14:
  927. # line 150 "scan.l"
  928. synerr( "unrecognized '%' directive" );
  929. YY_BREAK
  930. case 15:
  931. # line 152 "scan.l"
  932. {
  933. (void) strcpy( nmstr, (char *) yytext );
  934. didadef = false;
  935. BEGIN(PICKUPDEF);
  936. }
  937. YY_BREAK
  938. case 16:
  939. # line 158 "scan.l"
  940. RETURNNAME;
  941. YY_BREAK
  942. case 17:
  943. # line 159 "scan.l"
  944. ++linenum; /* allows blank lines in section 1 */
  945. YY_BREAK
  946. case 18:
  947. # line 160 "scan.l"
  948. ++linenum; return ( '\n' );
  949. YY_BREAK
  950. case 19:
  951. # line 161 "scan.l"
  952. synerr( "illegal character" ); BEGIN(RECOVER);
  953. YY_BREAK
  954. case 20:
  955. # line 164 "scan.l"
  956. ECHO; BEGIN(INITIAL);
  957. YY_BREAK
  958. case 21:
  959. # line 165 "scan.l"
  960. ++linenum; ECHO; BEGIN(INITIAL);
  961. YY_BREAK
  962. case 22:
  963. # line 166 "scan.l"
  964. ECHO;
  965. YY_BREAK
  966. case 23:
  967. # line 167 "scan.l"
  968. ECHO;
  969. YY_BREAK
  970. case 24:
  971. # line 168 "scan.l"
  972. ++linenum; ECHO;
  973. YY_BREAK
  974. case 25:
  975. # line 171 "scan.l"
  976. ++linenum; BEGIN(INITIAL);
  977. YY_BREAK
  978. case 26:
  979. # line 172 "scan.l"
  980. ECHO; CHECK_REJECT(yytext);
  981. YY_BREAK
  982. case 27:
  983. # line 173 "scan.l"
  984. ECHO; CHECK_YYMORE(yytext);
  985. YY_BREAK
  986. case 28:
  987. # line 174 "scan.l"
  988. ECHO;
  989. YY_BREAK
  990. case 29:
  991. # line 175 "scan.l"
  992. {
  993. ++linenum;
  994. ECHO;
  995. if ( indented_code )
  996. BEGIN(INITIAL);
  997. }
  998. YY_BREAK
  999. case 30:
  1000. # line 183 "scan.l"
  1001. /* separates name and definition */
  1002. YY_BREAK
  1003. case 31:
  1004. # line 185 "scan.l"
  1005. {
  1006. (void) strcpy( (char *) nmdef, (char *) yytext );
  1007. for ( i = strlen( (char *) nmdef ) - 1;
  1008. i >= 0 &&
  1009. nmdef[i] == ' ' || nmdef[i] == '\t';
  1010. --i )
  1011. ;
  1012. nmdef[i + 1] = '\0';
  1013. ndinstal( nmstr, nmdef );
  1014. didadef = true;
  1015. }
  1016. YY_BREAK
  1017. case 32:
  1018. # line 200 "scan.l"
  1019. {
  1020. if ( ! didadef )
  1021. synerr( "incomplete name definition" );
  1022. BEGIN(INITIAL);
  1023. ++linenum;
  1024. }
  1025. YY_BREAK
  1026. case 33:
  1027. # line 207 "scan.l"
  1028. ++linenum; BEGIN(INITIAL); RETURNNAME;
  1029. YY_BREAK
  1030. case 34:
  1031. # line 210 "scan.l"
  1032. ++linenum; BEGIN(INITIAL);
  1033. YY_BREAK
  1034. case 35:
  1035. # line 211 "scan.l"
  1036. YY_BREAK
  1037. case 36:
  1038. # line 212 "scan.l"
  1039. {
  1040. if ( all_upper( yytext ) )
  1041. reject_really_used = checking_used;
  1042. else
  1043. synerr( "unrecognized %used/%unused construct" );
  1044. }
  1045. YY_BREAK
  1046. case 37:
  1047. # line 218 "scan.l"
  1048. {
  1049. if ( all_lower( yytext ) )
  1050. yymore_really_used = checking_used;
  1051. else
  1052. synerr( "unrecognized %used/%unused construct" );
  1053. }
  1054. YY_BREAK
  1055. case 38:
  1056. # line 224 "scan.l"
  1057. synerr( "unrecognized %used/%unused construct" );
  1058. YY_BREAK
  1059. case 39:
  1060. # line 227 "scan.l"
  1061. ++linenum; BEGIN(INITIAL);
  1062. YY_BREAK
  1063. case 40:
  1064. # line 228 "scan.l"
  1065. ++num_xlations; new_xlation = true;
  1066. YY_BREAK
  1067. case 41:
  1068. # line 229 "scan.l"
  1069. synerr( "bad row in translation table" );
  1070. YY_BREAK
  1071. case 42:
  1072. # line 230 "scan.l"
  1073. /* ignore whitespace */
  1074. YY_BREAK
  1075. case 43:
  1076. # line 232 "scan.l"
  1077. {
  1078. xlation[myesc( yytext )] =
  1079. (new_xlation ? num_xlations : -num_xlations);
  1080. new_xlation = false;
  1081. }
  1082. YY_BREAK
  1083. case 44:
  1084. # line 237 "scan.l"
  1085. {
  1086. xlation[yytext[0]] =
  1087. (new_xlation ? num_xlations : -num_xlations);
  1088. new_xlation = false;
  1089. }
  1090. YY_BREAK
  1091. case 45:
  1092. # line 243 "scan.l"
  1093. ++linenum;
  1094. YY_BREAK
  1095. case 46:
  1096. *yy_cp = yy_hold_char; /* undo effects of setting up yytext */
  1097. yy_c_buf_p = yy_cp -= 1;
  1098. YY_DO_BEFORE_ACTION; /* set up yytext again */
  1099. # line 246 "scan.l"
  1100. {
  1101. ++linenum;
  1102. ACTION_ECHO;
  1103. MARK_END_OF_PROLOG;
  1104. BEGIN(SECT2);
  1105. }
  1106. YY_BREAK
  1107. case 47:
  1108. # line 253 "scan.l"
  1109. ++linenum; ACTION_ECHO;
  1110. YY_BREAK
  1111. case YY_STATE_EOF(SECT2PROLOG):
  1112. # line 255 "scan.l"
  1113. MARK_END_OF_PROLOG; yyterminate();
  1114. YY_BREAK
  1115. case 49:
  1116. # line 257 "scan.l"
  1117. ++linenum; /* allow blank lines in section 2 */
  1118. YY_BREAK
  1119. case 50:
  1120. # line 259 "scan.l"
  1121. {
  1122. indented_code = (yytext[0] != '%');
  1123. doing_codeblock = true;
  1124. bracelevel = 1;
  1125. if ( indented_code )
  1126. ACTION_ECHO;
  1127. BEGIN(CODEBLOCK_2);
  1128. }
  1129. YY_BREAK
  1130. case 51:
  1131. # line 270 "scan.l"
  1132. BEGIN(SC); return ( '<' );
  1133. YY_BREAK
  1134. case 52:
  1135. # line 271 "scan.l"
  1136. return ( '^' );
  1137. YY_BREAK
  1138. case 53:
  1139. # line 272 "scan.l"
  1140. BEGIN(QUOTE); return ( '"' );
  1141. YY_BREAK
  1142. case 54:
  1143. *yy_cp = yy_hold_char; /* undo effects of setting up yytext */
  1144. yy_c_buf_p = yy_cp = yy_bp + 1;
  1145. YY_DO_BEFORE_ACTION; /* set up yytext again */
  1146. # line 273 "scan.l"
  1147. BEGIN(NUM); return ( '{' );
  1148. YY_BREAK
  1149. case 55:
  1150. # line 274 "scan.l"
  1151. BEGIN(BRACEERROR);
  1152. YY_BREAK
  1153. case 56:
  1154. *yy_cp = yy_hold_char; /* undo effects of setting up yytext */
  1155. yy_c_buf_p = yy_cp = yy_bp + 1;
  1156. YY_DO_BEFORE_ACTION; /* set up yytext again */
  1157. # line 275 "scan.l"
  1158. return ( '$' );
  1159. YY_BREAK
  1160. case 57:
  1161. # line 277 "scan.l"
  1162. {
  1163. bracelevel = 1;
  1164. BEGIN(PERCENT_BRACE_ACTION);
  1165. return ( '\n' );
  1166. }
  1167. YY_BREAK
  1168. case 58:
  1169. # line 282 "scan.l"
  1170. continued_action = true; ++linenum; return ( '\n' );
  1171. YY_BREAK
  1172. case 59:
  1173. # line 284 "scan.l"
  1174. {
  1175. /* this rule is separate from the one below because
  1176. * otherwise we get variable trailing context, so
  1177. * we can't build the scanner using -{f,F}
  1178. */
  1179. bracelevel = 0;
  1180. continued_action = false;
  1181. BEGIN(ACTION);
  1182. return ( '\n' );
  1183. }
  1184. YY_BREAK
  1185. case 60:
  1186. *yy_cp = yy_hold_char; /* undo effects of setting up yytext */
  1187. yy_c_buf_p = yy_cp -= 1;
  1188. YY_DO_BEFORE_ACTION; /* set up yytext again */
  1189. # line 295 "scan.l"
  1190. {
  1191. bracelevel = 0;
  1192. continued_action = false;
  1193. BEGIN(ACTION);
  1194. return ( '\n' );
  1195. }
  1196. YY_BREAK
  1197. case 61:
  1198. # line 302 "scan.l"
  1199. ++linenum; return ( '\n' );
  1200. YY_BREAK
  1201. case 62:
  1202. # line 304 "scan.l"
  1203. return ( EOF_OP );
  1204. YY_BREAK
  1205. case 63:
  1206. # line 306 "scan.l"
  1207. {
  1208. sectnum = 3;
  1209. BEGIN(SECT3);
  1210. return ( EOF ); /* to stop the parser */
  1211. }
  1212. YY_BREAK
  1213. case 64:
  1214. # line 312 "scan.l"
  1215. {
  1216. int cclval;
  1217. (void) strcpy( nmstr, (char *) yytext );
  1218. /* check to see if we've already encountered this ccl */
  1219. if ( (cclval = ccllookup( (Char *) nmstr )) )
  1220. {
  1221. yylval = cclval;
  1222. ++cclreuse;
  1223. return ( PREVCCL );
  1224. }
  1225. else
  1226. {
  1227. /* we fudge a bit. We know that this ccl will
  1228. * soon be numbered as lastccl + 1 by cclinit
  1229. */
  1230. cclinstal( (Char *) nmstr, lastccl + 1 );
  1231. /* push back everything but the leading bracket
  1232. * so the ccl can be rescanned
  1233. */
  1234. PUT_BACK_STRING((Char *) nmstr, 1);
  1235. BEGIN(FIRSTCCL);
  1236. return ( '[' );
  1237. }
  1238. }
  1239. YY_BREAK
  1240. case 65:
  1241. # line 341 "scan.l"
  1242. {
  1243. register Char *nmdefptr;
  1244. Char *ndlookup();
  1245. (void) strcpy( nmstr, (char *) yytext );
  1246. nmstr[yyleng - 1] = '\0'; /* chop trailing brace */
  1247. /* lookup from "nmstr + 1" to chop leading brace */
  1248. if ( ! (nmdefptr = ndlookup( nmstr + 1 )) )
  1249. synerr( "undefined {name}" );
  1250. else
  1251. { /* push back name surrounded by ()'s */
  1252. unput(')');
  1253. PUT_BACK_STRING(nmdefptr, 0);
  1254. unput('(');
  1255. }
  1256. }
  1257. YY_BREAK
  1258. case 66:
  1259. # line 360 "scan.l"
  1260. return ( yytext[0] );
  1261. YY_BREAK
  1262. case 67:
  1263. # line 361 "scan.l"
  1264. RETURNCHAR;
  1265. YY_BREAK
  1266. case 68:
  1267. # line 362 "scan.l"
  1268. ++linenum; return ( '\n' );
  1269. YY_BREAK
  1270. case 69:
  1271. # line 365 "scan.l"
  1272. return ( ',' );
  1273. YY_BREAK
  1274. case 70:
  1275. # line 366 "scan.l"
  1276. BEGIN(SECT2); return ( '>' );
  1277. YY_BREAK
  1278. case 71:
  1279. *yy_cp = yy_hold_char; /* undo effects of setting up yytext */
  1280. yy_c_buf_p = yy_cp = yy_bp + 1;
  1281. YY_DO_BEFORE_ACTION; /* set up yytext again */
  1282. # line 367 "scan.l"
  1283. BEGIN(CARETISBOL); return ( '>' );
  1284. YY_BREAK
  1285. case 72:
  1286. # line 368 "scan.l"
  1287. RETURNNAME;
  1288. YY_BREAK
  1289. case 73:
  1290. # line 369 "scan.l"
  1291. synerr( "bad start condition name" );
  1292. YY_BREAK
  1293. case 74:
  1294. # line 371 "scan.l"
  1295. BEGIN(SECT2); return ( '^' );
  1296. YY_BREAK
  1297. case 75:
  1298. # line 374 "scan.l"
  1299. RETURNCHAR;
  1300. YY_BREAK
  1301. case 76:
  1302. # line 375 "scan.l"
  1303. BEGIN(SECT2); return ( '"' );
  1304. YY_BREAK
  1305. case 77:
  1306. # line 377 "scan.l"
  1307. {
  1308. synerr( "missing quote" );
  1309. BEGIN(SECT2);
  1310. ++linenum;
  1311. return ( '"' );
  1312. }
  1313. YY_BREAK
  1314. case 78:
  1315. *yy_cp = yy_hold_char; /* undo effects of setting up yytext */
  1316. yy_c_buf_p = yy_cp = yy_bp + 1;
  1317. YY_DO_BEFORE_ACTION; /* set up yytext again */
  1318. # line 385 "scan.l"
  1319. BEGIN(CCL); return ( '^' );
  1320. YY_BREAK
  1321. case 79:
  1322. *yy_cp = yy_hold_char; /* undo effects of setting up yytext */
  1323. yy_c_buf_p = yy_cp = yy_bp + 1;
  1324. YY_DO_BEFORE_ACTION; /* set up yytext again */
  1325. # line 386 "scan.l"
  1326. return ( '^' );
  1327. YY_BREAK
  1328. case 80:
  1329. # line 387 "scan.l"
  1330. BEGIN(CCL); yylval = '-'; return ( CHAR );
  1331. YY_BREAK
  1332. case 81:
  1333. # line 388 "scan.l"
  1334. BEGIN(CCL); RETURNCHAR;
  1335. YY_BREAK
  1336. case 82:
  1337. *yy_cp = yy_hold_char; /* undo effects of setting up yytext */
  1338. yy_c_buf_p = yy_cp = yy_bp + 1;
  1339. YY_DO_BEFORE_ACTION; /* set up yytext again */
  1340. # line 390 "scan.l"
  1341. return ( '-' );
  1342. YY_BREAK
  1343. case 83:
  1344. # line 391 "scan.l"
  1345. RETURNCHAR;
  1346. YY_BREAK
  1347. case 84:
  1348. # line 392 "scan.l"
  1349. BEGIN(SECT2); return ( ']' );
  1350. YY_BREAK
  1351. case 85:
  1352. # line 395 "scan.l"
  1353. {
  1354. yylval = myctoi( yytext );
  1355. return ( NUMBER );
  1356. }
  1357. YY_BREAK
  1358. case 86:
  1359. # line 400 "scan.l"
  1360. return ( ',' );
  1361. YY_BREAK
  1362. case 87:
  1363. # line 401 "scan.l"
  1364. BEGIN(SECT2); return ( '}' );
  1365. YY_BREAK
  1366. case 88:
  1367. # line 403 "scan.l"
  1368. {
  1369. synerr( "bad character inside {}'s" );
  1370. BEGIN(SECT2);
  1371. return ( '}' );
  1372. }
  1373. YY_BREAK
  1374. case 89:
  1375. # line 409 "scan.l"
  1376. {
  1377. synerr( "missing }" );
  1378. BEGIN(SECT2);
  1379. ++linenum;
  1380. return ( '}' );
  1381. }
  1382. YY_BREAK
  1383. case 90:
  1384. # line 417 "scan.l"
  1385. synerr( "bad name in {}'s" ); BEGIN(SECT2);
  1386. YY_BREAK
  1387. case 91:
  1388. # line 418 "scan.l"
  1389. synerr( "missing }" ); ++linenum; BEGIN(SECT2);
  1390. YY_BREAK
  1391. case 92:
  1392. # line 421 "scan.l"
  1393. bracelevel = 0;
  1394. YY_BREAK
  1395. case 93:
  1396. # line 422 "scan.l"
  1397. {
  1398. ACTION_ECHO;
  1399. CHECK_REJECT(yytext);
  1400. }
  1401. YY_BREAK
  1402. case 94:
  1403. # line 426 "scan.l"
  1404. {
  1405. ACTION_ECHO;
  1406. CHECK_YYMORE(yytext);
  1407. }
  1408. YY_BREAK
  1409. case 95:
  1410. # line 430 "scan.l"
  1411. ACTION_ECHO;
  1412. YY_BREAK
  1413. case 96:
  1414. # line 431 "scan.l"
  1415. {
  1416. ++linenum;
  1417. ACTION_ECHO;
  1418. if ( bracelevel == 0 ||
  1419. (doing_codeblock && indented_code) )
  1420. {
  1421. if ( ! doing_codeblock )
  1422. fputs( "\tYY_BREAK\n", temp_action_file );
  1423. doing_codeblock = false;
  1424. BEGIN(SECT2);
  1425. }
  1426. }
  1427. YY_BREAK
  1428. /* Reject and YYmore() are checked for above, in PERCENT_BRACE_ACTION */
  1429. case 97:
  1430. # line 447 "scan.l"
  1431. ACTION_ECHO; ++bracelevel;
  1432. YY_BREAK
  1433. case 98:
  1434. # line 448 "scan.l"
  1435. ACTION_ECHO; --bracelevel;
  1436. YY_BREAK
  1437. case 99:
  1438. # line 449 "scan.l"
  1439. ACTION_ECHO;
  1440. YY_BREAK
  1441. case 100:
  1442. # line 450 "scan.l"
  1443. ACTION_ECHO;
  1444. YY_BREAK
  1445. case 101:
  1446. # line 451 "scan.l"
  1447. ACTION_ECHO; BEGIN(ACTION_COMMENT);
  1448. YY_BREAK
  1449. case 102:
  1450. # line 452 "scan.l"
  1451. ACTION_ECHO; /* character constant */
  1452. YY_BREAK
  1453. case 103:
  1454. # line 453 "scan.l"
  1455. ACTION_ECHO; BEGIN(ACTION_STRING);
  1456. YY_BREAK
  1457. case 104:
  1458. # line 454 "scan.l"
  1459. {
  1460. ++linenum;
  1461. ACTION_ECHO;
  1462. if ( bracelevel == 0 )
  1463. {
  1464. fputs( "\tYY_BREAK\n", temp_action_file );
  1465. BEGIN(SECT2);
  1466. }
  1467. }
  1468. YY_BREAK
  1469. case 105:
  1470. # line 463 "scan.l"
  1471. ACTION_ECHO;
  1472. YY_BREAK
  1473. case 106:
  1474. # line 465 "scan.l"
  1475. ACTION_ECHO; BEGIN(ACTION);
  1476. YY_BREAK
  1477. case 107:
  1478. # line 466 "scan.l"
  1479. ACTION_ECHO;
  1480. YY_BREAK
  1481. case 108:
  1482. # line 467 "scan.l"
  1483. ACTION_ECHO;
  1484. YY_BREAK
  1485. case 109:
  1486. # line 468 "scan.l"
  1487. ++linenum; ACTION_ECHO;
  1488. YY_BREAK
  1489. case 110:
  1490. # line 469 "scan.l"
  1491. ACTION_ECHO;
  1492. YY_BREAK
  1493. case 111:
  1494. # line 471 "scan.l"
  1495. ACTION_ECHO;
  1496. YY_BREAK
  1497. case 112:
  1498. # line 472 "scan.l"
  1499. ACTION_ECHO;
  1500. YY_BREAK
  1501. case 113:
  1502. # line 473 "scan.l"
  1503. ++linenum; ACTION_ECHO;
  1504. YY_BREAK
  1505. case 114:
  1506. # line 474 "scan.l"
  1507. ACTION_ECHO; BEGIN(ACTION);
  1508. YY_BREAK
  1509. case 115:
  1510. # line 475 "scan.l"
  1511. ACTION_ECHO;
  1512. YY_BREAK
  1513. case YY_STATE_EOF(ACTION):
  1514. case YY_STATE_EOF(ACTION_COMMENT):
  1515. case YY_STATE_EOF(ACTION_STRING):
  1516. # line 477 "scan.l"
  1517. {
  1518. synerr( "EOF encountered inside an action" );
  1519. yyterminate();
  1520. }
  1521. YY_BREAK
  1522. case 117:
  1523. # line 483 "scan.l"
  1524. {
  1525. yylval = myesc( yytext );
  1526. return ( CHAR );
  1527. }
  1528. YY_BREAK
  1529. case 118:
  1530. # line 488 "scan.l"
  1531. {
  1532. yylval = myesc( yytext );
  1533. BEGIN(CCL);
  1534. return ( CHAR );
  1535. }
  1536. YY_BREAK
  1537. case 119:
  1538. # line 495 "scan.l"
  1539. ECHO;
  1540. YY_BREAK
  1541. case 120:
  1542. # line 496 "scan.l"
  1543. YY_FATAL_ERROR( "flex scanner jammed" );
  1544. YY_BREAK
  1545. case YY_STATE_EOF(INITIAL):
  1546. case YY_STATE_EOF(SECT2):
  1547. case YY_STATE_EOF(SECT3):
  1548. case YY_STATE_EOF(CODEBLOCK):
  1549. case YY_STATE_EOF(PICKUPDEF):
  1550. case YY_STATE_EOF(SC):
  1551. case YY_STATE_EOF(CARETISBOL):
  1552. case YY_STATE_EOF(NUM):
  1553. case YY_STATE_EOF(QUOTE):
  1554. case YY_STATE_EOF(FIRSTCCL):
  1555. case YY_STATE_EOF(CCL):
  1556. case YY_STATE_EOF(RECOVER):
  1557. case YY_STATE_EOF(BRACEERROR):
  1558. case YY_STATE_EOF(C_COMMENT):
  1559. case YY_STATE_EOF(PERCENT_BRACE_ACTION):
  1560. case YY_STATE_EOF(USED_LIST):
  1561. case YY_STATE_EOF(CODEBLOCK_2):
  1562. case YY_STATE_EOF(XLATION):
  1563. yyterminate();
  1564. case YY_END_OF_BUFFER:
  1565. {
  1566. /* amount of text matched not including the EOB char */
  1567. int yy_amount_of_matched_text = yy_cp - yytext - 1;
  1568. /* undo the effects of YY_DO_BEFORE_ACTION */
  1569. *yy_cp = yy_hold_char;
  1570. /* note that here we test for yy_c_buf_p "<=" to the position
  1571. * of the first EOB in the buffer, since yy_c_buf_p will
  1572. * already have been incremented past the NUL character
  1573. * (since all states make transitions on EOB to the end-
  1574. * of-buffer state). Contrast this with the test in yyinput().
  1575. */
  1576. if ( yy_c_buf_p <= &yy_current_buffer->yy_ch_buf[yy_n_chars] )
  1577. /* this was really a NUL */
  1578. {
  1579. yy_state_type yy_next_state;
  1580. yy_c_buf_p = yytext + yy_amount_of_matched_text;
  1581. yy_current_state = yy_get_previous_state();
  1582. /* okay, we're now positioned to make the
  1583. * NUL transition. We couldn't have
  1584. * yy_get_previous_state() go ahead and do it
  1585. * for us because it doesn't know how to deal
  1586. * with the possibility of jamming (and we
  1587. * don't want to build jamming into it because
  1588. * then it will run more slowly)
  1589. */
  1590. yy_next_state = yy_try_NUL_trans( yy_current_state );
  1591. yy_bp = yytext + YY_MORE_ADJ;
  1592. if ( yy_next_state )
  1593. {
  1594. /* consume the NUL */
  1595. yy_cp = ++yy_c_buf_p;
  1596. yy_current_state = yy_next_state;
  1597. goto yy_match;
  1598. }
  1599. else
  1600. {
  1601. yy_cp = yy_last_accepting_cpos;
  1602. yy_current_state = yy_last_accepting_state;
  1603. goto yy_find_action;
  1604. }
  1605. }
  1606. else switch ( yy_get_next_buffer() )
  1607. {
  1608. case EOB_ACT_END_OF_FILE:
  1609. {
  1610. yy_did_buffer_switch_on_eof = 0;
  1611. if ( yywrap() )
  1612. {
  1613. /* note: because we've taken care in
  1614. * yy_get_next_buffer() to have set up yytext,
  1615. * we can now set up yy_c_buf_p so that if some
  1616. * total hoser (like flex itself) wants
  1617. * to call the scanner after we return the
  1618. * YY_NULL, it'll still work - another YY_NULL
  1619. * will get returned.
  1620. */
  1621. yy_c_buf_p = yytext + YY_MORE_ADJ;
  1622. yy_act = YY_STATE_EOF((yy_start - 1) / 2);
  1623. goto do_action;
  1624. }
  1625. else
  1626. {
  1627. if ( ! yy_did_buffer_switch_on_eof )
  1628. YY_NEW_FILE;
  1629. }
  1630. }
  1631. break;
  1632. case EOB_ACT_CONTINUE_SCAN:
  1633. yy_c_buf_p = yytext + yy_amount_of_matched_text;
  1634. yy_current_state = yy_get_previous_state();
  1635. yy_cp = yy_c_buf_p;
  1636. yy_bp = yytext + YY_MORE_ADJ;
  1637. goto yy_match;
  1638. case EOB_ACT_LAST_MATCH:
  1639. yy_c_buf_p =
  1640. &yy_current_buffer->yy_ch_buf[yy_n_chars];
  1641. yy_current_state = yy_get_previous_state();
  1642. yy_cp = yy_c_buf_p;
  1643. yy_bp = yytext + YY_MORE_ADJ;
  1644. goto yy_find_action;
  1645. }
  1646. break;
  1647. }
  1648. default:
  1649. #ifdef FLEX_DEBUG
  1650. printf( "action # %d\n", yy_act );
  1651. #endif
  1652. YY_FATAL_ERROR(
  1653. "fatal flex scanner internal error--no action found" );
  1654. }
  1655. }
  1656. }
  1657. /* yy_get_next_buffer - try to read in a new buffer
  1658. *
  1659. * synopsis
  1660. * int yy_get_next_buffer();
  1661. *
  1662. * returns a code representing an action
  1663. * EOB_ACT_LAST_MATCH -
  1664. * EOB_ACT_CONTINUE_SCAN - continue scanning from current position
  1665. * EOB_ACT_END_OF_FILE - end of file
  1666. */
  1667. static int yy_get_next_buffer()
  1668. {
  1669. register YY_CHAR *dest = yy_current_buffer->yy_ch_buf;
  1670. register YY_CHAR *source = yytext - 1; /* copy prev. char, too */
  1671. register int number_to_move, i;
  1672. int ret_val;
  1673. if ( yy_c_buf_p > &yy_current_buffer->yy_ch_buf[yy_n_chars + 1] )
  1674. YY_FATAL_ERROR(
  1675. "fatal flex scanner internal error--end of buffer missed" );
  1676. /* try to read more data */
  1677. /* first move last chars to start of buffer */
  1678. number_to_move = yy_c_buf_p - yytext;
  1679. for ( i = 0; i < number_to_move; ++i )
  1680. *(dest++) = *(source++);
  1681. if ( yy_current_buffer->yy_eof_status != EOF_NOT_SEEN )
  1682. /* don't do the read, it's not guaranteed to return an EOF,
  1683. * just force an EOF
  1684. */
  1685. yy_n_chars = 0;
  1686. else
  1687. {
  1688. int num_to_read = yy_current_buffer->yy_buf_size - number_to_move - 1;
  1689. if ( num_to_read > YY_READ_BUF_SIZE )
  1690. num_to_read = YY_READ_BUF_SIZE;
  1691. else if ( num_to_read <= 0 )
  1692. YY_FATAL_ERROR( "fatal error - scanner input buffer overflow" );
  1693. /* read in more data */
  1694. YY_INPUT( (&yy_current_buffer->yy_ch_buf[number_to_move]),
  1695. yy_n_chars, num_to_read );
  1696. }
  1697. if ( yy_n_chars == 0 )
  1698. {
  1699. if ( number_to_move == 1 )
  1700. {
  1701. ret_val = EOB_ACT_END_OF_FILE;
  1702. yy_current_buffer->yy_eof_status = EOF_DONE;
  1703. }
  1704. else
  1705. {
  1706. ret_val = EOB_ACT_LAST_MATCH;
  1707. yy_current_buffer->yy_eof_status = EOF_PENDING;
  1708. }
  1709. }
  1710. else
  1711. ret_val = EOB_ACT_CONTINUE_SCAN;
  1712. yy_n_chars += number_to_move;
  1713. yy_current_buffer->yy_ch_buf[yy_n_chars] = YY_END_OF_BUFFER_CHAR;
  1714. yy_current_buffer->yy_ch_buf[yy_n_chars + 1] = YY_END_OF_BUFFER_CHAR;
  1715. /* yytext begins at the second character in yy_ch_buf; the first
  1716. * character is the one which preceded it before reading in the latest
  1717. * buffer; it needs to be kept around in case it's a newline, so
  1718. * yy_get_previous_state() will have with '^' rules active
  1719. */
  1720. yytext = &yy_current_buffer->yy_ch_buf[1];
  1721. return ( ret_val );
  1722. }
  1723. /* yy_get_previous_state - get the state just before the EOB char was reached
  1724. *
  1725. * synopsis
  1726. * yy_state_type yy_get_previous_state();
  1727. */
  1728. static yy_state_type yy_get_previous_state()
  1729. {
  1730. register yy_state_type yy_current_state;
  1731. register YY_CHAR *yy_cp;
  1732. register YY_CHAR *yy_bp = yytext;
  1733. yy_current_state = yy_start;
  1734. if ( yy_bp[-1] == '\n' )
  1735. ++yy_current_state;
  1736. for ( yy_cp = yytext + YY_MORE_ADJ; yy_cp < yy_c_buf_p; ++yy_cp )
  1737. {
  1738. register YY_CHAR yy_c = (*yy_cp ? yy_ec[*yy_cp] : 1);
  1739. if ( yy_accept[yy_current_state] )
  1740. {
  1741. yy_last_accepting_state = yy_current_state;
  1742. yy_last_accepting_cpos = yy_cp;
  1743. }
  1744. while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state )
  1745. {
  1746. yy_current_state = yy_def[yy_current_state];
  1747. if ( yy_current_state >= 341 )
  1748. yy_c = yy_meta[yy_c];
  1749. }
  1750. yy_current_state = yy_nxt[yy_base[yy_current_state] + yy_c];
  1751. }
  1752. return ( yy_current_state );
  1753. }
  1754. /* yy_try_NUL_trans - try to make a transition on the NUL character
  1755. *
  1756. * synopsis
  1757. * next_state = yy_try_NUL_trans( current_state );
  1758. */
  1759. #ifdef YY_USE_PROTOS
  1760. static yy_state_type yy_try_NUL_trans( register yy_state_type yy_current_state )
  1761. #else
  1762. static yy_state_type yy_try_NUL_trans( yy_current_state )
  1763. register yy_state_type yy_current_state;
  1764. #endif
  1765. {
  1766. register int yy_is_jam;
  1767. register YY_CHAR *yy_cp = yy_c_buf_p;
  1768. register YY_CHAR yy_c = 1;
  1769. if ( yy_accept[yy_current_state] )
  1770. {
  1771. yy_last_accepting_state = yy_current_state;
  1772. yy_last_accepting_cpos = yy_cp;
  1773. }
  1774. while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state )
  1775. {
  1776. yy_current_state = yy_def[yy_current_state];
  1777. if ( yy_current_state >= 341 )
  1778. yy_c = yy_meta[yy_c];
  1779. }
  1780. yy_current_state = yy_nxt[yy_base[yy_current_state] + yy_c];
  1781. yy_is_jam = (yy_current_state == 340);
  1782. return ( yy_is_jam ? 0 : yy_current_state );
  1783. }
  1784. #ifdef YY_USE_PROTOS
  1785. static void yyunput( YY_CHAR c, register YY_CHAR *yy_bp )
  1786. #else
  1787. static void yyunput( c, yy_bp )
  1788. YY_CHAR c;
  1789. register YY_CHAR *yy_bp;
  1790. #endif
  1791. {
  1792. register YY_CHAR *yy_cp = yy_c_buf_p;
  1793. /* undo effects of setting up yytext */
  1794. *yy_cp = yy_hold_char;
  1795. if ( yy_cp < yy_current_buffer->yy_ch_buf + 2 )
  1796. { /* need to shift things up to make room */
  1797. register int number_to_move = yy_n_chars + 2; /* +2 for EOB chars */
  1798. register YY_CHAR *dest =
  1799. &yy_current_buffer->yy_ch_buf[yy_current_buffer->yy_buf_size + 2];
  1800. register YY_CHAR *source =
  1801. &yy_current_buffer->yy_ch_buf[number_to_move];
  1802. while ( source > yy_current_buffer->yy_ch_buf )
  1803. *--dest = *--source;
  1804. yy_cp += dest - source;
  1805. yy_bp += dest - source;
  1806. yy_n_chars = yy_current_buffer->yy_buf_size;
  1807. if ( yy_cp < yy_current_buffer->yy_ch_buf + 2 )
  1808. YY_FATAL_ERROR( "flex scanner push-back overflow" );
  1809. }
  1810. if ( yy_cp > yy_bp && yy_cp[-1] == '\n' )
  1811. yy_cp[-2] = '\n';
  1812. *--yy_cp = c;
  1813. /* note: the formal parameter *must* be called "yy_bp" for this
  1814. * macro to now work correctly
  1815. */
  1816. YY_DO_BEFORE_ACTION; /* set up yytext again */
  1817. }
  1818. #ifdef __cplusplus
  1819. static int yyinput()
  1820. #else
  1821. static int input()
  1822. #endif
  1823. {
  1824. int c;
  1825. YY_CHAR *yy_cp = yy_c_buf_p;
  1826. *yy_cp = yy_hold_char;
  1827. if ( *yy_c_buf_p == YY_END_OF_BUFFER_CHAR )
  1828. {
  1829. /* yy_c_buf_p now points to the character we want to return.
  1830. * If this occurs *before* the EOB characters, then it's a
  1831. * valid NUL; if not, then we've hit the end of the buffer.
  1832. */
  1833. if ( yy_c_buf_p < &yy_current_buffer->yy_ch_buf[yy_n_chars] )
  1834. /* this was really a NUL */
  1835. *yy_c_buf_p = '\0';
  1836. else
  1837. { /* need more input */
  1838. yytext = yy_c_buf_p;
  1839. ++yy_c_buf_p;
  1840. switch ( yy_get_next_buffer() )
  1841. {
  1842. case EOB_ACT_END_OF_FILE:
  1843. {
  1844. if ( yywrap() )
  1845. {
  1846. yy_c_buf_p = yytext + YY_MORE_ADJ;
  1847. return ( EOF );
  1848. }
  1849. YY_NEW_FILE;
  1850. #ifdef __cplusplus
  1851. return ( yyinput() );
  1852. #else
  1853. return ( input() );
  1854. #endif
  1855. }
  1856. break;
  1857. case EOB_ACT_CONTINUE_SCAN:
  1858. yy_c_buf_p = yytext + YY_MORE_ADJ;
  1859. break;
  1860. case EOB_ACT_LAST_MATCH:
  1861. #ifdef __cplusplus
  1862. YY_FATAL_ERROR( "unexpected last match in yyinput()" );
  1863. #else
  1864. YY_FATAL_ERROR( "unexpected last match in input()" );
  1865. #endif
  1866. }
  1867. }
  1868. }
  1869. c = *yy_c_buf_p;
  1870. yy_hold_char = *++yy_c_buf_p;
  1871. return ( c );
  1872. }
  1873. #ifdef YY_USE_PROTOS
  1874. void yyrestart( FILE *input_file )
  1875. #else
  1876. void yyrestart( input_file )
  1877. FILE *input_file;
  1878. #endif
  1879. {
  1880. yy_init_buffer( yy_current_buffer, input_file );
  1881. yy_load_buffer_state();
  1882. }
  1883. #ifdef YY_USE_PROTOS
  1884. void yy_switch_to_buffer( YY_BUFFER_STATE new_buffer )
  1885. #else
  1886. void yy_switch_to_buffer( new_buffer )
  1887. YY_BUFFER_STATE new_buffer;
  1888. #endif
  1889. {
  1890. if ( yy_current_buffer == new_buffer )
  1891. return;
  1892. if ( yy_current_buffer )
  1893. {
  1894. /* flush out information for old buffer */
  1895. *yy_c_buf_p = yy_hold_char;
  1896. yy_current_buffer->yy_buf_pos = yy_c_buf_p;
  1897. yy_current_buffer->yy_n_chars = yy_n_chars;
  1898. }
  1899. yy_current_buffer = new_buffer;
  1900. yy_load_buffer_state();
  1901. /* we don't actually know whether we did this switch during
  1902. * EOF (yywrap()) processing, but the only time this flag
  1903. * is looked at is after yywrap() is called, so it's safe
  1904. * to go ahead and always set it.
  1905. */
  1906. yy_did_buffer_switch_on_eof = 1;
  1907. }
  1908. #ifdef YY_USE_PROTOS
  1909. void yy_load_buffer_state( void )
  1910. #else
  1911. void yy_load_buffer_state()
  1912. #endif
  1913. {
  1914. yy_n_chars = yy_current_buffer->yy_n_chars;
  1915. yytext = yy_c_buf_p = yy_current_buffer->yy_buf_pos;
  1916. yyin = yy_current_buffer->yy_input_file;
  1917. yy_hold_char = *yy_c_buf_p;
  1918. }
  1919. #ifdef YY_USE_PROTOS
  1920. YY_BUFFER_STATE yy_create_buffer( FILE *file, int size )
  1921. #else
  1922. YY_BUFFER_STATE yy_create_buffer( file, size )
  1923. FILE *file;
  1924. int size;
  1925. #endif
  1926. {
  1927. YY_BUFFER_STATE b;
  1928. b = (YY_BUFFER_STATE) malloc( sizeof( struct yy_buffer_state ) );
  1929. if ( ! b )
  1930. YY_FATAL_ERROR( "out of dynamic memory in yy_create_buffer()" );
  1931. b->yy_buf_size = size;
  1932. /* yy_ch_buf has to be 2 characters longer than the size given because
  1933. * we need to put in 2 end-of-buffer characters.
  1934. */
  1935. b->yy_ch_buf = (YY_CHAR *) malloc( (unsigned) (b->yy_buf_size + 2) );
  1936. if ( ! b->yy_ch_buf )
  1937. YY_FATAL_ERROR( "out of dynamic memory in yy_create_buffer()" );
  1938. yy_init_buffer( b, file );
  1939. return ( b );
  1940. }
  1941. #ifdef YY_USE_PROTOS
  1942. void yy_delete_buffer( YY_BUFFER_STATE b )
  1943. #else
  1944. void yy_delete_buffer( b )
  1945. YY_BUFFER_STATE b;
  1946. #endif
  1947. {
  1948. if ( b == yy_current_buffer )
  1949. yy_current_buffer = (YY_BUFFER_STATE) 0;
  1950. free( (char *) b->yy_ch_buf );
  1951. free( (char *) b );
  1952. }
  1953. #ifdef YY_USE_PROTOS
  1954. void yy_init_buffer( YY_BUFFER_STATE b, FILE *file )
  1955. #else
  1956. void yy_init_buffer( b, file )
  1957. YY_BUFFER_STATE b;
  1958. FILE *file;
  1959. #endif
  1960. {
  1961. b->yy_input_file = file;
  1962. /* we put in the '\n' and start reading from [1] so that an
  1963. * initial match-at-newline will be true.
  1964. */
  1965. b->yy_ch_buf[0] = '\n';
  1966. b->yy_n_chars = 1;
  1967. /* we always need two end-of-buffer characters. The first causes
  1968. * a transition to the end-of-buffer state. The second causes
  1969. * a jam in that state.
  1970. */
  1971. b->yy_ch_buf[1] = YY_END_OF_BUFFER_CHAR;
  1972. b->yy_ch_buf[2] = YY_END_OF_BUFFER_CHAR;
  1973. b->yy_buf_pos = &b->yy_ch_buf[1];
  1974. b->yy_eof_status = EOF_NOT_SEEN;
  1975. }
  1976. # line 496 "scan.l"
  1977. int yywrap()
  1978. {
  1979. if ( --num_input_files > 0 )
  1980. {
  1981. set_input_file( *++input_files );
  1982. return ( 0 );
  1983. }
  1984. else
  1985. return ( 1 );
  1986. }
  1987. /* set_input_file - open the given file (if NULL, stdin) for scanning */
  1988. void set_input_file( file )
  1989. char *file;
  1990. {
  1991. if ( file )
  1992. {
  1993. infilename = file;
  1994. yyin = fopen( infilename, "r" );
  1995. if ( yyin == NULL )
  1996. lerrsf( "can't open %s", file );
  1997. }
  1998. else
  1999. {
  2000. yyin = stdin;
  2001. infilename = "<stdin>";
  2002. }
  2003. }