scan.c 109 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761
  1. #line 2 "scan.c"
  2. /* A lexical scanner generated by flex */
  3. /* Scanner skeleton version:
  4. * $Header: /opt/vlysenkov/CVSROOT/arcadia/contrib/tools/flex-old/scan.c,v 1.3 2008-08-04 15:30:40 leo Exp $
  5. */
  6. #define FLEX_SCANNER
  7. #define YY_FLEX_MAJOR_VERSION 2
  8. #define YY_FLEX_MINOR_VERSION 5
  9. #include <stdio.h>
  10. #include <errno.h>
  11. /* cfront 1.2 defines "c_plusplus" instead of "__cplusplus" */
  12. #ifdef c_plusplus
  13. #ifndef __cplusplus
  14. #define __cplusplus
  15. #endif
  16. #endif
  17. #ifdef __cplusplus
  18. #include <stdlib.h>
  19. #ifndef _WIN32
  20. #include <unistd.h>
  21. #endif
  22. /* Use prototypes in function declarations. */
  23. #define YY_USE_PROTOS
  24. /* The "const" storage-class-modifier is valid. */
  25. #define YY_USE_CONST
  26. #else /* ! __cplusplus */
  27. #if __STDC__
  28. #define YY_USE_PROTOS
  29. #define YY_USE_CONST
  30. #endif /* __STDC__ */
  31. #endif /* ! __cplusplus */
  32. #ifdef __TURBOC__
  33. #pragma warn -rch
  34. #pragma warn -use
  35. #include <io.h>
  36. #include <stdlib.h>
  37. #define YY_USE_CONST
  38. #define YY_USE_PROTOS
  39. #endif
  40. #ifdef YY_USE_CONST
  41. #define yyconst const
  42. #else
  43. #define yyconst
  44. #endif
  45. #ifdef YY_USE_PROTOS
  46. #define YY_PROTO(proto) proto
  47. #else
  48. #define YY_PROTO(proto) ()
  49. #endif
  50. /* Returned upon end-of-file. */
  51. #define YY_NULL 0
  52. /* Promotes a possibly negative, possibly signed char to an unsigned
  53. * integer for use as an array index. If the signed char is negative,
  54. * we want to instead treat it as an 8-bit unsigned char, hence the
  55. * double cast.
  56. */
  57. #define YY_SC_TO_UI(c) ((unsigned int) (unsigned char) c)
  58. /* Enter a start condition. This macro really ought to take a parameter,
  59. * but we do it the disgusting crufty way forced on us by the ()-less
  60. * definition of BEGIN.
  61. */
  62. #define BEGIN yy_start = 1 + 2 *
  63. /* Translate the current start state into a value that can be later handed
  64. * to BEGIN to return to the state. The YYSTATE alias is for lex
  65. * compatibility.
  66. */
  67. #define YY_START ((yy_start - 1) / 2)
  68. #define YYSTATE YY_START
  69. /* Action number for EOF rule of a given start state. */
  70. #define YY_STATE_EOF(state) (YY_END_OF_BUFFER + state + 1)
  71. /* Special action meaning "start processing a new file". */
  72. #define YY_NEW_FILE yyrestart( yyin )
  73. #define YY_END_OF_BUFFER_CHAR 0
  74. /* Size of default input buffer. */
  75. #define YY_BUF_SIZE 16384
  76. typedef struct yy_buffer_state *YY_BUFFER_STATE;
  77. extern int yyleng;
  78. extern FILE *yyin, *yyout;
  79. #define EOB_ACT_CONTINUE_SCAN 0
  80. #define EOB_ACT_END_OF_FILE 1
  81. #define EOB_ACT_LAST_MATCH 2
  82. /* The funky do-while in the following #define is used to turn the definition
  83. * int a single C statement (which needs a semi-colon terminator). This
  84. * avoids problems with code like:
  85. *
  86. * if ( condition_holds )
  87. * yyless( 5 );
  88. * else
  89. * do_something_else();
  90. *
  91. * Prior to using the do-while the compiler would get upset at the
  92. * "else" because it interpreted the "if" statement as being all
  93. * done when it reached the ';' after the yyless() call.
  94. */
  95. /* Return all but the first 'n' matched characters back to the input stream. */
  96. #define yyless(n) \
  97. do \
  98. { \
  99. /* Undo effects of setting up yytext. */ \
  100. *yy_cp = yy_hold_char; \
  101. YY_RESTORE_YY_MORE_OFFSET \
  102. yy_c_buf_p = yy_cp = yy_bp + n - YY_MORE_ADJ; \
  103. YY_DO_BEFORE_ACTION; /* set up yytext again */ \
  104. } \
  105. while ( 0 )
  106. #define unput(c) yyunput( c, yytext_ptr )
  107. /* The following is because we cannot portably get our hands on size_t
  108. * (without autoconf's help, which isn't available because we want
  109. * flex-generated scanners to compile on their own).
  110. */
  111. typedef unsigned int yy_size_t;
  112. struct yy_buffer_state
  113. {
  114. FILE *yy_input_file;
  115. char *yy_ch_buf; /* input buffer */
  116. char *yy_buf_pos; /* current position in input buffer */
  117. /* Size of input buffer in bytes, not including room for EOB
  118. * characters.
  119. */
  120. yy_size_t yy_buf_size;
  121. /* Number of characters read into yy_ch_buf, not including EOB
  122. * characters.
  123. */
  124. int yy_n_chars;
  125. /* Whether we "own" the buffer - i.e., we know we created it,
  126. * and can realloc() it to grow it, and should free() it to
  127. * delete it.
  128. */
  129. int yy_is_our_buffer;
  130. /* Whether this is an "interactive" input source; if so, and
  131. * if we're using stdio for input, then we want to use getc()
  132. * instead of fread(), to make sure we stop fetching input after
  133. * each newline.
  134. */
  135. int yy_is_interactive;
  136. /* Whether we're considered to be at the beginning of a line.
  137. * If so, '^' rules will be active on the next match, otherwise
  138. * not.
  139. */
  140. int yy_at_bol;
  141. /* Whether to try to fill the input buffer when we reach the
  142. * end of it.
  143. */
  144. int yy_fill_buffer;
  145. int yy_buffer_status;
  146. #define YY_BUFFER_NEW 0
  147. #define YY_BUFFER_NORMAL 1
  148. /* When an EOF's been seen but there's still some text to process
  149. * then we mark the buffer as YY_EOF_PENDING, to indicate that we
  150. * shouldn't try reading from the input source any more. We might
  151. * still have a bunch of tokens to match, though, because of
  152. * possible backing-up.
  153. *
  154. * When we actually see the EOF, we change the status to "new"
  155. * (via yyrestart()), so that the user can continue scanning by
  156. * just pointing yyin at a new input file.
  157. */
  158. #define YY_BUFFER_EOF_PENDING 2
  159. };
  160. static YY_BUFFER_STATE yy_current_buffer = 0;
  161. /* We provide macros for accessing buffer states in case in the
  162. * future we want to put the buffer states in a more general
  163. * "scanner state".
  164. */
  165. #define YY_CURRENT_BUFFER yy_current_buffer
  166. /* yy_hold_char holds the character lost when yytext is formed. */
  167. static char yy_hold_char;
  168. static int yy_n_chars; /* number of characters read into yy_ch_buf */
  169. int yyleng;
  170. /* Points to current character in buffer. */
  171. static char *yy_c_buf_p = (char *) 0;
  172. static int yy_init = 1; /* whether we need to initialize */
  173. static int yy_start = 0; /* start state number */
  174. /* Flag which is used to allow yywrap()'s to do buffer switches
  175. * instead of setting up a fresh yyin. A bit of a hack ...
  176. */
  177. static int yy_did_buffer_switch_on_eof;
  178. void yyrestart YY_PROTO(( FILE *input_file ));
  179. void yy_switch_to_buffer YY_PROTO(( YY_BUFFER_STATE new_buffer ));
  180. void yy_load_buffer_state YY_PROTO(( void ));
  181. YY_BUFFER_STATE yy_create_buffer YY_PROTO(( FILE *file, int size ));
  182. void yy_delete_buffer YY_PROTO(( YY_BUFFER_STATE b ));
  183. void yy_init_buffer YY_PROTO(( YY_BUFFER_STATE b, FILE *file ));
  184. void yy_flush_buffer YY_PROTO(( YY_BUFFER_STATE b ));
  185. #define YY_FLUSH_BUFFER yy_flush_buffer( yy_current_buffer )
  186. YY_BUFFER_STATE yy_scan_buffer YY_PROTO(( char *base, yy_size_t size ));
  187. YY_BUFFER_STATE yy_scan_string YY_PROTO(( yyconst char *yy_str ));
  188. YY_BUFFER_STATE yy_scan_bytes YY_PROTO(( yyconst char *bytes, int len ));
  189. static void *yy_flex_alloc YY_PROTO(( yy_size_t ));
  190. static void *yy_flex_realloc YY_PROTO(( void *, yy_size_t ));
  191. static void yy_flex_free YY_PROTO(( void * ));
  192. #define yy_new_buffer yy_create_buffer
  193. #define yy_set_interactive(is_interactive) \
  194. { \
  195. if ( ! yy_current_buffer ) \
  196. yy_current_buffer = yy_create_buffer( yyin, YY_BUF_SIZE ); \
  197. yy_current_buffer->yy_is_interactive = is_interactive; \
  198. }
  199. #define yy_set_bol(at_bol) \
  200. { \
  201. if ( ! yy_current_buffer ) \
  202. yy_current_buffer = yy_create_buffer( yyin, YY_BUF_SIZE ); \
  203. yy_current_buffer->yy_at_bol = at_bol; \
  204. }
  205. #define YY_AT_BOL() (yy_current_buffer->yy_at_bol)
  206. typedef unsigned char YY_CHAR;
  207. FILE *yyin = (FILE *) 0, *yyout = (FILE *) 0;
  208. typedef int yy_state_type;
  209. extern char *yytext;
  210. #define yytext_ptr yytext
  211. static yy_state_type yy_get_previous_state YY_PROTO(( void ));
  212. static yy_state_type yy_try_NUL_trans YY_PROTO(( yy_state_type current_state ));
  213. static int yy_get_next_buffer YY_PROTO(( void ));
  214. static void yy_fatal_error YY_PROTO(( yyconst char msg[] ));
  215. /* Done after the current pattern has been matched and before the
  216. * corresponding action - sets up yytext.
  217. */
  218. #define YY_DO_BEFORE_ACTION \
  219. yytext_ptr = yy_bp; \
  220. yyleng = (int) (yy_cp - yy_bp); \
  221. yy_hold_char = *yy_cp; \
  222. *yy_cp = '\0'; \
  223. yy_c_buf_p = yy_cp;
  224. #define YY_NUM_RULES 165
  225. #define YY_END_OF_BUFFER 166
  226. static yyconst short int yy_accept[769] =
  227. { 0,
  228. 0, 0, 0, 0, 87, 87, 163, 163, 0, 0,
  229. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  230. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  231. 0, 0, 0, 0, 0, 0, 0, 0, 166, 164,
  232. 7, 18, 164, 16, 1, 17, 164, 164, 164, 164,
  233. 15, 108, 100, 101, 108, 93, 108, 107, 108, 108,
  234. 108, 107, 99, 89, 108, 108, 91, 92, 87, 88,
  235. 87, 86, 85, 86, 86, 163, 163, 28, 29, 28,
  236. 28, 28, 28, 28, 28, 31, 30, 32, 31, 113,
  237. 109, 110, 112, 114, 141, 142, 141, 139, 138, 140,
  238. 115, 117, 115, 116, 115, 120, 120, 120, 120, 122,
  239. 124, 122, 122, 122, 122, 123, 151, 155, 151, 154,
  240. 156, 156, 152, 152, 152, 149, 150, 164, 82, 164,
  241. 21, 22, 21, 20, 157, 159, 157, 160, 161, 147,
  242. 147, 148, 147, 147, 147, 147, 147, 147, 147, 81,
  243. 34, 33, 81, 81, 81, 81, 35, 81, 81, 81,
  244. 81, 81, 81, 81, 81, 81, 81, 81, 81, 81,
  245. 81, 81, 81, 81, 81, 81, 26, 23, 26, 24,
  246. 7, 18, 0, 16, 1, 17, 0, 0, 0, 14,
  247. 8, 0, 0, 0, 0, 4, 5, 0, 2, 15,
  248. 100, 101, 0, 0, 0, 95, 0, 0, 105, 105,
  249. 0, 162, 162, 162, 94, 0, 99, 89, 0, 0,
  250. 0, 91, 92, 104, 90, 0, 87, 88, 86, 85,
  251. 85, 83, 84, 163, 163, 28, 29, 28, 28, 28,
  252. 28, 31, 30, 32, 111, 112, 142, 138, 117, 0,
  253. 118, 119, 124, 121, 151, 155, 0, 153, 0, 144,
  254. 152, 152, 152, 0, 82, 0, 21, 22, 21, 19,
  255. 157, 159, 158, 147, 147, 147, 148, 143, 147, 147,
  256. 147, 34, 33, 0, 80, 0, 0, 81, 81, 81,
  257. 81, 81, 81, 81, 81, 81, 81, 81, 81, 81,
  258. 81, 81, 81, 36, 81, 81, 81, 81, 81, 81,
  259. 81, 81, 81, 81, 0, 25, 24, 0, 14, 8,
  260. 0, 12, 0, 0, 0, 0, 0, 4, 5, 0,
  261. 6, 0, 96, 0, 97, 0, 0, 105, 105, 0,
  262. 105, 105, 105, 162, 162, 0, 106, 90, 98, 0,
  263. 104, 0, 83, 84, 28, 28, 28, 27, 28, 0,
  264. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  265. 0, 152, 152, 143, 143, 147, 147, 0, 0, 81,
  266. 81, 81, 81, 81, 44, 81, 81, 81, 49, 81,
  267. 81, 81, 81, 81, 81, 81, 81, 81, 81, 81,
  268. 81, 81, 81, 81, 81, 81, 81, 81, 0, 81,
  269. 81, 81, 81, 0, 0, 0, 12, 0, 0, 0,
  270. 0, 0, 0, 4, 5, 0, 105, 105, 105, 105,
  271. 105, 105, 162, 0, 0, 28, 28, 0, 0, 0,
  272. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  273. 152, 152, 147, 147, 37, 38, 81, 81, 81, 81,
  274. 81, 81, 81, 81, 50, 51, 81, 81, 81, 55,
  275. 81, 81, 81, 81, 81, 81, 60, 81, 81, 81,
  276. 81, 81, 81, 67, 0, 0, 0, 81, 81, 81,
  277. 81, 0, 13, 0, 0, 0, 0, 0, 0, 105,
  278. 105, 105, 105, 105, 105, 0, 0, 28, 28, 137,
  279. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  280. 0, 0, 152, 152, 147, 147, 39, 81, 41, 81,
  281. 43, 81, 81, 81, 47, 81, 52, 81, 81, 81,
  282. 81, 81, 81, 81, 81, 81, 62, 81, 81, 65,
  283. 81, 0, 0, 0, 0, 81, 81, 81, 81, 3,
  284. 0, 0, 0, 0, 105, 105, 105, 0, 0, 28,
  285. 28, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  286. 0, 0, 0, 145, 146, 145, 146, 81, 42, 81,
  287. 81, 81, 81, 81, 81, 81, 81, 81, 81, 81,
  288. 81, 78, 61, 81, 64, 81, 0, 0, 0, 0,
  289. 81, 81, 69, 70, 0, 10, 0, 11, 0, 103,
  290. 0, 102, 0, 0, 0, 0, 0, 0, 0, 0,
  291. 0, 0, 0, 0, 81, 81, 81, 45, 81, 48,
  292. 81, 81, 81, 81, 77, 81, 59, 63, 66, 0,
  293. 0, 0, 0, 79, 81, 0, 102, 0, 0, 0,
  294. 0, 0, 0, 0, 0, 0, 0, 0, 0, 81,
  295. 81, 81, 46, 81, 81, 56, 81, 81, 0, 0,
  296. 0, 0, 68, 0, 9, 0, 125, 126, 127, 128,
  297. 129, 130, 131, 132, 133, 134, 135, 0, 81, 81,
  298. 81, 81, 81, 81, 81, 0, 0, 0, 0, 0,
  299. 136, 81, 81, 81, 81, 54, 81, 81, 0, 0,
  300. 0, 0, 0, 0, 81, 81, 81, 53, 81, 58,
  301. 0, 0, 0, 0, 0, 0, 81, 81, 81, 81,
  302. 72, 0, 0, 0, 0, 73, 81, 81, 81, 81,
  303. 71, 0, 75, 0, 81, 81, 81, 74, 76, 81,
  304. 81, 81, 81, 81, 81, 57, 40, 0
  305. } ;
  306. static yyconst int yy_ec[256] =
  307. { 0,
  308. 1, 1, 1, 1, 1, 1, 1, 1, 2, 3,
  309. 1, 1, 4, 1, 1, 1, 1, 1, 1, 1,
  310. 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
  311. 1, 2, 1, 5, 6, 7, 8, 1, 9, 10,
  312. 10, 11, 12, 13, 14, 10, 15, 16, 16, 16,
  313. 16, 16, 16, 16, 17, 18, 19, 20, 1, 21,
  314. 22, 23, 10, 1, 31, 32, 33, 34, 35, 36,
  315. 37, 38, 39, 40, 41, 42, 43, 44, 45, 46,
  316. 47, 48, 49, 50, 51, 52, 53, 54, 55, 47,
  317. 26, 27, 28, 29, 30, 1, 31, 32, 33, 34,
  318. 35, 36, 37, 38, 39, 40, 41, 42, 43, 44,
  319. 45, 46, 47, 48, 49, 50, 51, 52, 53, 54,
  320. 55, 47, 56, 57, 58, 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, 1, 1, 1, 1, 1,
  332. 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
  333. 1, 1, 1, 1, 1
  334. } ;
  335. static yyconst int yy_meta[59] =
  336. { 0,
  337. 1, 1, 2, 1, 3, 1, 1, 1, 4, 1,
  338. 5, 6, 1, 7, 4, 8, 8, 8, 8, 1,
  339. 1, 1, 1, 9, 10, 1, 11, 12, 1, 13,
  340. 14, 14, 14, 14, 14, 14, 15, 15, 15, 15,
  341. 15, 15, 15, 15, 15, 15, 15, 15, 15, 15,
  342. 15, 15, 15, 15, 15, 4, 1, 16
  343. } ;
  344. static yyconst short int yy_base[858] =
  345. { 0,
  346. 0, 58, 115, 172, 120, 129, 2712, 2711, 230, 2705,
  347. 136, 141, 288, 0, 2683, 2682, 144, 151, 185, 191,
  348. 178, 188, 344, 347, 375, 0, 125, 131, 147, 216,
  349. 431, 434, 461, 0, 519, 0, 205, 349, 2710, 2716,
  350. 353, 2716, 2706, 0, 360, 2716, 2705, 144, 570, 2696,
  351. 0, 2716, 577, 2716, 2703, 2716, 438, 2716, 2684, 126,
  352. 149, 427, 591, 2716, 2701, 141, 2682, 2716, 0, 2716,
  353. 2699, 0, 2699, 2697, 155, 2696, 2716, 0, 2716, 2695,
  354. 2716, 0, 2662, 2641, 2637, 0, 2692, 2716, 2690, 2716,
  355. 2716, 2663, 0, 2716, 2716, 2716, 2688, 2716, 431, 2716,
  356. 2716, 2716, 2687, 2716, 567, 2716, 2669, 571, 164, 2716,
  357. 2716, 2685, 0, 2667, 573, 2716, 0, 2716, 2683, 2716,
  358. 573, 2674, 0, 2649, 2628, 2716, 2716, 222, 2716, 356,
  359. 448, 2716, 450, 2667, 0, 2716, 2678, 2716, 0, 0,
  360. 198, 2716, 2677, 2621, 2716, 2667, 0, 2642, 2621, 2716,
  361. 2673, 2716, 2671, 2668, 2640, 2639, 2716, 544, 2639, 579,
  362. 2634, 2635, 318, 0, 2623, 2631, 424, 562, 2614, 587,
  363. 2629, 2613, 2618, 2626, 2629, 2604, 2716, 2716, 2653, 612,
  364. 634, 2716, 2654, 0, 637, 2716, 2653, 600, 2616, 0,
  365. 0, 641, 647, 651, 669, 0, 0, 453, 2716, 0,
  366. 672, 2716, 2651, 2597, 605, 2716, 2649, 2616, 620, 657,
  367. 645, 2716, 662, 0, 2716, 2592, 688, 2716, 2646, 2592,
  368. 2636, 2625, 2716, 0, 2716, 2610, 0, 2716, 0, 0,
  369. 2642, 0, 0, 2640, 2716, 0, 2716, 0, 2602, 2598,
  370. 745, 0, 2638, 2716, 2716, 0, 2716, 688, 2716, 773,
  371. 2716, 2716, 2716, 2716, 0, 2716, 673, 2716, 0, 2716,
  372. 0, 2599, 2595, 690, 2716, 698, 707, 2716, 709, 2716,
  373. 0, 2716, 2716, 0, 596, 2579, 2716, 827, 0, 2596,
  374. 2592, 2632, 2716, 2628, 2716, 2593, 2592, 0, 642, 2582,
  375. 563, 2617, 2579, 620, 2578, 2577, 2583, 669, 2570, 2584,
  376. 2572, 0, 2569, 2716, 2570, 2571, 2579, 2582, 685, 125,
  377. 2570, 2567, 2566, 688, 2608, 2716, 716, 2568, 0, 0,
  378. 720, 2716, 2608, 884, 2562, 2559, 2569, 0, 0, 723,
  379. 2716, 739, 2716, 805, 2716, 808, 2562, 787, 869, 876,
  380. 930, 881, 973, 800, 0, 2548, 2716, 2716, 2716, 2570,
  381. 0, 2559, 0, 0, 2568, 2557, 0, 2716, 0, 1009,
  382. 2581, 678, 870, 871, 874, 879, 913, 992, 974, 1013,
  383. 885, 2565, 2554, 0, 1067, 2563, 2552, 2546, 2545, 2557,
  384. 2562, 2561, 2550, 2557, 0, 2554, 2537, 2556, 0, 2536,
  385. 2543, 2533, 2548, 2568, 2537, 2549, 2544, 2542, 2541, 2532,
  386. 2539, 2540, 2538, 2539, 578, 2520, 2538, 2525, 860, 2526,
  387. 2528, 2521, 2517, 2529, 817, 1044, 2716, 822, 1095, 914,
  388. 2532, 2523, 2517, 0, 0, 2524, 1102, 1025, 1142, 2539,
  389. 1028, 1163, 2716, 2513, 2521, 2523, 2507, 0, 2526, 1058,
  390. 891, 1014, 1019, 894, 1038, 1080, 1072, 1086, 1083, 1081,
  391. 2520, 2504, 2518, 2502, 2716, 2716, 2505, 2493, 2492, 2495,
  392. 2507, 1148, 2507, 2492, 0, 0, 2492, 2493, 2507, 0,
  393. 2525, 2490, 2498, 2522, 2485, 2495, 0, 2500, 2491, 2487,
  394. 2479, 2479, 2483, 0, 875, 2494, 2481, 2494, 2480, 2475,
  395. 2491, 2519, 2716, 920, 999, 2465, 2474, 2468, 2494, 2496,
  396. 1105, 1184, 1081, 902, 969, 2479, 2491, 2463, 2477, 2716,
  397. 165, 1090, 1144, 1143, 1147, 1163, 1095, 1145, 1037, 1085,
  398. 1150, 1173, 2461, 2475, 2459, 2473, 0, 2458, 0, 2460,
  399. 0, 1165, 2454, 2469, 0, 2461, 0, 2471, 2410, 2414,
  400. 2434, 2400, 2393, 2405, 2385, 2382, 0, 2383, 2335, 0,
  401. 2335, 2330, 2326, 2309, 2278, 2259, 2269, 2268, 2256, 2297,
  402. 1046, 2238, 2242, 2253, 1179, 1142, 1145, 2247, 2246, 0,
  403. 0, 1191, 1192, 1172, 1201, 1202, 1204, 1205, 1206, 1207,
  404. 1209, 1210, 1208, 0, 0, 0, 0, 2254, 0, 2221,
  405. 2229, 2218, 2208, 2200, 2209, 2198, 2195, 2165, 2168, 2149,
  406. 2132, 0, 0, 2129, 0, 2139, 2143, 2134, 2124, 2137,
  407. 2117, 2116, 0, 0, 1228, 2716, 1232, 2716, 2111, 2716,
  408. 2117, 2716, 2115, 2114, 2108, 2107, 2106, 2103, 2102, 2098,
  409. 2095, 2063, 2047, 1213, 2012, 1986, 1975, 0, 1954, 0,
  410. 1947, 1950, 1941, 1945, 0, 1942, 0, 0, 0, 1938,
  411. 1940, 1934, 1905, 0, 1872, 1234, 2716, 1888, 1882, 1881,
  412. 1864, 1848, 1832, 1828, 1827, 1826, 1823, 1806, 1809, 1784,
  413. 1787, 1772, 0, 1781, 1786, 0, 1766, 1767, 1759, 1744,
  414. 1213, 1736, 0, 1236, 2716, 1245, 2716, 2716, 2716, 2716,
  415. 2716, 2716, 2716, 2716, 2716, 2716, 2716, 1750, 1727, 1720,
  416. 1701, 1687, 1670, 1681, 1667, 1679, 1659, 689, 1658, 1671,
  417. 2716, 1657, 1627, 1621, 1635, 0, 1603, 1596, 1595, 1608,
  418. 1602, 1587, 1586, 1583, 1581, 1587, 1555, 0, 1547, 0,
  419. 1527, 1507, 1520, 1503, 1483, 1482, 1485, 1443, 1440, 1228,
  420. 2716, 1225, 1224, 1206, 1210, 2716, 1213, 1202, 1018, 948,
  421. 2716, 945, 2716, 884, 780, 771, 779, 2716, 2716, 689,
  422. 673, 581, 408, 318, 86, 0, 0, 2716, 1263, 1279,
  423. 1295, 1311, 1327, 1343, 1359, 1375, 1391, 1407, 1423, 1439,
  424. 1455, 1471, 1481, 1496, 1505, 1520, 1536, 1545, 1560, 1576,
  425. 1592, 1608, 1624, 1634, 1649, 1659, 1674, 1690, 1706, 1718,
  426. 1728, 1743, 1759, 1775, 1791, 1807, 1817, 1832, 1843, 1236,
  427. 1858, 1874, 1890, 1898, 1905, 1920, 1936, 1952, 1968, 1977,
  428. 1985, 2001, 2017, 2033, 2049, 2065, 2081, 2097, 2113, 2123,
  429. 2138, 2148, 2155, 2170, 2182, 2192, 2207, 2223, 2239, 2255,
  430. 2265, 2280, 2291, 2306, 2322, 2338, 2354, 2364, 2373, 2388,
  431. 2404, 2420, 2429, 2437, 2453, 2469, 2485
  432. } ;
  433. static yyconst short int yy_def[858] =
  434. { 0,
  435. 768, 768, 769, 769, 770, 771, 772, 772, 768, 9,
  436. 773, 773, 768, 13, 774, 774, 775, 775, 776, 776,
  437. 777, 777, 778, 778, 768, 25, 779, 779, 780, 780,
  438. 781, 781, 768, 33, 768, 35, 782, 782, 768, 768,
  439. 768, 768, 768, 783, 768, 768, 768, 768, 784, 768,
  440. 785, 768, 768, 768, 768, 768, 768, 768, 768, 786,
  441. 787, 788, 768, 768, 768, 768, 768, 768, 789, 768,
  442. 789, 790, 791, 790, 790, 792, 768, 793, 768, 793,
  443. 768, 794, 794, 794, 793, 795, 768, 768, 795, 768,
  444. 768, 768, 796, 768, 768, 768, 768, 768, 768, 768,
  445. 768, 768, 768, 768, 787, 768, 768, 787, 797, 768,
  446. 768, 768, 798, 768, 787, 768, 799, 768, 799, 768,
  447. 800, 768, 801, 801, 801, 768, 768, 802, 768, 802,
  448. 803, 768, 803, 768, 804, 768, 804, 768, 805, 806,
  449. 806, 768, 806, 806, 768, 806, 807, 807, 807, 768,
  450. 768, 768, 768, 808, 768, 768, 768, 809, 809, 809,
  451. 809, 809, 809, 809, 809, 809, 809, 810, 809, 809,
  452. 809, 809, 809, 809, 809, 809, 768, 768, 811, 768,
  453. 768, 768, 768, 783, 768, 768, 768, 768, 768, 812,
  454. 813, 768, 768, 768, 768, 814, 815, 816, 768, 785,
  455. 768, 768, 768, 768, 817, 768, 768, 768, 818, 818,
  456. 819, 768, 768, 820, 768, 821, 768, 768, 768, 768,
  457. 768, 768, 768, 822, 768, 768, 823, 768, 824, 825,
  458. 825, 826, 827, 828, 768, 829, 768, 830, 830, 830,
  459. 768, 831, 768, 768, 768, 832, 768, 768, 768, 833,
  460. 768, 768, 768, 768, 834, 768, 835, 768, 835, 768,
  461. 836, 836, 836, 837, 768, 837, 838, 768, 838, 768,
  462. 839, 768, 768, 840, 840, 840, 768, 768, 841, 841,
  463. 841, 768, 768, 842, 768, 768, 768, 843, 843, 843,
  464. 843, 843, 843, 843, 843, 843, 843, 843, 843, 843,
  465. 843, 843, 843, 768, 843, 843, 843, 843, 843, 843,
  466. 843, 843, 843, 843, 844, 768, 768, 768, 845, 846,
  467. 847, 768, 768, 768, 768, 768, 768, 848, 849, 850,
  468. 768, 850, 768, 851, 768, 851, 768, 852, 852, 852,
  469. 768, 852, 852, 768, 853, 854, 768, 768, 768, 768,
  470. 855, 768, 826, 827, 830, 830, 241, 768, 241, 241,
  471. 833, 833, 833, 833, 833, 833, 833, 833, 833, 833,
  472. 833, 836, 836, 278, 278, 841, 841, 768, 768, 843,
  473. 843, 843, 843, 843, 843, 843, 843, 843, 843, 843,
  474. 843, 843, 843, 843, 843, 843, 843, 843, 843, 843,
  475. 843, 843, 843, 843, 843, 843, 843, 843, 768, 843,
  476. 843, 843, 843, 768, 847, 847, 768, 847, 847, 768,
  477. 768, 768, 768, 848, 849, 768, 341, 852, 343, 341,
  478. 852, 343, 768, 768, 768, 830, 830, 360, 768, 833,
  479. 833, 833, 833, 833, 833, 833, 833, 833, 833, 833,
  480. 836, 836, 841, 841, 768, 768, 843, 843, 843, 843,
  481. 843, 843, 843, 843, 843, 843, 843, 843, 843, 843,
  482. 843, 843, 843, 843, 843, 843, 843, 843, 843, 843,
  483. 843, 843, 843, 843, 768, 768, 768, 843, 843, 843,
  484. 843, 768, 768, 847, 847, 768, 768, 768, 768, 427,
  485. 852, 343, 852, 852, 852, 768, 768, 830, 830, 768,
  486. 833, 833, 833, 833, 833, 833, 833, 833, 833, 833,
  487. 833, 833, 836, 836, 841, 841, 843, 843, 843, 843,
  488. 843, 843, 843, 843, 843, 843, 843, 843, 843, 843,
  489. 843, 843, 843, 843, 843, 843, 843, 843, 843, 843,
  490. 843, 768, 768, 768, 768, 843, 843, 843, 843, 768,
  491. 856, 768, 768, 768, 852, 852, 852, 768, 768, 830,
  492. 830, 833, 833, 833, 833, 833, 833, 833, 833, 833,
  493. 833, 833, 833, 836, 836, 841, 841, 843, 843, 843,
  494. 843, 843, 843, 843, 843, 843, 843, 843, 843, 843,
  495. 843, 843, 843, 843, 843, 843, 768, 768, 768, 768,
  496. 843, 843, 843, 843, 856, 768, 856, 768, 768, 768,
  497. 768, 768, 833, 833, 833, 833, 833, 833, 833, 833,
  498. 833, 833, 833, 833, 843, 843, 843, 843, 843, 843,
  499. 843, 843, 843, 843, 843, 843, 843, 843, 843, 768,
  500. 768, 768, 768, 843, 843, 857, 768, 768, 768, 768,
  501. 768, 768, 768, 768, 768, 768, 768, 768, 833, 843,
  502. 843, 843, 843, 843, 843, 843, 843, 843, 768, 768,
  503. 768, 768, 843, 857, 768, 857, 768, 768, 768, 768,
  504. 768, 768, 768, 768, 768, 768, 768, 768, 843, 843,
  505. 843, 843, 843, 843, 843, 768, 768, 768, 768, 768,
  506. 768, 843, 843, 843, 843, 843, 843, 843, 768, 768,
  507. 768, 768, 768, 768, 843, 843, 843, 843, 843, 843,
  508. 768, 768, 768, 768, 768, 768, 843, 843, 843, 843,
  509. 768, 768, 768, 768, 768, 768, 843, 843, 843, 843,
  510. 768, 768, 768, 768, 843, 843, 843, 768, 768, 843,
  511. 843, 843, 843, 843, 843, 843, 843, 0, 768, 768,
  512. 768, 768, 768, 768, 768, 768, 768, 768, 768, 768,
  513. 768, 768, 768, 768, 768, 768, 768, 768, 768, 768,
  514. 768, 768, 768, 768, 768, 768, 768, 768, 768, 768,
  515. 768, 768, 768, 768, 768, 768, 768, 768, 768, 768,
  516. 768, 768, 768, 768, 768, 768, 768, 768, 768, 768,
  517. 768, 768, 768, 768, 768, 768, 768, 768, 768, 768,
  518. 768, 768, 768, 768, 768, 768, 768, 768, 768, 768,
  519. 768, 768, 768, 768, 768, 768, 768, 768, 768, 768,
  520. 768, 768, 768, 768, 768, 768, 768
  521. } ;
  522. static yyconst short int yy_nxt[2775] =
  523. { 0,
  524. 40, 41, 42, 43, 40, 40, 40, 40, 40, 40,
  525. 40, 40, 40, 40, 40, 40, 40, 40, 40, 40,
  526. 40, 40, 40, 44, 44, 40, 40, 40, 40, 44,
  527. 44, 44, 44, 44, 44, 44, 44, 44, 44, 44,
  528. 44, 44, 44, 44, 44, 44, 44, 44, 44, 44,
  529. 44, 44, 44, 44, 44, 40, 40, 40, 40, 45,
  530. 46, 47, 40, 48, 40, 49, 40, 40, 40, 40,
  531. 40, 40, 50, 40, 40, 40, 40, 40, 40, 40,
  532. 40, 51, 51, 40, 40, 40, 40, 51, 51, 51,
  533. 51, 51, 51, 51, 51, 51, 51, 51, 51, 51,
  534. 51, 51, 51, 51, 51, 51, 51, 51, 51, 51,
  535. 51, 51, 51, 40, 40, 40, 53, 54, 55, 56,
  536. 767, 57, 70, 71, 58, 58, 58, 129, 130, 58,
  537. 73, 70, 74, 129, 130, 59, 75, 87, 88, 89,
  538. 60, 61, 87, 88, 89, 188, 96, 97, 224, 132,
  539. 133, 210, 211, 96, 97, 404, 98, 134, 405, 99,
  540. 99, 99, 99, 98, 213, 213, 99, 99, 99, 99,
  541. 62, 58, 58, 63, 64, 65, 56, 252, 57, 66,
  542. 40, 58, 58, 58, 439, 189, 58, 102, 103, 104,
  543. 40, 252, 67, 102, 103, 104, 225, 60, 61, 275,
  544. 68, 100, 214, 107, 108, 276, 109, 178, 100, 179,
  545. 232, 105, 233, 107, 108, 572, 109, 105, 132, 133,
  546. 180, 180, 180, 180, 265, 266, 134, 62, 58, 58,
  547. 78, 78, 79, 80, 78, 78, 78, 78, 78, 78,
  548. 81, 78, 78, 78, 78, 78, 78, 78, 78, 78,
  549. 78, 78, 78, 82, 82, 78, 78, 78, 78, 82,
  550. 82, 82, 82, 82, 82, 82, 82, 82, 82, 82,
  551. 82, 82, 82, 82, 82, 82, 82, 83, 82, 82,
  552. 82, 82, 82, 82, 84, 78, 78, 78, 90, 90,
  553. 40, 90, 90, 90, 90, 90, 90, 90, 91, 90,
  554. 91, 90, 90, 90, 90, 90, 90, 90, 90, 90,
  555. 92, 93, 93, 90, 90, 90, 90, 93, 93, 93,
  556. 93, 93, 93, 93, 93, 93, 93, 93, 93, 93,
  557. 93, 93, 93, 93, 93, 93, 93, 93, 93, 93,
  558. 93, 93, 93, 90, 90, 90, 111, 112, 296, 111,
  559. 112, 178, 766, 179, 181, 182, 183, 113, 265, 266,
  560. 113, 185, 186, 187, 180, 180, 180, 180, 297, 114,
  561. 115, 116, 114, 115, 116, 117, 117, 118, 119, 120,
  562. 117, 117, 117, 121, 117, 117, 117, 117, 117, 122,
  563. 117, 117, 117, 117, 117, 117, 117, 117, 123, 123,
  564. 117, 117, 117, 117, 123, 123, 123, 123, 123, 123,
  565. 123, 123, 123, 123, 123, 123, 123, 123, 123, 123,
  566. 123, 123, 124, 123, 123, 123, 123, 123, 123, 125,
  567. 126, 117, 127, 136, 137, 138, 136, 137, 138, 206,
  568. 206, 207, 215, 215, 215, 215, 248, 248, 248, 248,
  569. 268, 269, 268, 269, 300, 331, 332, 139, 301, 765,
  570. 139, 140, 141, 142, 143, 140, 140, 140, 144, 140,
  571. 140, 145, 140, 140, 140, 146, 140, 140, 140, 140,
  572. 140, 140, 140, 140, 147, 147, 140, 140, 140, 140,
  573. 147, 147, 147, 147, 147, 147, 147, 147, 147, 147,
  574. 147, 147, 147, 147, 147, 147, 147, 147, 148, 147,
  575. 147, 147, 147, 147, 147, 149, 140, 140, 140, 150,
  576. 151, 152, 153, 154, 150, 150, 150, 150, 150, 150,
  577. 150, 150, 150, 150, 150, 155, 156, 150, 150, 150,
  578. 157, 150, 150, 150, 150, 150, 150, 150, 150, 158,
  579. 159, 160, 161, 162, 163, 164, 164, 165, 164, 164,
  580. 166, 167, 168, 169, 170, 164, 171, 172, 164, 173,
  581. 174, 175, 164, 176, 150, 150, 150, 191, 201, 202,
  582. 203, 258, 213, 213, 204, 289, 213, 213, 213, 213,
  583. 292, 290, 217, 218, 219, 383, 303, 275, 220, 259,
  584. 192, 188, 193, 276, 193, 221, 304, 335, 336, 293,
  585. 193, 222, 384, 193, 194, 195, 480, 193, 196, 223,
  586. 214, 306, 481, 197, 214, 198, 214, 317, 317, 317,
  587. 317, 307, 764, 205, 308, 181, 182, 183, 185, 186,
  588. 187, 189, 321, 322, 323, 339, 340, 205, 321, 322,
  589. 323, 387, 321, 322, 323, 388, 324, 324, 324, 324,
  590. 342, 342, 324, 324, 324, 324, 324, 324, 324, 324,
  591. 321, 322, 323, 201, 202, 203, 341, 344, 344, 204,
  592. 380, 258, 339, 340, 324, 324, 324, 324, 325, 217,
  593. 218, 219, 265, 266, 381, 220, 326, 439, 343, 259,
  594. 265, 266, 221, 248, 248, 248, 248, 673, 222, 268,
  595. 269, 268, 269, 327, 392, 402, 223, 409, 393, 440,
  596. 410, 416, 417, 418, 403, 331, 332, 763, 205, 411,
  597. 412, 317, 317, 317, 317, 419, 419, 419, 419, 721,
  598. 413, 331, 332, 722, 205, 357, 357, 358, 359, 357,
  599. 357, 357, 357, 357, 357, 360, 357, 357, 357, 357,
  600. 357, 357, 357, 357, 357, 357, 357, 357, 360, 360,
  601. 357, 357, 357, 357, 360, 360, 360, 360, 360, 360,
  602. 360, 360, 360, 360, 360, 360, 360, 360, 360, 360,
  603. 360, 360, 360, 360, 360, 360, 360, 360, 360, 360,
  604. 357, 357, 357, 362, 363, 364, 365, 335, 336, 366,
  605. 335, 336, 339, 340, 367, 212, 212, 762, 368, 493,
  606. 494, 369, 761, 370, 417, 494, 371, 374, 374, 760,
  607. 374, 374, 374, 374, 374, 374, 374, 375, 374, 374,
  608. 374, 374, 374, 374, 374, 374, 374, 374, 374, 374,
  609. 375, 375, 374, 374, 374, 374, 375, 375, 375, 375,
  610. 375, 375, 375, 375, 375, 375, 375, 375, 375, 375,
  611. 375, 375, 375, 375, 375, 375, 375, 375, 375, 375,
  612. 375, 375, 374, 374, 374, 420, 322, 323, 427, 439,
  613. 439, 428, 428, 439, 339, 340, 431, 431, 439, 324,
  614. 324, 324, 324, 338, 439, 485, 339, 340, 486, 487,
  615. 439, 441, 443, 439, 442, 420, 322, 323, 450, 552,
  616. 759, 513, 493, 494, 516, 553, 444, 339, 340, 429,
  617. 338, 338, 439, 338, 338, 338, 338, 338, 338, 338,
  618. 338, 338, 338, 338, 338, 338, 338, 338, 338, 338,
  619. 338, 338, 338, 430, 430, 339, 340, 445, 338, 338,
  620. 430, 430, 430, 430, 430, 430, 430, 430, 430, 430,
  621. 430, 430, 430, 430, 430, 430, 430, 430, 430, 430,
  622. 430, 430, 430, 430, 430, 338, 338, 338, 432, 432,
  623. 432, 432, 758, 439, 339, 340, 432, 757, 339, 340,
  624. 495, 417, 418, 432, 432, 432, 432, 432, 432, 360,
  625. 360, 439, 438, 360, 360, 360, 360, 360, 360, 448,
  626. 360, 360, 360, 360, 360, 360, 360, 360, 360, 360,
  627. 360, 360, 439, 439, 360, 360, 360, 360, 439, 446,
  628. 501, 501, 447, 504, 504, 416, 417, 418, 616, 617,
  629. 339, 340, 638, 339, 340, 515, 439, 439, 449, 419,
  630. 419, 419, 419, 514, 360, 360, 360, 375, 375, 580,
  631. 375, 375, 375, 375, 375, 375, 375, 439, 375, 375,
  632. 375, 375, 375, 375, 375, 375, 375, 375, 375, 375,
  633. 517, 439, 375, 375, 375, 375, 495, 417, 418, 439,
  634. 439, 511, 439, 512, 439, 439, 339, 340, 209, 439,
  635. 419, 419, 419, 419, 439, 519, 520, 581, 518, 522,
  636. 566, 566, 375, 375, 375, 500, 500, 573, 521, 578,
  637. 339, 340, 500, 500, 500, 500, 500, 500, 500, 500,
  638. 500, 500, 500, 500, 500, 500, 500, 500, 500, 500,
  639. 500, 500, 500, 500, 500, 500, 500, 502, 502, 502,
  640. 502, 532, 439, 439, 439, 502, 439, 339, 340, 439,
  641. 339, 340, 502, 502, 502, 502, 502, 502, 505, 505,
  642. 505, 505, 439, 533, 582, 576, 505, 574, 579, 534,
  643. 575, 439, 439, 505, 505, 505, 505, 505, 505, 567,
  644. 567, 567, 567, 590, 339, 340, 338, 567, 577, 583,
  645. 439, 439, 625, 591, 567, 567, 567, 567, 567, 567,
  646. 439, 439, 624, 439, 439, 439, 439, 439, 439, 439,
  647. 616, 617, 439, 623, 616, 617, 685, 686, 685, 686,
  648. 756, 628, 626, 632, 708, 755, 634, 685, 686, 302,
  649. 302, 627, 629, 754, 753, 630, 631, 633, 752, 751,
  650. 750, 709, 669, 52, 52, 52, 52, 52, 52, 52,
  651. 52, 52, 52, 52, 52, 52, 52, 52, 52, 69,
  652. 69, 69, 69, 69, 69, 69, 69, 69, 69, 69,
  653. 69, 69, 69, 69, 69, 72, 72, 72, 72, 72,
  654. 72, 72, 72, 72, 72, 72, 72, 72, 72, 72,
  655. 72, 76, 76, 76, 76, 76, 76, 76, 76, 76,
  656. 76, 76, 76, 76, 76, 76, 76, 86, 86, 86,
  657. 86, 86, 86, 86, 86, 86, 86, 86, 86, 86,
  658. 86, 86, 86, 40, 40, 40, 40, 40, 40, 40,
  659. 40, 40, 40, 40, 40, 40, 40, 40, 40, 95,
  660. 95, 95, 95, 95, 95, 95, 95, 95, 95, 95,
  661. 95, 95, 95, 95, 95, 101, 101, 101, 101, 101,
  662. 101, 101, 101, 101, 101, 101, 101, 101, 101, 101,
  663. 101, 106, 106, 106, 106, 106, 106, 106, 106, 106,
  664. 106, 106, 106, 106, 106, 106, 106, 110, 110, 110,
  665. 110, 110, 110, 110, 110, 110, 110, 110, 110, 110,
  666. 110, 110, 110, 128, 128, 128, 128, 128, 128, 128,
  667. 128, 128, 128, 128, 128, 128, 128, 128, 128, 131,
  668. 131, 131, 131, 131, 131, 131, 131, 131, 131, 131,
  669. 131, 131, 131, 131, 131, 135, 135, 135, 135, 135,
  670. 135, 135, 135, 135, 135, 135, 135, 135, 135, 135,
  671. 135, 177, 177, 177, 177, 177, 177, 177, 177, 177,
  672. 177, 177, 177, 177, 177, 177, 177, 184, 184, 184,
  673. 184, 749, 748, 184, 184, 184, 190, 190, 190, 190,
  674. 190, 190, 190, 190, 190, 190, 190, 190, 190, 190,
  675. 190, 200, 200, 200, 200, 747, 746, 200, 200, 200,
  676. 209, 745, 209, 209, 209, 209, 209, 209, 209, 209,
  677. 209, 209, 209, 209, 209, 209, 212, 744, 212, 212,
  678. 212, 212, 212, 212, 212, 212, 212, 212, 212, 212,
  679. 212, 212, 216, 216, 216, 743, 742, 216, 216, 216,
  680. 227, 741, 227, 227, 227, 227, 227, 227, 227, 227,
  681. 227, 227, 227, 227, 227, 227, 229, 740, 229, 229,
  682. 229, 229, 229, 229, 229, 229, 229, 229, 229, 229,
  683. 229, 229, 230, 739, 230, 230, 230, 230, 230, 230,
  684. 230, 230, 230, 230, 230, 230, 230, 230, 234, 234,
  685. 234, 234, 234, 234, 234, 234, 234, 234, 234, 234,
  686. 234, 234, 234, 234, 236, 738, 236, 236, 737, 236,
  687. 236, 236, 736, 735, 236, 236, 734, 733, 732, 236,
  688. 238, 238, 238, 238, 731, 730, 238, 238, 238, 242,
  689. 729, 242, 242, 242, 242, 242, 242, 242, 242, 242,
  690. 242, 242, 242, 242, 242, 246, 246, 246, 246, 728,
  691. 727, 246, 246, 246, 251, 726, 251, 251, 251, 251,
  692. 251, 251, 251, 251, 251, 251, 251, 251, 251, 251,
  693. 254, 725, 254, 254, 254, 254, 254, 254, 254, 254,
  694. 254, 724, 254, 254, 254, 254, 255, 723, 720, 719,
  695. 255, 255, 255, 255, 718, 717, 255, 255, 257, 716,
  696. 257, 257, 257, 257, 257, 257, 257, 257, 257, 257,
  697. 257, 257, 257, 257, 261, 261, 261, 261, 715, 714,
  698. 261, 261, 261, 264, 264, 264, 264, 264, 264, 264,
  699. 264, 264, 264, 264, 264, 264, 264, 264, 264, 267,
  700. 267, 267, 267, 713, 267, 267, 267, 267, 267, 267,
  701. 267, 267, 267, 267, 267, 271, 712, 711, 271, 271,
  702. 271, 271, 271, 271, 271, 710, 271, 271, 271, 271,
  703. 271, 273, 707, 273, 273, 273, 273, 273, 273, 273,
  704. 273, 273, 273, 273, 273, 273, 273, 274, 706, 274,
  705. 274, 705, 274, 274, 274, 704, 703, 274, 274, 702,
  706. 701, 700, 274, 279, 279, 279, 279, 699, 698, 279,
  707. 279, 279, 284, 697, 284, 284, 284, 284, 284, 284,
  708. 284, 284, 284, 284, 284, 284, 284, 284, 288, 288,
  709. 696, 288, 288, 695, 694, 693, 288, 288, 315, 692,
  710. 315, 315, 315, 315, 315, 315, 315, 315, 315, 315,
  711. 315, 315, 315, 315, 319, 691, 319, 319, 319, 319,
  712. 319, 319, 319, 319, 319, 319, 319, 319, 319, 319,
  713. 320, 690, 320, 320, 320, 320, 320, 320, 320, 320,
  714. 320, 320, 320, 320, 320, 320, 328, 328, 689, 688,
  715. 328, 328, 328, 329, 329, 687, 683, 329, 329, 329,
  716. 330, 330, 330, 330, 330, 330, 330, 330, 330, 330,
  717. 330, 330, 330, 330, 330, 330, 334, 334, 334, 334,
  718. 334, 334, 334, 334, 334, 334, 334, 334, 334, 334,
  719. 334, 334, 338, 682, 338, 338, 338, 338, 338, 338,
  720. 338, 338, 338, 681, 338, 338, 338, 338, 209, 680,
  721. 209, 209, 209, 209, 209, 209, 209, 209, 209, 209,
  722. 209, 209, 209, 209, 345, 345, 679, 678, 677, 676,
  723. 345, 346, 346, 346, 346, 675, 674, 346, 346, 346,
  724. 346, 351, 673, 351, 351, 351, 351, 351, 351, 351,
  725. 351, 351, 351, 351, 351, 351, 351, 227, 672, 227,
  726. 227, 227, 227, 227, 227, 227, 227, 227, 227, 227,
  727. 227, 227, 227, 229, 671, 229, 229, 229, 229, 229,
  728. 229, 229, 229, 229, 229, 229, 229, 229, 229, 230,
  729. 670, 230, 230, 230, 230, 230, 230, 230, 230, 230,
  730. 230, 230, 230, 230, 230, 353, 668, 353, 353, 353,
  731. 353, 353, 353, 353, 353, 353, 353, 353, 353, 353,
  732. 353, 354, 667, 354, 354, 354, 354, 354, 354, 354,
  733. 354, 354, 354, 354, 354, 354, 354, 234, 234, 234,
  734. 234, 234, 234, 234, 234, 234, 234, 234, 234, 234,
  735. 234, 234, 234, 236, 666, 236, 236, 665, 236, 236,
  736. 236, 664, 663, 236, 236, 662, 661, 660, 236, 238,
  737. 238, 238, 238, 659, 658, 238, 238, 238, 242, 657,
  738. 242, 242, 242, 242, 242, 242, 242, 242, 242, 242,
  739. 242, 242, 242, 242, 246, 246, 246, 246, 656, 655,
  740. 246, 246, 246, 361, 361, 654, 653, 652, 361, 361,
  741. 255, 651, 650, 649, 255, 255, 255, 255, 648, 647,
  742. 255, 255, 257, 646, 257, 257, 257, 257, 257, 257,
  743. 257, 257, 257, 257, 257, 257, 257, 257, 261, 261,
  744. 261, 261, 645, 644, 261, 261, 261, 264, 264, 264,
  745. 264, 264, 264, 264, 264, 264, 264, 264, 264, 264,
  746. 264, 264, 264, 267, 267, 267, 267, 643, 267, 267,
  747. 267, 267, 267, 267, 267, 267, 267, 267, 267, 271,
  748. 642, 641, 271, 271, 271, 271, 271, 271, 271, 640,
  749. 271, 271, 271, 271, 271, 274, 639, 274, 274, 638,
  750. 274, 274, 274, 637, 636, 274, 274, 635, 622, 621,
  751. 274, 279, 279, 279, 279, 620, 619, 279, 279, 279,
  752. 284, 618, 284, 284, 284, 284, 284, 284, 284, 284,
  753. 284, 284, 284, 284, 284, 284, 288, 288, 560, 288,
  754. 288, 614, 613, 612, 288, 288, 315, 611, 315, 315,
  755. 315, 315, 315, 315, 315, 315, 315, 315, 315, 315,
  756. 315, 315, 319, 610, 319, 319, 319, 319, 319, 319,
  757. 319, 319, 319, 319, 319, 319, 319, 319, 320, 609,
  758. 320, 320, 320, 320, 320, 320, 320, 320, 320, 320,
  759. 320, 320, 320, 320, 415, 415, 415, 415, 415, 415,
  760. 415, 415, 415, 415, 415, 415, 415, 415, 415, 415,
  761. 424, 424, 424, 424, 608, 607, 424, 424, 424, 425,
  762. 425, 425, 425, 606, 605, 425, 425, 425, 330, 330,
  763. 330, 330, 330, 330, 330, 330, 330, 330, 330, 330,
  764. 330, 330, 330, 330, 334, 334, 334, 334, 334, 334,
  765. 334, 334, 334, 334, 334, 334, 334, 334, 334, 334,
  766. 338, 604, 338, 338, 338, 338, 338, 338, 338, 338,
  767. 338, 603, 338, 338, 338, 338, 433, 433, 602, 601,
  768. 600, 599, 433, 346, 346, 346, 346, 598, 597, 346,
  769. 346, 346, 346, 351, 596, 351, 351, 351, 351, 351,
  770. 351, 351, 351, 351, 351, 351, 351, 351, 351, 615,
  771. 615, 615, 615, 615, 615, 615, 615, 615, 615, 615,
  772. 615, 615, 615, 615, 615, 684, 684, 684, 684, 684,
  773. 684, 684, 684, 684, 684, 684, 684, 684, 684, 684,
  774. 684, 595, 594, 593, 592, 589, 588, 587, 586, 585,
  775. 584, 571, 570, 569, 568, 565, 564, 563, 562, 561,
  776. 560, 559, 558, 557, 556, 555, 554, 551, 550, 549,
  777. 548, 547, 546, 545, 544, 543, 542, 541, 540, 539,
  778. 538, 537, 536, 535, 531, 530, 529, 528, 527, 526,
  779. 525, 524, 523, 510, 509, 508, 507, 506, 503, 499,
  780. 498, 497, 496, 492, 491, 490, 489, 488, 484, 483,
  781. 482, 479, 478, 477, 476, 475, 474, 473, 472, 471,
  782. 470, 469, 468, 467, 466, 465, 464, 463, 462, 461,
  783. 460, 459, 458, 457, 456, 455, 454, 453, 452, 451,
  784. 439, 437, 436, 435, 434, 347, 426, 423, 422, 421,
  785. 322, 414, 316, 408, 407, 406, 401, 400, 399, 398,
  786. 397, 396, 395, 394, 391, 390, 389, 386, 385, 382,
  787. 379, 378, 285, 282, 377, 376, 278, 373, 372, 243,
  788. 356, 355, 235, 231, 352, 350, 349, 348, 218, 347,
  789. 337, 206, 333, 202, 318, 186, 182, 316, 314, 313,
  790. 312, 311, 310, 309, 305, 299, 298, 295, 294, 291,
  791. 287, 286, 285, 283, 282, 281, 280, 260, 278, 277,
  792. 272, 270, 263, 262, 260, 256, 250, 253, 250, 249,
  793. 247, 245, 244, 243, 241, 240, 239, 237, 235, 228,
  794. 231, 228, 226, 218, 208, 202, 199, 186, 182, 768,
  795. 94, 94, 85, 77, 77, 39, 768, 768, 768, 768,
  796. 768, 768, 768, 768, 768, 768, 768, 768, 768, 768,
  797. 768, 768, 768, 768, 768, 768, 768, 768, 768, 768,
  798. 768, 768, 768, 768, 768, 768, 768, 768, 768, 768,
  799. 768, 768, 768, 768, 768, 768, 768, 768, 768, 768,
  800. 768, 768, 768, 768, 768, 768, 768, 768, 768, 768,
  801. 768, 768, 768, 768
  802. } ;
  803. static yyconst short int yy_chk[2775] =
  804. { 0,
  805. 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
  806. 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
  807. 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
  808. 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
  809. 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
  810. 1, 1, 1, 1, 1, 1, 1, 1, 2, 2,
  811. 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
  812. 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
  813. 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
  814. 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
  815. 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
  816. 2, 2, 2, 2, 2, 2, 3, 3, 3, 3,
  817. 765, 3, 5, 5, 3, 3, 3, 27, 27, 3,
  818. 6, 6, 6, 28, 28, 3, 6, 11, 11, 11,
  819. 3, 3, 12, 12, 12, 48, 17, 17, 66, 29,
  820. 29, 60, 60, 18, 18, 310, 17, 29, 310, 17,
  821. 17, 17, 17, 18, 61, 61, 18, 18, 18, 18,
  822. 3, 3, 3, 4, 4, 4, 4, 109, 4, 4,
  823. 21, 4, 4, 4, 511, 48, 4, 19, 19, 19,
  824. 22, 109, 4, 20, 20, 20, 66, 4, 4, 141,
  825. 4, 17, 61, 21, 21, 141, 21, 37, 18, 37,
  826. 75, 19, 75, 22, 22, 511, 22, 20, 30, 30,
  827. 37, 37, 37, 37, 128, 128, 30, 4, 4, 4,
  828. 9, 9, 9, 9, 9, 9, 9, 9, 9, 9,
  829. 9, 9, 9, 9, 9, 9, 9, 9, 9, 9,
  830. 9, 9, 9, 9, 9, 9, 9, 9, 9, 9,
  831. 9, 9, 9, 9, 9, 9, 9, 9, 9, 9,
  832. 9, 9, 9, 9, 9, 9, 9, 9, 9, 9,
  833. 9, 9, 9, 9, 9, 9, 9, 9, 13, 13,
  834. 13, 13, 13, 13, 13, 13, 13, 13, 13, 13,
  835. 13, 13, 13, 13, 13, 13, 13, 13, 13, 13,
  836. 13, 13, 13, 13, 13, 13, 13, 13, 13, 13,
  837. 13, 13, 13, 13, 13, 13, 13, 13, 13, 13,
  838. 13, 13, 13, 13, 13, 13, 13, 13, 13, 13,
  839. 13, 13, 13, 13, 13, 13, 23, 23, 163, 24,
  840. 24, 38, 764, 38, 41, 41, 41, 23, 130, 130,
  841. 24, 45, 45, 45, 38, 38, 38, 38, 163, 23,
  842. 23, 23, 24, 24, 24, 25, 25, 25, 25, 25,
  843. 25, 25, 25, 25, 25, 25, 25, 25, 25, 25,
  844. 25, 25, 25, 25, 25, 25, 25, 25, 25, 25,
  845. 25, 25, 25, 25, 25, 25, 25, 25, 25, 25,
  846. 25, 25, 25, 25, 25, 25, 25, 25, 25, 25,
  847. 25, 25, 25, 25, 25, 25, 25, 25, 25, 25,
  848. 25, 25, 25, 31, 31, 31, 32, 32, 32, 57,
  849. 57, 57, 62, 62, 62, 62, 99, 99, 99, 99,
  850. 131, 131, 133, 133, 167, 198, 198, 31, 167, 763,
  851. 32, 33, 33, 33, 33, 33, 33, 33, 33, 33,
  852. 33, 33, 33, 33, 33, 33, 33, 33, 33, 33,
  853. 33, 33, 33, 33, 33, 33, 33, 33, 33, 33,
  854. 33, 33, 33, 33, 33, 33, 33, 33, 33, 33,
  855. 33, 33, 33, 33, 33, 33, 33, 33, 33, 33,
  856. 33, 33, 33, 33, 33, 33, 33, 33, 33, 35,
  857. 35, 35, 35, 35, 35, 35, 35, 35, 35, 35,
  858. 35, 35, 35, 35, 35, 35, 35, 35, 35, 35,
  859. 35, 35, 35, 35, 35, 35, 35, 35, 35, 35,
  860. 35, 35, 35, 35, 35, 35, 35, 35, 35, 35,
  861. 35, 35, 35, 35, 35, 35, 35, 35, 35, 35,
  862. 35, 35, 35, 35, 35, 35, 35, 49, 53, 53,
  863. 53, 121, 105, 105, 53, 158, 108, 108, 115, 115,
  864. 160, 158, 63, 63, 63, 291, 168, 275, 63, 121,
  865. 49, 188, 49, 275, 49, 63, 168, 205, 205, 160,
  866. 49, 63, 291, 49, 49, 49, 405, 49, 49, 63,
  867. 105, 170, 405, 49, 108, 49, 115, 180, 180, 180,
  868. 180, 170, 762, 53, 170, 181, 181, 181, 185, 185,
  869. 185, 188, 192, 192, 192, 209, 209, 63, 193, 193,
  870. 193, 294, 194, 194, 194, 294, 192, 192, 192, 192,
  871. 211, 211, 193, 193, 193, 193, 194, 194, 194, 194,
  872. 195, 195, 195, 201, 201, 201, 210, 213, 213, 201,
  873. 289, 257, 210, 210, 195, 195, 195, 195, 192, 217,
  874. 217, 217, 264, 264, 289, 217, 194, 362, 211, 257,
  875. 266, 266, 217, 248, 248, 248, 248, 761, 217, 267,
  876. 267, 269, 269, 195, 298, 309, 217, 314, 298, 362,
  877. 314, 321, 321, 321, 309, 330, 330, 760, 201, 314,
  878. 314, 317, 317, 317, 317, 321, 321, 321, 321, 708,
  879. 314, 332, 332, 708, 217, 241, 241, 241, 241, 241,
  880. 241, 241, 241, 241, 241, 241, 241, 241, 241, 241,
  881. 241, 241, 241, 241, 241, 241, 241, 241, 241, 241,
  882. 241, 241, 241, 241, 241, 241, 241, 241, 241, 241,
  883. 241, 241, 241, 241, 241, 241, 241, 241, 241, 241,
  884. 241, 241, 241, 241, 241, 241, 241, 241, 241, 241,
  885. 241, 241, 241, 250, 250, 250, 250, 334, 334, 250,
  886. 336, 336, 338, 338, 250, 344, 344, 757, 250, 415,
  887. 415, 250, 756, 250, 418, 418, 250, 278, 278, 755,
  888. 278, 278, 278, 278, 278, 278, 278, 278, 278, 278,
  889. 278, 278, 278, 278, 278, 278, 278, 278, 278, 278,
  890. 278, 278, 278, 278, 278, 278, 278, 278, 278, 278,
  891. 278, 278, 278, 278, 278, 278, 278, 278, 278, 278,
  892. 278, 278, 278, 278, 278, 278, 278, 278, 278, 278,
  893. 278, 278, 278, 278, 278, 324, 324, 324, 339, 363,
  894. 364, 340, 340, 365, 339, 339, 342, 342, 366, 324,
  895. 324, 324, 324, 340, 371, 409, 342, 342, 409, 409,
  896. 441, 363, 365, 444, 364, 420, 420, 420, 371, 485,
  897. 754, 441, 494, 494, 444, 485, 366, 504, 504, 340,
  898. 341, 341, 367, 341, 341, 341, 341, 341, 341, 341,
  899. 341, 341, 341, 341, 341, 341, 341, 341, 341, 341,
  900. 341, 341, 341, 341, 341, 341, 341, 367, 341, 341,
  901. 341, 341, 341, 341, 341, 341, 341, 341, 341, 341,
  902. 341, 341, 341, 341, 341, 341, 341, 341, 341, 341,
  903. 341, 341, 341, 341, 341, 341, 341, 341, 343, 343,
  904. 343, 343, 752, 369, 505, 505, 343, 750, 343, 343,
  905. 495, 495, 495, 343, 343, 343, 343, 343, 343, 360,
  906. 360, 368, 360, 360, 360, 360, 360, 360, 360, 369,
  907. 360, 360, 360, 360, 360, 360, 360, 360, 360, 360,
  908. 360, 360, 370, 442, 360, 360, 360, 360, 443, 368,
  909. 428, 428, 368, 431, 431, 416, 416, 416, 561, 561,
  910. 428, 428, 749, 431, 431, 443, 519, 445, 370, 416,
  911. 416, 416, 416, 442, 360, 360, 360, 375, 375, 519,
  912. 375, 375, 375, 375, 375, 375, 375, 440, 375, 375,
  913. 375, 375, 375, 375, 375, 375, 375, 375, 375, 375,
  914. 445, 447, 375, 375, 375, 375, 419, 419, 419, 446,
  915. 450, 440, 449, 440, 520, 448, 503, 503, 503, 512,
  916. 419, 419, 419, 419, 517, 447, 448, 520, 446, 450,
  917. 501, 501, 375, 375, 375, 427, 427, 512, 449, 517,
  918. 501, 501, 427, 427, 427, 427, 427, 427, 427, 427,
  919. 427, 427, 427, 427, 427, 427, 427, 427, 427, 427,
  920. 427, 427, 427, 427, 427, 427, 427, 429, 429, 429,
  921. 429, 462, 514, 513, 518, 429, 515, 566, 566, 521,
  922. 567, 567, 429, 429, 429, 429, 429, 429, 432, 432,
  923. 432, 432, 516, 462, 521, 515, 432, 513, 518, 462,
  924. 514, 574, 522, 432, 432, 432, 432, 432, 432, 502,
  925. 502, 502, 502, 532, 565, 565, 565, 502, 516, 522,
  926. 572, 573, 574, 532, 502, 502, 502, 502, 502, 502,
  927. 575, 576, 573, 577, 578, 579, 580, 583, 581, 582,
  928. 615, 615, 634, 572, 617, 617, 656, 656, 684, 684,
  929. 748, 577, 575, 581, 681, 747, 583, 686, 686, 810,
  930. 810, 576, 578, 745, 744, 579, 580, 582, 743, 742,
  931. 740, 681, 634, 769, 769, 769, 769, 769, 769, 769,
  932. 769, 769, 769, 769, 769, 769, 769, 769, 769, 770,
  933. 770, 770, 770, 770, 770, 770, 770, 770, 770, 770,
  934. 770, 770, 770, 770, 770, 771, 771, 771, 771, 771,
  935. 771, 771, 771, 771, 771, 771, 771, 771, 771, 771,
  936. 771, 772, 772, 772, 772, 772, 772, 772, 772, 772,
  937. 772, 772, 772, 772, 772, 772, 772, 773, 773, 773,
  938. 773, 773, 773, 773, 773, 773, 773, 773, 773, 773,
  939. 773, 773, 773, 774, 774, 774, 774, 774, 774, 774,
  940. 774, 774, 774, 774, 774, 774, 774, 774, 774, 775,
  941. 775, 775, 775, 775, 775, 775, 775, 775, 775, 775,
  942. 775, 775, 775, 775, 775, 776, 776, 776, 776, 776,
  943. 776, 776, 776, 776, 776, 776, 776, 776, 776, 776,
  944. 776, 777, 777, 777, 777, 777, 777, 777, 777, 777,
  945. 777, 777, 777, 777, 777, 777, 777, 778, 778, 778,
  946. 778, 778, 778, 778, 778, 778, 778, 778, 778, 778,
  947. 778, 778, 778, 779, 779, 779, 779, 779, 779, 779,
  948. 779, 779, 779, 779, 779, 779, 779, 779, 779, 780,
  949. 780, 780, 780, 780, 780, 780, 780, 780, 780, 780,
  950. 780, 780, 780, 780, 780, 781, 781, 781, 781, 781,
  951. 781, 781, 781, 781, 781, 781, 781, 781, 781, 781,
  952. 781, 782, 782, 782, 782, 782, 782, 782, 782, 782,
  953. 782, 782, 782, 782, 782, 782, 782, 783, 783, 783,
  954. 783, 739, 738, 783, 783, 783, 784, 784, 784, 784,
  955. 784, 784, 784, 784, 784, 784, 784, 784, 784, 784,
  956. 784, 785, 785, 785, 785, 737, 736, 785, 785, 785,
  957. 786, 735, 786, 786, 786, 786, 786, 786, 786, 786,
  958. 786, 786, 786, 786, 786, 786, 787, 734, 787, 787,
  959. 787, 787, 787, 787, 787, 787, 787, 787, 787, 787,
  960. 787, 787, 788, 788, 788, 733, 732, 788, 788, 788,
  961. 789, 731, 789, 789, 789, 789, 789, 789, 789, 789,
  962. 789, 789, 789, 789, 789, 789, 790, 729, 790, 790,
  963. 790, 790, 790, 790, 790, 790, 790, 790, 790, 790,
  964. 790, 790, 791, 727, 791, 791, 791, 791, 791, 791,
  965. 791, 791, 791, 791, 791, 791, 791, 791, 792, 792,
  966. 792, 792, 792, 792, 792, 792, 792, 792, 792, 792,
  967. 792, 792, 792, 792, 793, 726, 793, 793, 725, 793,
  968. 793, 793, 724, 723, 793, 793, 722, 721, 720, 793,
  969. 794, 794, 794, 794, 719, 718, 794, 794, 794, 795,
  970. 717, 795, 795, 795, 795, 795, 795, 795, 795, 795,
  971. 795, 795, 795, 795, 795, 796, 796, 796, 796, 715,
  972. 714, 796, 796, 796, 797, 713, 797, 797, 797, 797,
  973. 797, 797, 797, 797, 797, 797, 797, 797, 797, 797,
  974. 798, 712, 798, 798, 798, 798, 798, 798, 798, 798,
  975. 798, 710, 798, 798, 798, 798, 799, 709, 707, 706,
  976. 799, 799, 799, 799, 705, 704, 799, 799, 800, 703,
  977. 800, 800, 800, 800, 800, 800, 800, 800, 800, 800,
  978. 800, 800, 800, 800, 801, 801, 801, 801, 702, 701,
  979. 801, 801, 801, 802, 802, 802, 802, 802, 802, 802,
  980. 802, 802, 802, 802, 802, 802, 802, 802, 802, 803,
  981. 803, 803, 803, 700, 803, 803, 803, 803, 803, 803,
  982. 803, 803, 803, 803, 803, 804, 699, 698, 804, 804,
  983. 804, 804, 804, 804, 804, 682, 804, 804, 804, 804,
  984. 804, 805, 680, 805, 805, 805, 805, 805, 805, 805,
  985. 805, 805, 805, 805, 805, 805, 805, 806, 679, 806,
  986. 806, 678, 806, 806, 806, 677, 675, 806, 806, 674,
  987. 672, 671, 806, 807, 807, 807, 807, 670, 669, 807,
  988. 807, 807, 808, 668, 808, 808, 808, 808, 808, 808,
  989. 808, 808, 808, 808, 808, 808, 808, 808, 809, 809,
  990. 667, 809, 809, 666, 665, 664, 809, 809, 811, 663,
  991. 811, 811, 811, 811, 811, 811, 811, 811, 811, 811,
  992. 811, 811, 811, 811, 812, 662, 812, 812, 812, 812,
  993. 812, 812, 812, 812, 812, 812, 812, 812, 812, 812,
  994. 813, 661, 813, 813, 813, 813, 813, 813, 813, 813,
  995. 813, 813, 813, 813, 813, 813, 814, 814, 660, 659,
  996. 814, 814, 814, 815, 815, 658, 655, 815, 815, 815,
  997. 816, 816, 816, 816, 816, 816, 816, 816, 816, 816,
  998. 816, 816, 816, 816, 816, 816, 817, 817, 817, 817,
  999. 817, 817, 817, 817, 817, 817, 817, 817, 817, 817,
  1000. 817, 817, 818, 653, 818, 818, 818, 818, 818, 818,
  1001. 818, 818, 818, 652, 818, 818, 818, 818, 819, 651,
  1002. 819, 819, 819, 819, 819, 819, 819, 819, 819, 819,
  1003. 819, 819, 819, 819, 820, 820, 650, 646, 644, 643,
  1004. 820, 821, 821, 821, 821, 642, 641, 821, 821, 821,
  1005. 821, 822, 639, 822, 822, 822, 822, 822, 822, 822,
  1006. 822, 822, 822, 822, 822, 822, 822, 823, 637, 823,
  1007. 823, 823, 823, 823, 823, 823, 823, 823, 823, 823,
  1008. 823, 823, 823, 824, 636, 824, 824, 824, 824, 824,
  1009. 824, 824, 824, 824, 824, 824, 824, 824, 824, 825,
  1010. 635, 825, 825, 825, 825, 825, 825, 825, 825, 825,
  1011. 825, 825, 825, 825, 825, 826, 633, 826, 826, 826,
  1012. 826, 826, 826, 826, 826, 826, 826, 826, 826, 826,
  1013. 826, 827, 632, 827, 827, 827, 827, 827, 827, 827,
  1014. 827, 827, 827, 827, 827, 827, 827, 828, 828, 828,
  1015. 828, 828, 828, 828, 828, 828, 828, 828, 828, 828,
  1016. 828, 828, 828, 829, 631, 829, 829, 630, 829, 829,
  1017. 829, 629, 628, 829, 829, 627, 626, 625, 829, 830,
  1018. 830, 830, 830, 624, 623, 830, 830, 830, 831, 621,
  1019. 831, 831, 831, 831, 831, 831, 831, 831, 831, 831,
  1020. 831, 831, 831, 831, 832, 832, 832, 832, 619, 612,
  1021. 832, 832, 832, 833, 833, 611, 610, 609, 833, 833,
  1022. 834, 608, 607, 606, 834, 834, 834, 834, 604, 601,
  1023. 834, 834, 835, 600, 835, 835, 835, 835, 835, 835,
  1024. 835, 835, 835, 835, 835, 835, 835, 835, 836, 836,
  1025. 836, 836, 599, 598, 836, 836, 836, 837, 837, 837,
  1026. 837, 837, 837, 837, 837, 837, 837, 837, 837, 837,
  1027. 837, 837, 837, 838, 838, 838, 838, 597, 838, 838,
  1028. 838, 838, 838, 838, 838, 838, 838, 838, 838, 839,
  1029. 596, 595, 839, 839, 839, 839, 839, 839, 839, 594,
  1030. 839, 839, 839, 839, 839, 840, 593, 840, 840, 592,
  1031. 840, 840, 840, 591, 590, 840, 840, 588, 569, 568,
  1032. 840, 841, 841, 841, 841, 564, 563, 841, 841, 841,
  1033. 842, 562, 842, 842, 842, 842, 842, 842, 842, 842,
  1034. 842, 842, 842, 842, 842, 842, 843, 843, 560, 843,
  1035. 843, 559, 558, 557, 843, 843, 844, 556, 844, 844,
  1036. 844, 844, 844, 844, 844, 844, 844, 844, 844, 844,
  1037. 844, 844, 845, 555, 845, 845, 845, 845, 845, 845,
  1038. 845, 845, 845, 845, 845, 845, 845, 845, 846, 554,
  1039. 846, 846, 846, 846, 846, 846, 846, 846, 846, 846,
  1040. 846, 846, 846, 846, 847, 847, 847, 847, 847, 847,
  1041. 847, 847, 847, 847, 847, 847, 847, 847, 847, 847,
  1042. 848, 848, 848, 848, 553, 552, 848, 848, 848, 849,
  1043. 849, 849, 849, 551, 549, 849, 849, 849, 850, 850,
  1044. 850, 850, 850, 850, 850, 850, 850, 850, 850, 850,
  1045. 850, 850, 850, 850, 851, 851, 851, 851, 851, 851,
  1046. 851, 851, 851, 851, 851, 851, 851, 851, 851, 851,
  1047. 852, 548, 852, 852, 852, 852, 852, 852, 852, 852,
  1048. 852, 546, 852, 852, 852, 852, 853, 853, 545, 544,
  1049. 543, 542, 853, 854, 854, 854, 854, 541, 540, 854,
  1050. 854, 854, 854, 855, 539, 855, 855, 855, 855, 855,
  1051. 855, 855, 855, 855, 855, 855, 855, 855, 855, 856,
  1052. 856, 856, 856, 856, 856, 856, 856, 856, 856, 856,
  1053. 856, 856, 856, 856, 856, 857, 857, 857, 857, 857,
  1054. 857, 857, 857, 857, 857, 857, 857, 857, 857, 857,
  1055. 857, 538, 536, 534, 533, 530, 528, 526, 525, 524,
  1056. 523, 509, 508, 507, 506, 500, 499, 498, 497, 496,
  1057. 492, 491, 490, 489, 488, 487, 486, 483, 482, 481,
  1058. 480, 479, 478, 476, 475, 474, 473, 472, 471, 469,
  1059. 468, 467, 464, 463, 461, 460, 459, 458, 457, 454,
  1060. 453, 452, 451, 439, 437, 436, 435, 434, 430, 426,
  1061. 423, 422, 421, 414, 413, 412, 411, 410, 408, 407,
  1062. 406, 404, 403, 402, 401, 400, 399, 398, 397, 396,
  1063. 395, 394, 393, 392, 391, 390, 388, 387, 386, 384,
  1064. 383, 382, 381, 380, 379, 378, 377, 376, 373, 372,
  1065. 361, 356, 355, 352, 350, 346, 337, 327, 326, 325,
  1066. 323, 318, 315, 313, 312, 311, 308, 307, 306, 305,
  1067. 303, 301, 300, 299, 297, 296, 295, 293, 292, 290,
  1068. 287, 286, 284, 282, 281, 280, 276, 263, 262, 243,
  1069. 240, 239, 234, 231, 226, 222, 221, 220, 219, 216,
  1070. 208, 207, 204, 203, 189, 187, 183, 179, 176, 175,
  1071. 174, 173, 172, 171, 169, 166, 165, 162, 161, 159,
  1072. 156, 155, 154, 153, 151, 149, 148, 146, 144, 143,
  1073. 137, 134, 125, 124, 122, 119, 114, 112, 107, 103,
  1074. 97, 92, 89, 87, 85, 84, 83, 80, 76, 74,
  1075. 73, 71, 67, 65, 59, 55, 50, 47, 43, 39,
  1076. 16, 15, 10, 8, 7, 768, 768, 768, 768, 768,
  1077. 768, 768, 768, 768, 768, 768, 768, 768, 768, 768,
  1078. 768, 768, 768, 768, 768, 768, 768, 768, 768, 768,
  1079. 768, 768, 768, 768, 768, 768, 768, 768, 768, 768,
  1080. 768, 768, 768, 768, 768, 768, 768, 768, 768, 768,
  1081. 768, 768, 768, 768, 768, 768, 768, 768, 768, 768,
  1082. 768, 768, 768, 768
  1083. } ;
  1084. static yy_state_type yy_last_accepting_state;
  1085. static char *yy_last_accepting_cpos;
  1086. /* The intent behind this definition is that it'll catch
  1087. * any uses of REJECT which flex missed.
  1088. */
  1089. #define REJECT reject_used_but_not_detected
  1090. #define yymore() yymore_used_but_not_detected
  1091. #define YY_MORE_ADJ 0
  1092. #define YY_RESTORE_YY_MORE_OFFSET
  1093. char *yytext;
  1094. #line 1 "scan.l"
  1095. #define INITIAL 0
  1096. /* scan.l - scanner for flex input */
  1097. #line 4 "scan.l"
  1098. /*-
  1099. * Copyright (c) 1990 The Regents of the University of California.
  1100. * All rights reserved.
  1101. *
  1102. * This code is derived from software contributed to Berkeley by
  1103. * Vern Paxson.
  1104. *
  1105. * The United States Government has rights in this work pursuant
  1106. * to contract no. DE-AC03-76SF00098 between the United States
  1107. * Department of Energy and the University of California.
  1108. *
  1109. * Redistribution and use in source and binary forms with or without
  1110. * modification are permitted provided that: (1) source distributions retain
  1111. * this entire copyright notice and comment, and (2) distributions including
  1112. * binaries display the following acknowledgement: ``This product includes
  1113. * software developed by the University of California, Berkeley and its
  1114. * contributors'' in the documentation or other materials provided with the
  1115. * distribution and in all advertising materials mentioning features or use
  1116. * of this software. Neither the name of the University nor the names of
  1117. * its contributors may be used to endorse or promote products derived from
  1118. * this software without specific prior written permission.
  1119. * THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR IMPLIED
  1120. * WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF
  1121. * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
  1122. */
  1123. /* $Header: /opt/vlysenkov/CVSROOT/arcadia/contrib/tools/flex-old/scan.c,v 1.3 2008-08-04 15:30:40 leo Exp $ */
  1124. #include "flexdef.h"
  1125. #include "parse.h"
  1126. #define ACTION_ECHO add_action( yytext )
  1127. #define ACTION_IFDEF(def, should_define) \
  1128. { \
  1129. if ( should_define ) \
  1130. action_define( def, 1 ); \
  1131. }
  1132. #define MARK_END_OF_PROLOG mark_prolog();
  1133. #define YY_DECL \
  1134. int flexscan()
  1135. #define RETURNCHAR \
  1136. yylval = (unsigned char) yytext[0]; \
  1137. return CHAR;
  1138. #define RETURNNAME \
  1139. if(strlen(yytext) < MAXLINE) \
  1140. { \
  1141. strcpy( nmstr, yytext ); \
  1142. } \
  1143. else \
  1144. { \
  1145. fputs("Input line too long!\n", stderr); \
  1146. exit(1); \
  1147. } /* end of else */ \
  1148. return NAME;
  1149. #define PUT_BACK_STRING(str, start) \
  1150. for ( i = strlen( str ) - 1; i >= start; --i ) \
  1151. unput((str)[i])
  1152. #define CHECK_REJECT(str) \
  1153. if ( all_upper( str ) ) \
  1154. reject = true;
  1155. #define CHECK_YYMORE(str) \
  1156. if ( all_lower( str ) ) \
  1157. yymore_used = true;
  1158. #define YY_STACK_USED 1
  1159. #define YY_NO_TOP_STATE 1
  1160. #define SECT2 1
  1161. #define SECT2PROLOG 2
  1162. #define SECT3 3
  1163. #define CODEBLOCK 4
  1164. #define PICKUPDEF 5
  1165. #define SC 6
  1166. #define CARETISBOL 7
  1167. #define NUM 8
  1168. #define QUOTE 9
  1169. #define FIRSTCCL 10
  1170. #define CCL 11
  1171. #define ACTION 12
  1172. #define RECOVER 13
  1173. #define COMMENT 14
  1174. #define ACTION_STRING 15
  1175. #define PERCENT_BRACE_ACTION 16
  1176. #define OPTION 17
  1177. #define LINEDIR 18
  1178. #line 1344 "scan.c"
  1179. /* Macros after this point can all be overridden by user definitions in
  1180. * section 1.
  1181. */
  1182. #ifndef YY_SKIP_YYWRAP
  1183. #ifdef __cplusplus
  1184. extern "C" int yywrap YY_PROTO(( void ));
  1185. #else
  1186. extern int yywrap YY_PROTO(( void ));
  1187. #endif
  1188. #endif
  1189. #ifndef YY_NO_UNPUT
  1190. static void yyunput YY_PROTO(( int c, char *buf_ptr ));
  1191. #endif
  1192. #ifndef yytext_ptr
  1193. static void yy_flex_strncpy YY_PROTO(( char *, yyconst char *, int ));
  1194. #endif
  1195. #ifdef YY_NEED_STRLEN
  1196. static int yy_flex_strlen YY_PROTO(( yyconst char * ));
  1197. #endif
  1198. #ifndef YY_NO_INPUT
  1199. #ifdef __cplusplus
  1200. static int yyinput YY_PROTO(( void ));
  1201. #else
  1202. static int input YY_PROTO(( void ));
  1203. #endif
  1204. #endif
  1205. #if YY_STACK_USED
  1206. static int yy_start_stack_ptr = 0;
  1207. static int yy_start_stack_depth = 0;
  1208. static int *yy_start_stack = 0;
  1209. #ifndef YY_NO_PUSH_STATE
  1210. static void yy_push_state YY_PROTO(( int new_state ));
  1211. #endif
  1212. #ifndef YY_NO_POP_STATE
  1213. static void yy_pop_state YY_PROTO(( void ));
  1214. #endif
  1215. #ifndef YY_NO_TOP_STATE
  1216. static int yy_top_state YY_PROTO(( void ));
  1217. #endif
  1218. #else
  1219. #define YY_NO_PUSH_STATE 1
  1220. #define YY_NO_POP_STATE 1
  1221. #define YY_NO_TOP_STATE 1
  1222. #endif
  1223. #ifdef YY_MALLOC_DECL
  1224. YY_MALLOC_DECL
  1225. #else
  1226. #if __STDC__
  1227. #ifndef __cplusplus
  1228. #include <stdlib.h>
  1229. #endif
  1230. #else
  1231. /* Just try to get by without declaring the routines. This will fail
  1232. * miserably on non-ANSI systems for which sizeof(size_t) != sizeof(int)
  1233. * or sizeof(void*) != sizeof(int).
  1234. */
  1235. #endif
  1236. #endif
  1237. /* Amount of stuff to slurp up with each read. */
  1238. #ifndef YY_READ_BUF_SIZE
  1239. #define YY_READ_BUF_SIZE 8192
  1240. #endif
  1241. /* Copy whatever the last rule matched to the standard output. */
  1242. #ifndef ECHO
  1243. /* This used to be an fputs(), but since the string might contain NUL's,
  1244. * we now use fwrite().
  1245. */
  1246. #define ECHO (void) fwrite( yytext, yyleng, 1, yyout )
  1247. #endif
  1248. /* Gets input and stuffs it into "buf". number of characters read, or YY_NULL,
  1249. * is returned in "result".
  1250. */
  1251. #ifndef YY_INPUT
  1252. #define YY_INPUT(buf,result,max_size) \
  1253. if ( yy_current_buffer->yy_is_interactive ) \
  1254. { \
  1255. int c = '*', n; \
  1256. for ( n = 0; n < max_size && \
  1257. (c = getc( yyin )) != EOF && c != '\n'; ++n ) \
  1258. buf[n] = (char) c; \
  1259. if ( c == '\n' ) \
  1260. buf[n++] = (char) c; \
  1261. if ( c == EOF && ferror( yyin ) ) \
  1262. YY_FATAL_ERROR( "input in flex scanner failed" ); \
  1263. result = n; \
  1264. } \
  1265. else \
  1266. { \
  1267. errno=0; \
  1268. while ( (result = fread(buf, 1, max_size, yyin))==0 && ferror(yyin)) \
  1269. { \
  1270. if( errno != EINTR) \
  1271. { \
  1272. YY_FATAL_ERROR( "input in flex scanner failed" ); \
  1273. break; \
  1274. } \
  1275. errno=0; \
  1276. clearerr(yyin); \
  1277. } \
  1278. }
  1279. #endif
  1280. /* No semi-colon after return; correct usage is to write "yyterminate();" -
  1281. * we don't want an extra ';' after the "return" because that will cause
  1282. * some compilers to complain about unreachable statements.
  1283. */
  1284. #ifndef yyterminate
  1285. #define yyterminate() return YY_NULL
  1286. #endif
  1287. /* Number of entries by which start-condition stack grows. */
  1288. #ifndef YY_START_STACK_INCR
  1289. #define YY_START_STACK_INCR 25
  1290. #endif
  1291. /* Report a fatal error. */
  1292. #ifndef YY_FATAL_ERROR
  1293. #define YY_FATAL_ERROR(msg) yy_fatal_error( msg )
  1294. #endif
  1295. /* Default declaration of generated scanner - a define so the user can
  1296. * easily add parameters.
  1297. */
  1298. #ifndef YY_DECL
  1299. #define YY_DECL int yylex YY_PROTO(( void ))
  1300. #endif
  1301. /* Code executed at the beginning of each rule, after yytext and yyleng
  1302. * have been set up.
  1303. */
  1304. #ifndef YY_USER_ACTION
  1305. #define YY_USER_ACTION
  1306. #endif
  1307. /* Code executed at the end of each rule. */
  1308. #ifndef YY_BREAK
  1309. #define YY_BREAK break;
  1310. #endif
  1311. #define YY_RULE_SETUP \
  1312. if ( yyleng > 0 ) \
  1313. yy_current_buffer->yy_at_bol = \
  1314. (yytext[yyleng - 1] == '\n'); \
  1315. YY_USER_ACTION
  1316. YY_DECL
  1317. {
  1318. yy_state_type yy_current_state;
  1319. char *yy_cp, *yy_bp;
  1320. int yy_act;
  1321. #line 102 "scan.l"
  1322. static int bracelevel, didadef, indented_code;
  1323. static int doing_rule_action = false;
  1324. static int option_sense;
  1325. int doing_codeblock = false;
  1326. int i;
  1327. Char nmdef[MAXLINE], myesc();
  1328. #line 1520 "scan.c"
  1329. if ( yy_init )
  1330. {
  1331. yy_init = 0;
  1332. #ifdef YY_USER_INIT
  1333. YY_USER_INIT;
  1334. #endif
  1335. if ( ! yy_start )
  1336. yy_start = 1; /* first start state */
  1337. if ( ! yyin )
  1338. yyin = stdin;
  1339. if ( ! yyout )
  1340. yyout = stdout;
  1341. if ( ! yy_current_buffer )
  1342. yy_current_buffer =
  1343. yy_create_buffer( yyin, YY_BUF_SIZE );
  1344. yy_load_buffer_state();
  1345. }
  1346. while ( 1 ) /* loops until end-of-file is reached */
  1347. {
  1348. yy_cp = yy_c_buf_p;
  1349. /* Support of yytext. */
  1350. *yy_cp = yy_hold_char;
  1351. /* yy_bp points to the position in yy_ch_buf of the start of
  1352. * the current run.
  1353. */
  1354. yy_bp = yy_cp;
  1355. yy_current_state = yy_start;
  1356. yy_current_state += YY_AT_BOL();
  1357. yy_match:
  1358. do
  1359. {
  1360. YY_CHAR yy_c = yy_ec[YY_SC_TO_UI(*yy_cp)];
  1361. if ( yy_accept[yy_current_state] )
  1362. {
  1363. yy_last_accepting_state = yy_current_state;
  1364. yy_last_accepting_cpos = yy_cp;
  1365. }
  1366. while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state )
  1367. {
  1368. yy_current_state = (int) yy_def[yy_current_state];
  1369. if ( yy_current_state >= 769 )
  1370. yy_c = yy_meta[(unsigned int) yy_c];
  1371. }
  1372. yy_current_state = yy_nxt[yy_base[yy_current_state] + (unsigned int) yy_c];
  1373. ++yy_cp;
  1374. }
  1375. while ( yy_base[yy_current_state] != 2716 );
  1376. yy_find_action:
  1377. yy_act = yy_accept[yy_current_state];
  1378. if ( yy_act == 0 )
  1379. { /* have to back up */
  1380. yy_cp = yy_last_accepting_cpos;
  1381. yy_current_state = yy_last_accepting_state;
  1382. yy_act = yy_accept[yy_current_state];
  1383. }
  1384. YY_DO_BEFORE_ACTION;
  1385. do_action: /* This label is used only to access EOF actions. */
  1386. switch ( yy_act )
  1387. { /* beginning of action switch */
  1388. case 0: /* must back up */
  1389. /* undo the effects of YY_DO_BEFORE_ACTION */
  1390. *yy_cp = yy_hold_char;
  1391. yy_cp = yy_last_accepting_cpos;
  1392. yy_current_state = yy_last_accepting_state;
  1393. goto yy_find_action;
  1394. case 1:
  1395. YY_RULE_SETUP
  1396. #line 113 "scan.l"
  1397. indented_code = true; BEGIN(CODEBLOCK);
  1398. YY_BREAK
  1399. case 2:
  1400. YY_RULE_SETUP
  1401. #line 114 "scan.l"
  1402. ACTION_ECHO; yy_push_state( COMMENT );
  1403. YY_BREAK
  1404. case 3:
  1405. YY_RULE_SETUP
  1406. #line 115 "scan.l"
  1407. yy_push_state( LINEDIR );
  1408. YY_BREAK
  1409. case 4:
  1410. YY_RULE_SETUP
  1411. #line 116 "scan.l"
  1412. return SCDECL;
  1413. YY_BREAK
  1414. case 5:
  1415. YY_RULE_SETUP
  1416. #line 117 "scan.l"
  1417. return XSCDECL;
  1418. YY_BREAK
  1419. case 6:
  1420. YY_RULE_SETUP
  1421. #line 118 "scan.l"
  1422. {
  1423. ++linenum;
  1424. line_directive_out( (FILE *) 0, 1 );
  1425. indented_code = false;
  1426. BEGIN(CODEBLOCK);
  1427. }
  1428. YY_BREAK
  1429. case 7:
  1430. YY_RULE_SETUP
  1431. #line 125 "scan.l"
  1432. /* discard */
  1433. YY_BREAK
  1434. case 8:
  1435. YY_RULE_SETUP
  1436. #line 127 "scan.l"
  1437. {
  1438. sectnum = 2;
  1439. bracelevel = 0;
  1440. mark_defs1();
  1441. line_directive_out( (FILE *) 0, 1 );
  1442. BEGIN(SECT2PROLOG);
  1443. return SECTEND;
  1444. }
  1445. YY_BREAK
  1446. case 9:
  1447. YY_RULE_SETUP
  1448. #line 136 "scan.l"
  1449. yytext_is_array = false; ++linenum;
  1450. YY_BREAK
  1451. case 10:
  1452. YY_RULE_SETUP
  1453. #line 137 "scan.l"
  1454. yytext_is_array = true; ++linenum;
  1455. YY_BREAK
  1456. case 11:
  1457. YY_RULE_SETUP
  1458. #line 139 "scan.l"
  1459. BEGIN(OPTION); return OPTION_OP;
  1460. YY_BREAK
  1461. case 12:
  1462. YY_RULE_SETUP
  1463. #line 141 "scan.l"
  1464. ++linenum; /* ignore */
  1465. YY_BREAK
  1466. case 13:
  1467. YY_RULE_SETUP
  1468. #line 142 "scan.l"
  1469. ++linenum; /* ignore */
  1470. YY_BREAK
  1471. case 14:
  1472. YY_RULE_SETUP
  1473. #line 144 "scan.l"
  1474. synerr( _( "unrecognized '%' directive" ) );
  1475. YY_BREAK
  1476. case 15:
  1477. YY_RULE_SETUP
  1478. #line 146 "scan.l"
  1479. {
  1480. if(strlen(yytext) < MAXLINE)
  1481. {
  1482. strcpy( nmstr, yytext );
  1483. }
  1484. else
  1485. {
  1486. fputs("Input line too long!\n", stderr);
  1487. exit(1);
  1488. } /* end of else */
  1489. didadef = false;
  1490. BEGIN(PICKUPDEF);
  1491. }
  1492. YY_BREAK
  1493. case 16:
  1494. YY_RULE_SETUP
  1495. #line 160 "scan.l"
  1496. RETURNNAME;
  1497. YY_BREAK
  1498. case 17:
  1499. YY_RULE_SETUP
  1500. #line 161 "scan.l"
  1501. ++linenum; /* allows blank lines in section 1 */
  1502. YY_BREAK
  1503. case 18:
  1504. YY_RULE_SETUP
  1505. #line 162 "scan.l"
  1506. ACTION_ECHO; ++linenum; /* maybe end of comment line */
  1507. YY_BREAK
  1508. case 19:
  1509. YY_RULE_SETUP
  1510. #line 167 "scan.l"
  1511. ACTION_ECHO; yy_pop_state();
  1512. YY_BREAK
  1513. case 20:
  1514. YY_RULE_SETUP
  1515. #line 168 "scan.l"
  1516. ACTION_ECHO;
  1517. YY_BREAK
  1518. case 21:
  1519. YY_RULE_SETUP
  1520. #line 169 "scan.l"
  1521. ACTION_ECHO;
  1522. YY_BREAK
  1523. case 22:
  1524. YY_RULE_SETUP
  1525. #line 170 "scan.l"
  1526. ++linenum; ACTION_ECHO;
  1527. YY_BREAK
  1528. case 23:
  1529. YY_RULE_SETUP
  1530. #line 174 "scan.l"
  1531. yy_pop_state();
  1532. YY_BREAK
  1533. case 24:
  1534. YY_RULE_SETUP
  1535. #line 175 "scan.l"
  1536. linenum = myctoi( yytext );
  1537. YY_BREAK
  1538. case 25:
  1539. YY_RULE_SETUP
  1540. #line 177 "scan.l"
  1541. {
  1542. flex_free( (void *) infilename );
  1543. infilename = copy_string( yytext + 1 );
  1544. infilename[strlen( infilename ) - 1] = '\0';
  1545. }
  1546. YY_BREAK
  1547. case 26:
  1548. YY_RULE_SETUP
  1549. #line 182 "scan.l"
  1550. /* ignore spurious characters */
  1551. YY_BREAK
  1552. case 27:
  1553. YY_RULE_SETUP
  1554. #line 186 "scan.l"
  1555. ++linenum; BEGIN(INITIAL);
  1556. YY_BREAK
  1557. case 28:
  1558. YY_RULE_SETUP
  1559. #line 188 "scan.l"
  1560. ACTION_ECHO;
  1561. YY_BREAK
  1562. case 29:
  1563. YY_RULE_SETUP
  1564. #line 190 "scan.l"
  1565. {
  1566. ++linenum;
  1567. ACTION_ECHO;
  1568. if ( indented_code )
  1569. BEGIN(INITIAL);
  1570. }
  1571. YY_BREAK
  1572. case 30:
  1573. YY_RULE_SETUP
  1574. #line 200 "scan.l"
  1575. /* separates name and definition */
  1576. YY_BREAK
  1577. case 31:
  1578. YY_RULE_SETUP
  1579. #line 202 "scan.l"
  1580. {
  1581. if(strlen(yytext) < MAXLINE)
  1582. {
  1583. strcpy( (char *) nmdef, yytext );
  1584. }
  1585. else
  1586. {
  1587. fputs("Input line too long!\n", stderr);
  1588. exit(1);
  1589. } /* end of else */
  1590. /* Skip trailing whitespace. */
  1591. for ( i = strlen( (char *) nmdef ) - 1;
  1592. i >= 0 && (nmdef[i] == ' ' || nmdef[i] == '\t');
  1593. --i )
  1594. ;
  1595. nmdef[i + 1] = '\0';
  1596. ndinstal( nmstr, nmdef );
  1597. didadef = true;
  1598. }
  1599. YY_BREAK
  1600. case 32:
  1601. YY_RULE_SETUP
  1602. #line 227 "scan.l"
  1603. {
  1604. if ( ! didadef )
  1605. synerr( _( "incomplete name definition" ) );
  1606. BEGIN(INITIAL);
  1607. ++linenum;
  1608. }
  1609. YY_BREAK
  1610. case 33:
  1611. YY_RULE_SETUP
  1612. #line 237 "scan.l"
  1613. ++linenum; BEGIN(INITIAL);
  1614. YY_BREAK
  1615. case 34:
  1616. YY_RULE_SETUP
  1617. #line 238 "scan.l"
  1618. option_sense = true;
  1619. YY_BREAK
  1620. case 35:
  1621. YY_RULE_SETUP
  1622. #line 240 "scan.l"
  1623. return '=';
  1624. YY_BREAK
  1625. case 36:
  1626. YY_RULE_SETUP
  1627. #line 242 "scan.l"
  1628. option_sense = ! option_sense;
  1629. YY_BREAK
  1630. case 37:
  1631. YY_RULE_SETUP
  1632. #line 244 "scan.l"
  1633. csize = option_sense ? 128 : 256;
  1634. YY_BREAK
  1635. case 38:
  1636. YY_RULE_SETUP
  1637. #line 245 "scan.l"
  1638. csize = option_sense ? 256 : 128;
  1639. YY_BREAK
  1640. case 39:
  1641. YY_RULE_SETUP
  1642. #line 247 "scan.l"
  1643. long_align = option_sense;
  1644. YY_BREAK
  1645. case 40:
  1646. YY_RULE_SETUP
  1647. #line 248 "scan.l"
  1648. {
  1649. action_define( "YY_ALWAYS_INTERACTIVE", option_sense );
  1650. }
  1651. YY_BREAK
  1652. case 41:
  1653. YY_RULE_SETUP
  1654. #line 251 "scan.l"
  1655. yytext_is_array = option_sense;
  1656. YY_BREAK
  1657. case 42:
  1658. YY_RULE_SETUP
  1659. #line 252 "scan.l"
  1660. backing_up_report = option_sense;
  1661. YY_BREAK
  1662. case 43:
  1663. YY_RULE_SETUP
  1664. #line 253 "scan.l"
  1665. interactive = ! option_sense;
  1666. YY_BREAK
  1667. case 44:
  1668. YY_RULE_SETUP
  1669. #line 254 "scan.l"
  1670. C_plus_plus = option_sense;
  1671. YY_BREAK
  1672. case 45:
  1673. YY_RULE_SETUP
  1674. #line 255 "scan.l"
  1675. caseins = ! option_sense;
  1676. YY_BREAK
  1677. case 46:
  1678. YY_RULE_SETUP
  1679. #line 256 "scan.l"
  1680. caseins = option_sense;
  1681. YY_BREAK
  1682. case 47:
  1683. YY_RULE_SETUP
  1684. #line 257 "scan.l"
  1685. ddebug = option_sense;
  1686. YY_BREAK
  1687. case 48:
  1688. YY_RULE_SETUP
  1689. #line 258 "scan.l"
  1690. spprdflt = ! option_sense;
  1691. YY_BREAK
  1692. case 49:
  1693. YY_RULE_SETUP
  1694. #line 259 "scan.l"
  1695. useecs = option_sense;
  1696. YY_BREAK
  1697. case 50:
  1698. YY_RULE_SETUP
  1699. #line 260 "scan.l"
  1700. {
  1701. useecs = usemecs = false;
  1702. use_read = fullspd = true;
  1703. }
  1704. YY_BREAK
  1705. case 51:
  1706. YY_RULE_SETUP
  1707. #line 264 "scan.l"
  1708. {
  1709. useecs = usemecs = false;
  1710. use_read = fulltbl = true;
  1711. }
  1712. YY_BREAK
  1713. case 52:
  1714. YY_RULE_SETUP
  1715. #line 268 "scan.l"
  1716. ACTION_IFDEF("YY_NO_INPUT", ! option_sense);
  1717. YY_BREAK
  1718. case 53:
  1719. YY_RULE_SETUP
  1720. #line 269 "scan.l"
  1721. interactive = option_sense;
  1722. YY_BREAK
  1723. case 54:
  1724. YY_RULE_SETUP
  1725. #line 270 "scan.l"
  1726. lex_compat = option_sense;
  1727. YY_BREAK
  1728. case 55:
  1729. YY_RULE_SETUP
  1730. #line 271 "scan.l"
  1731. {
  1732. action_define( "YY_MAIN", option_sense );
  1733. if ( option_sense ) do_yywrap = ! option_sense;
  1734. }
  1735. YY_BREAK
  1736. case 56:
  1737. YY_RULE_SETUP
  1738. #line 275 "scan.l"
  1739. usemecs = option_sense;
  1740. YY_BREAK
  1741. case 57:
  1742. YY_RULE_SETUP
  1743. #line 276 "scan.l"
  1744. {
  1745. action_define( "YY_NEVER_INTERACTIVE", option_sense );
  1746. }
  1747. YY_BREAK
  1748. case 58:
  1749. YY_RULE_SETUP
  1750. #line 279 "scan.l"
  1751. performance_report += option_sense ? 1 : -1;
  1752. YY_BREAK
  1753. case 59:
  1754. YY_RULE_SETUP
  1755. #line 280 "scan.l"
  1756. yytext_is_array = ! option_sense;
  1757. YY_BREAK
  1758. case 60:
  1759. YY_RULE_SETUP
  1760. #line 281 "scan.l"
  1761. use_read = option_sense;
  1762. YY_BREAK
  1763. case 61:
  1764. YY_RULE_SETUP
  1765. #line 282 "scan.l"
  1766. reject_really_used = option_sense;
  1767. YY_BREAK
  1768. case 62:
  1769. YY_RULE_SETUP
  1770. #line 283 "scan.l"
  1771. action_define( "YY_STACK_USED", option_sense );
  1772. YY_BREAK
  1773. case 63:
  1774. YY_RULE_SETUP
  1775. #line 284 "scan.l"
  1776. do_stdinit = option_sense;
  1777. YY_BREAK
  1778. case 64:
  1779. YY_RULE_SETUP
  1780. #line 285 "scan.l"
  1781. use_stdout = option_sense;
  1782. YY_BREAK
  1783. case 65:
  1784. YY_RULE_SETUP
  1785. #line 286 "scan.l"
  1786. ACTION_IFDEF("YY_NO_UNPUT", ! option_sense);
  1787. YY_BREAK
  1788. case 66:
  1789. YY_RULE_SETUP
  1790. #line 287 "scan.l"
  1791. printstats = option_sense;
  1792. YY_BREAK
  1793. case 67:
  1794. YY_RULE_SETUP
  1795. #line 288 "scan.l"
  1796. nowarn = ! option_sense;
  1797. YY_BREAK
  1798. case 68:
  1799. YY_RULE_SETUP
  1800. #line 289 "scan.l"
  1801. do_yylineno = option_sense;
  1802. YY_BREAK
  1803. case 69:
  1804. YY_RULE_SETUP
  1805. #line 290 "scan.l"
  1806. yymore_really_used = option_sense;
  1807. YY_BREAK
  1808. case 70:
  1809. YY_RULE_SETUP
  1810. #line 291 "scan.l"
  1811. do_yywrap = option_sense;
  1812. YY_BREAK
  1813. case 71:
  1814. YY_RULE_SETUP
  1815. #line 293 "scan.l"
  1816. ACTION_IFDEF("YY_NO_PUSH_STATE", ! option_sense);
  1817. YY_BREAK
  1818. case 72:
  1819. YY_RULE_SETUP
  1820. #line 294 "scan.l"
  1821. ACTION_IFDEF("YY_NO_POP_STATE", ! option_sense);
  1822. YY_BREAK
  1823. case 73:
  1824. YY_RULE_SETUP
  1825. #line 295 "scan.l"
  1826. ACTION_IFDEF("YY_NO_TOP_STATE", ! option_sense);
  1827. YY_BREAK
  1828. case 74:
  1829. YY_RULE_SETUP
  1830. #line 297 "scan.l"
  1831. ACTION_IFDEF("YY_NO_SCAN_BUFFER", ! option_sense);
  1832. YY_BREAK
  1833. case 75:
  1834. YY_RULE_SETUP
  1835. #line 298 "scan.l"
  1836. ACTION_IFDEF("YY_NO_SCAN_BYTES", ! option_sense);
  1837. YY_BREAK
  1838. case 76:
  1839. YY_RULE_SETUP
  1840. #line 299 "scan.l"
  1841. ACTION_IFDEF("YY_NO_SCAN_STRING", ! option_sense);
  1842. YY_BREAK
  1843. case 77:
  1844. YY_RULE_SETUP
  1845. #line 301 "scan.l"
  1846. return OPT_OUTFILE;
  1847. YY_BREAK
  1848. case 78:
  1849. YY_RULE_SETUP
  1850. #line 302 "scan.l"
  1851. return OPT_PREFIX;
  1852. YY_BREAK
  1853. case 79:
  1854. YY_RULE_SETUP
  1855. #line 303 "scan.l"
  1856. return OPT_YYCLASS;
  1857. YY_BREAK
  1858. case 80:
  1859. YY_RULE_SETUP
  1860. #line 305 "scan.l"
  1861. {
  1862. if(strlen(yytext + 1 ) < MAXLINE)
  1863. {
  1864. strcpy( nmstr, yytext + 1 );
  1865. }
  1866. else
  1867. {
  1868. fputs("Input line too long!\n", stderr);
  1869. exit(1);
  1870. } /* end of else */
  1871. nmstr[strlen( nmstr ) - 1] = '\0';
  1872. return NAME;
  1873. }
  1874. YY_BREAK
  1875. case 81:
  1876. YY_RULE_SETUP
  1877. #line 319 "scan.l"
  1878. {
  1879. format_synerr( _( "unrecognized %%option: %s" ),
  1880. yytext );
  1881. BEGIN(RECOVER);
  1882. }
  1883. YY_BREAK
  1884. case 82:
  1885. YY_RULE_SETUP
  1886. #line 326 "scan.l"
  1887. ++linenum; BEGIN(INITIAL);
  1888. YY_BREAK
  1889. case 83:
  1890. YY_RULE_SETUP
  1891. #line 330 "scan.l"
  1892. ++bracelevel; yyless( 2 ); /* eat only %{ */
  1893. YY_BREAK
  1894. case 84:
  1895. YY_RULE_SETUP
  1896. #line 331 "scan.l"
  1897. --bracelevel; yyless( 2 ); /* eat only %} */
  1898. YY_BREAK
  1899. case 85:
  1900. YY_RULE_SETUP
  1901. #line 333 "scan.l"
  1902. ACTION_ECHO; /* indented code in prolog */
  1903. YY_BREAK
  1904. case 86:
  1905. YY_RULE_SETUP
  1906. #line 335 "scan.l"
  1907. { /* non-indented code */
  1908. if ( bracelevel <= 0 )
  1909. { /* not in %{ ... %} */
  1910. yyless( 0 ); /* put it all back */
  1911. yy_set_bol( 1 );
  1912. mark_prolog();
  1913. BEGIN(SECT2);
  1914. }
  1915. else
  1916. ACTION_ECHO;
  1917. }
  1918. YY_BREAK
  1919. case 87:
  1920. YY_RULE_SETUP
  1921. #line 347 "scan.l"
  1922. ACTION_ECHO;
  1923. YY_BREAK
  1924. case 88:
  1925. YY_RULE_SETUP
  1926. #line 348 "scan.l"
  1927. ++linenum; ACTION_ECHO;
  1928. YY_BREAK
  1929. case YY_STATE_EOF(SECT2PROLOG):
  1930. #line 350 "scan.l"
  1931. {
  1932. mark_prolog();
  1933. sectnum = 0;
  1934. yyterminate(); /* to stop the parser */
  1935. }
  1936. YY_BREAK
  1937. case 89:
  1938. YY_RULE_SETUP
  1939. #line 358 "scan.l"
  1940. ++linenum; /* allow blank lines in section 2 */
  1941. YY_BREAK
  1942. case 90:
  1943. YY_RULE_SETUP
  1944. #line 360 "scan.l"
  1945. {
  1946. indented_code = false;
  1947. doing_codeblock = true;
  1948. bracelevel = 1;
  1949. BEGIN(PERCENT_BRACE_ACTION);
  1950. }
  1951. YY_BREAK
  1952. case 91:
  1953. YY_RULE_SETUP
  1954. #line 367 "scan.l"
  1955. BEGIN(SC); return '<';
  1956. YY_BREAK
  1957. case 92:
  1958. YY_RULE_SETUP
  1959. #line 368 "scan.l"
  1960. return '^';
  1961. YY_BREAK
  1962. case 93:
  1963. YY_RULE_SETUP
  1964. #line 369 "scan.l"
  1965. BEGIN(QUOTE); return '"';
  1966. YY_BREAK
  1967. case 94:
  1968. *yy_cp = yy_hold_char; /* undo effects of setting up yytext */
  1969. yy_c_buf_p = yy_cp = yy_bp + 1;
  1970. YY_DO_BEFORE_ACTION; /* set up yytext again */
  1971. YY_RULE_SETUP
  1972. #line 370 "scan.l"
  1973. BEGIN(NUM); return '{';
  1974. YY_BREAK
  1975. case 95:
  1976. *yy_cp = yy_hold_char; /* undo effects of setting up yytext */
  1977. yy_c_buf_p = yy_cp = yy_bp + 1;
  1978. YY_DO_BEFORE_ACTION; /* set up yytext again */
  1979. YY_RULE_SETUP
  1980. #line 371 "scan.l"
  1981. return '$';
  1982. YY_BREAK
  1983. case 96:
  1984. YY_RULE_SETUP
  1985. #line 373 "scan.l"
  1986. {
  1987. bracelevel = 1;
  1988. BEGIN(PERCENT_BRACE_ACTION);
  1989. if ( in_rule )
  1990. {
  1991. doing_rule_action = true;
  1992. in_rule = false;
  1993. return '\n';
  1994. }
  1995. }
  1996. YY_BREAK
  1997. case 97:
  1998. YY_RULE_SETUP
  1999. #line 384 "scan.l"
  2000. continued_action = true; ++linenum; return '\n';
  2001. YY_BREAK
  2002. case 98:
  2003. YY_RULE_SETUP
  2004. #line 386 "scan.l"
  2005. {
  2006. yyless( yyleng - 2 ); /* put back '/', '*' */
  2007. bracelevel = 0;
  2008. continued_action = false;
  2009. BEGIN(ACTION);
  2010. }
  2011. YY_BREAK
  2012. case 99:
  2013. YY_RULE_SETUP
  2014. #line 393 "scan.l"
  2015. /* allow indented rules */
  2016. YY_BREAK
  2017. case 100:
  2018. YY_RULE_SETUP
  2019. #line 395 "scan.l"
  2020. {
  2021. /* This rule is separate from the one below because
  2022. * otherwise we get variable trailing context, so
  2023. * we can't build the scanner using -{f,F}.
  2024. */
  2025. bracelevel = 0;
  2026. continued_action = false;
  2027. BEGIN(ACTION);
  2028. if ( in_rule )
  2029. {
  2030. doing_rule_action = true;
  2031. in_rule = false;
  2032. return '\n';
  2033. }
  2034. }
  2035. YY_BREAK
  2036. case 101:
  2037. YY_RULE_SETUP
  2038. #line 412 "scan.l"
  2039. {
  2040. bracelevel = 0;
  2041. continued_action = false;
  2042. BEGIN(ACTION);
  2043. unput( '\n' ); /* so <ACTION> sees it */
  2044. if ( in_rule )
  2045. {
  2046. doing_rule_action = true;
  2047. in_rule = false;
  2048. return '\n';
  2049. }
  2050. }
  2051. YY_BREAK
  2052. case 102:
  2053. #line 427 "scan.l"
  2054. case 103:
  2055. YY_RULE_SETUP
  2056. #line 427 "scan.l"
  2057. return EOF_OP;
  2058. YY_BREAK
  2059. case 104:
  2060. YY_RULE_SETUP
  2061. #line 429 "scan.l"
  2062. {
  2063. sectnum = 3;
  2064. BEGIN(SECT3);
  2065. yyterminate(); /* to stop the parser */
  2066. }
  2067. YY_BREAK
  2068. case 105:
  2069. YY_RULE_SETUP
  2070. #line 435 "scan.l"
  2071. {
  2072. int cclval;
  2073. if(strlen(yytext ) < MAXLINE)
  2074. {
  2075. strcpy( nmstr, yytext );
  2076. }
  2077. else
  2078. {
  2079. fputs("Input line too long!\n", stderr);
  2080. exit(1);
  2081. }
  2082. /* Check to see if we've already encountered this
  2083. * ccl.
  2084. */
  2085. if ( (cclval = ccllookup( (Char *) nmstr )) != 0 )
  2086. {
  2087. if ( input() != ']' )
  2088. synerr( _( "bad character class" ) );
  2089. yylval = cclval;
  2090. ++cclreuse;
  2091. return PREVCCL;
  2092. }
  2093. else
  2094. {
  2095. /* We fudge a bit. We know that this ccl will
  2096. * soon be numbered as lastccl + 1 by cclinit.
  2097. */
  2098. cclinstal( (Char *) nmstr, lastccl + 1 );
  2099. /* Push back everything but the leading bracket
  2100. * so the ccl can be rescanned.
  2101. */
  2102. yyless( 1 );
  2103. BEGIN(FIRSTCCL);
  2104. return '[';
  2105. }
  2106. }
  2107. YY_BREAK
  2108. case 106:
  2109. YY_RULE_SETUP
  2110. #line 477 "scan.l"
  2111. {
  2112. Char *nmdefptr;
  2113. Char *ndlookup();
  2114. if(strlen(yytext + 1 ) < MAXLINE)
  2115. {
  2116. strcpy( nmstr, yytext + 1 );
  2117. }
  2118. else
  2119. {
  2120. fputs("Input line too long!\n", stderr);
  2121. exit(1);
  2122. } /* end of else */
  2123. nmstr[yyleng - 2] = '\0'; /* chop trailing brace */
  2124. if ( (nmdefptr = ndlookup( nmstr )) == 0 )
  2125. format_synerr(
  2126. _( "undefined definition {%s}" ),
  2127. nmstr );
  2128. else
  2129. { /* push back name surrounded by ()'s */
  2130. int len = strlen( (char *) nmdefptr );
  2131. if ( lex_compat || nmdefptr[0] == '^' ||
  2132. (len > 0 && nmdefptr[len - 1] == '$') )
  2133. { /* don't use ()'s after all */
  2134. PUT_BACK_STRING((char *) nmdefptr, 0);
  2135. if ( nmdefptr[0] == '^' )
  2136. BEGIN(CARETISBOL);
  2137. }
  2138. else
  2139. {
  2140. unput(')');
  2141. PUT_BACK_STRING((char *) nmdefptr, 0);
  2142. unput('(');
  2143. }
  2144. }
  2145. }
  2146. YY_BREAK
  2147. case 107:
  2148. YY_RULE_SETUP
  2149. #line 519 "scan.l"
  2150. return (unsigned char) yytext[0];
  2151. YY_BREAK
  2152. case 108:
  2153. YY_RULE_SETUP
  2154. #line 520 "scan.l"
  2155. RETURNCHAR;
  2156. YY_BREAK
  2157. case 109:
  2158. YY_RULE_SETUP
  2159. #line 525 "scan.l"
  2160. return (unsigned char) yytext[0];
  2161. YY_BREAK
  2162. case 110:
  2163. YY_RULE_SETUP
  2164. #line 526 "scan.l"
  2165. BEGIN(SECT2); return '>';
  2166. YY_BREAK
  2167. case 111:
  2168. *yy_cp = yy_hold_char; /* undo effects of setting up yytext */
  2169. yy_c_buf_p = yy_cp = yy_bp + 1;
  2170. YY_DO_BEFORE_ACTION; /* set up yytext again */
  2171. YY_RULE_SETUP
  2172. #line 527 "scan.l"
  2173. BEGIN(CARETISBOL); return '>';
  2174. YY_BREAK
  2175. case 112:
  2176. YY_RULE_SETUP
  2177. #line 528 "scan.l"
  2178. RETURNNAME;
  2179. YY_BREAK
  2180. case 113:
  2181. YY_RULE_SETUP
  2182. #line 529 "scan.l"
  2183. {
  2184. format_synerr( _( "bad <start condition>: %s" ),
  2185. yytext );
  2186. }
  2187. YY_BREAK
  2188. case 114:
  2189. YY_RULE_SETUP
  2190. #line 535 "scan.l"
  2191. BEGIN(SECT2); return '^';
  2192. YY_BREAK
  2193. case 115:
  2194. YY_RULE_SETUP
  2195. #line 539 "scan.l"
  2196. RETURNCHAR;
  2197. YY_BREAK
  2198. case 116:
  2199. YY_RULE_SETUP
  2200. #line 540 "scan.l"
  2201. BEGIN(SECT2); return '"';
  2202. YY_BREAK
  2203. case 117:
  2204. YY_RULE_SETUP
  2205. #line 542 "scan.l"
  2206. {
  2207. synerr( _( "missing quote" ) );
  2208. BEGIN(SECT2);
  2209. ++linenum;
  2210. return '"';
  2211. }
  2212. YY_BREAK
  2213. case 118:
  2214. *yy_cp = yy_hold_char; /* undo effects of setting up yytext */
  2215. yy_c_buf_p = yy_cp = yy_bp + 1;
  2216. YY_DO_BEFORE_ACTION; /* set up yytext again */
  2217. YY_RULE_SETUP
  2218. #line 552 "scan.l"
  2219. BEGIN(CCL); return '^';
  2220. YY_BREAK
  2221. case 119:
  2222. *yy_cp = yy_hold_char; /* undo effects of setting up yytext */
  2223. yy_c_buf_p = yy_cp = yy_bp + 1;
  2224. YY_DO_BEFORE_ACTION; /* set up yytext again */
  2225. YY_RULE_SETUP
  2226. #line 553 "scan.l"
  2227. return '^';
  2228. YY_BREAK
  2229. case 120:
  2230. YY_RULE_SETUP
  2231. #line 554 "scan.l"
  2232. BEGIN(CCL); RETURNCHAR;
  2233. YY_BREAK
  2234. case 121:
  2235. *yy_cp = yy_hold_char; /* undo effects of setting up yytext */
  2236. yy_c_buf_p = yy_cp = yy_bp + 1;
  2237. YY_DO_BEFORE_ACTION; /* set up yytext again */
  2238. YY_RULE_SETUP
  2239. #line 558 "scan.l"
  2240. return '-';
  2241. YY_BREAK
  2242. case 122:
  2243. YY_RULE_SETUP
  2244. #line 559 "scan.l"
  2245. RETURNCHAR;
  2246. YY_BREAK
  2247. case 123:
  2248. YY_RULE_SETUP
  2249. #line 560 "scan.l"
  2250. BEGIN(SECT2); return ']';
  2251. YY_BREAK
  2252. case 124:
  2253. YY_RULE_SETUP
  2254. #line 561 "scan.l"
  2255. {
  2256. synerr( _( "bad character class" ) );
  2257. BEGIN(SECT2);
  2258. return ']';
  2259. }
  2260. YY_BREAK
  2261. case 125:
  2262. YY_RULE_SETUP
  2263. #line 569 "scan.l"
  2264. BEGIN(CCL); return CCE_ALNUM;
  2265. YY_BREAK
  2266. case 126:
  2267. YY_RULE_SETUP
  2268. #line 570 "scan.l"
  2269. BEGIN(CCL); return CCE_ALPHA;
  2270. YY_BREAK
  2271. case 127:
  2272. YY_RULE_SETUP
  2273. #line 571 "scan.l"
  2274. BEGIN(CCL); return CCE_BLANK;
  2275. YY_BREAK
  2276. case 128:
  2277. YY_RULE_SETUP
  2278. #line 572 "scan.l"
  2279. BEGIN(CCL); return CCE_CNTRL;
  2280. YY_BREAK
  2281. case 129:
  2282. YY_RULE_SETUP
  2283. #line 573 "scan.l"
  2284. BEGIN(CCL); return CCE_DIGIT;
  2285. YY_BREAK
  2286. case 130:
  2287. YY_RULE_SETUP
  2288. #line 574 "scan.l"
  2289. BEGIN(CCL); return CCE_GRAPH;
  2290. YY_BREAK
  2291. case 131:
  2292. YY_RULE_SETUP
  2293. #line 575 "scan.l"
  2294. BEGIN(CCL); return CCE_LOWER;
  2295. YY_BREAK
  2296. case 132:
  2297. YY_RULE_SETUP
  2298. #line 576 "scan.l"
  2299. BEGIN(CCL); return CCE_PRINT;
  2300. YY_BREAK
  2301. case 133:
  2302. YY_RULE_SETUP
  2303. #line 577 "scan.l"
  2304. BEGIN(CCL); return CCE_PUNCT;
  2305. YY_BREAK
  2306. case 134:
  2307. YY_RULE_SETUP
  2308. #line 578 "scan.l"
  2309. BEGIN(CCL); return CCE_SPACE;
  2310. YY_BREAK
  2311. case 135:
  2312. YY_RULE_SETUP
  2313. #line 579 "scan.l"
  2314. BEGIN(CCL); return CCE_UPPER;
  2315. YY_BREAK
  2316. case 136:
  2317. YY_RULE_SETUP
  2318. #line 580 "scan.l"
  2319. BEGIN(CCL); return CCE_XDIGIT;
  2320. YY_BREAK
  2321. case 137:
  2322. YY_RULE_SETUP
  2323. #line 581 "scan.l"
  2324. {
  2325. format_synerr(
  2326. _( "bad character class expression: %s" ),
  2327. yytext );
  2328. BEGIN(CCL); return CCE_ALNUM;
  2329. }
  2330. YY_BREAK
  2331. case 138:
  2332. YY_RULE_SETUP
  2333. #line 590 "scan.l"
  2334. {
  2335. yylval = myctoi( yytext );
  2336. return NUMBER;
  2337. }
  2338. YY_BREAK
  2339. case 139:
  2340. YY_RULE_SETUP
  2341. #line 595 "scan.l"
  2342. return ',';
  2343. YY_BREAK
  2344. case 140:
  2345. YY_RULE_SETUP
  2346. #line 596 "scan.l"
  2347. BEGIN(SECT2); return '}';
  2348. YY_BREAK
  2349. case 141:
  2350. YY_RULE_SETUP
  2351. #line 598 "scan.l"
  2352. {
  2353. synerr( _( "bad character inside {}'s" ) );
  2354. BEGIN(SECT2);
  2355. return '}';
  2356. }
  2357. YY_BREAK
  2358. case 142:
  2359. YY_RULE_SETUP
  2360. #line 604 "scan.l"
  2361. {
  2362. synerr( _( "missing }" ) );
  2363. BEGIN(SECT2);
  2364. ++linenum;
  2365. return '}';
  2366. }
  2367. YY_BREAK
  2368. case 143:
  2369. YY_RULE_SETUP
  2370. #line 614 "scan.l"
  2371. bracelevel = 0;
  2372. YY_BREAK
  2373. case 144:
  2374. YY_RULE_SETUP
  2375. #line 616 "scan.l"
  2376. ACTION_ECHO; yy_push_state( COMMENT );
  2377. YY_BREAK
  2378. case 145:
  2379. YY_RULE_SETUP
  2380. #line 619 "scan.l"
  2381. {
  2382. ACTION_ECHO;
  2383. CHECK_REJECT(yytext);
  2384. }
  2385. YY_BREAK
  2386. case 146:
  2387. YY_RULE_SETUP
  2388. #line 623 "scan.l"
  2389. {
  2390. ACTION_ECHO;
  2391. CHECK_YYMORE(yytext);
  2392. }
  2393. YY_BREAK
  2394. case 147:
  2395. YY_RULE_SETUP
  2396. #line 629 "scan.l"
  2397. ACTION_ECHO;
  2398. YY_BREAK
  2399. case 148:
  2400. YY_RULE_SETUP
  2401. #line 630 "scan.l"
  2402. {
  2403. ++linenum;
  2404. ACTION_ECHO;
  2405. if ( bracelevel == 0 ||
  2406. (doing_codeblock && indented_code) )
  2407. {
  2408. if ( doing_rule_action )
  2409. add_action( "\tYY_BREAK\n" );
  2410. doing_rule_action = doing_codeblock = false;
  2411. BEGIN(SECT2);
  2412. }
  2413. }
  2414. YY_BREAK
  2415. /* Reject and YYmore() are checked for above, in PERCENT_BRACE_ACTION */
  2416. case 149:
  2417. YY_RULE_SETUP
  2418. #line 648 "scan.l"
  2419. ACTION_ECHO; ++bracelevel;
  2420. YY_BREAK
  2421. case 150:
  2422. YY_RULE_SETUP
  2423. #line 649 "scan.l"
  2424. ACTION_ECHO; --bracelevel;
  2425. YY_BREAK
  2426. case 151:
  2427. YY_RULE_SETUP
  2428. #line 650 "scan.l"
  2429. ACTION_ECHO;
  2430. YY_BREAK
  2431. case 152:
  2432. YY_RULE_SETUP
  2433. #line 651 "scan.l"
  2434. ACTION_ECHO;
  2435. YY_BREAK
  2436. case 153:
  2437. YY_RULE_SETUP
  2438. #line 652 "scan.l"
  2439. ACTION_ECHO; /* character constant */
  2440. YY_BREAK
  2441. case 154:
  2442. YY_RULE_SETUP
  2443. #line 653 "scan.l"
  2444. ACTION_ECHO; BEGIN(ACTION_STRING);
  2445. YY_BREAK
  2446. case 155:
  2447. YY_RULE_SETUP
  2448. #line 654 "scan.l"
  2449. {
  2450. ++linenum;
  2451. ACTION_ECHO;
  2452. if ( bracelevel == 0 )
  2453. {
  2454. if ( doing_rule_action )
  2455. add_action( "\tYY_BREAK\n" );
  2456. doing_rule_action = false;
  2457. BEGIN(SECT2);
  2458. }
  2459. }
  2460. YY_BREAK
  2461. case 156:
  2462. YY_RULE_SETUP
  2463. #line 666 "scan.l"
  2464. ACTION_ECHO;
  2465. YY_BREAK
  2466. case 157:
  2467. YY_RULE_SETUP
  2468. #line 670 "scan.l"
  2469. ACTION_ECHO;
  2470. YY_BREAK
  2471. case 158:
  2472. YY_RULE_SETUP
  2473. #line 671 "scan.l"
  2474. ACTION_ECHO;
  2475. YY_BREAK
  2476. case 159:
  2477. YY_RULE_SETUP
  2478. #line 672 "scan.l"
  2479. ++linenum; ACTION_ECHO;
  2480. YY_BREAK
  2481. case 160:
  2482. YY_RULE_SETUP
  2483. #line 673 "scan.l"
  2484. ACTION_ECHO; BEGIN(ACTION);
  2485. YY_BREAK
  2486. case 161:
  2487. YY_RULE_SETUP
  2488. #line 674 "scan.l"
  2489. ACTION_ECHO;
  2490. YY_BREAK
  2491. case YY_STATE_EOF(COMMENT):
  2492. case YY_STATE_EOF(ACTION):
  2493. case YY_STATE_EOF(ACTION_STRING):
  2494. #line 677 "scan.l"
  2495. {
  2496. synerr( _( "EOF encountered inside an action" ) );
  2497. yyterminate();
  2498. }
  2499. YY_BREAK
  2500. case 162:
  2501. YY_RULE_SETUP
  2502. #line 683 "scan.l"
  2503. {
  2504. yylval = myesc( (Char *) yytext );
  2505. if ( YY_START == FIRSTCCL )
  2506. BEGIN(CCL);
  2507. return CHAR;
  2508. }
  2509. YY_BREAK
  2510. case 163:
  2511. YY_RULE_SETUP
  2512. #line 694 "scan.l"
  2513. ECHO;
  2514. YY_BREAK
  2515. case YY_STATE_EOF(SECT3):
  2516. #line 695 "scan.l"
  2517. sectnum = 0; yyterminate();
  2518. YY_BREAK
  2519. case 164:
  2520. YY_RULE_SETUP
  2521. #line 698 "scan.l"
  2522. format_synerr( _( "bad character: %s" ), yytext );
  2523. YY_BREAK
  2524. case 165:
  2525. YY_RULE_SETUP
  2526. #line 700 "scan.l"
  2527. YY_FATAL_ERROR( "flex scanner jammed" );
  2528. YY_BREAK
  2529. #line 2800 "scan.c"
  2530. case YY_STATE_EOF(INITIAL):
  2531. case YY_STATE_EOF(SECT2):
  2532. case YY_STATE_EOF(CODEBLOCK):
  2533. case YY_STATE_EOF(PICKUPDEF):
  2534. case YY_STATE_EOF(SC):
  2535. case YY_STATE_EOF(CARETISBOL):
  2536. case YY_STATE_EOF(NUM):
  2537. case YY_STATE_EOF(QUOTE):
  2538. case YY_STATE_EOF(FIRSTCCL):
  2539. case YY_STATE_EOF(CCL):
  2540. case YY_STATE_EOF(RECOVER):
  2541. case YY_STATE_EOF(PERCENT_BRACE_ACTION):
  2542. case YY_STATE_EOF(OPTION):
  2543. case YY_STATE_EOF(LINEDIR):
  2544. yyterminate();
  2545. case YY_END_OF_BUFFER:
  2546. {
  2547. /* Amount of text matched not including the EOB char. */
  2548. int yy_amount_of_matched_text = (int) (yy_cp - yytext_ptr) - 1;
  2549. /* Undo the effects of YY_DO_BEFORE_ACTION. */
  2550. *yy_cp = yy_hold_char;
  2551. YY_RESTORE_YY_MORE_OFFSET
  2552. if ( yy_current_buffer->yy_buffer_status == YY_BUFFER_NEW )
  2553. {
  2554. /* We're scanning a new file or input source. It's
  2555. * possible that this happened because the user
  2556. * just pointed yyin at a new source and called
  2557. * yylex(). If so, then we have to assure
  2558. * consistency between yy_current_buffer and our
  2559. * globals. Here is the right place to do so, because
  2560. * this is the first action (other than possibly a
  2561. * back-up) that will match for the new input source.
  2562. */
  2563. yy_n_chars = yy_current_buffer->yy_n_chars;
  2564. yy_current_buffer->yy_input_file = yyin;
  2565. yy_current_buffer->yy_buffer_status = YY_BUFFER_NORMAL;
  2566. }
  2567. /* Note that here we test for yy_c_buf_p "<=" to the position
  2568. * of the first EOB in the buffer, since yy_c_buf_p will
  2569. * already have been incremented past the NUL character
  2570. * (since all states make transitions on EOB to the
  2571. * end-of-buffer state). Contrast this with the test
  2572. * in input().
  2573. */
  2574. if ( yy_c_buf_p <= &yy_current_buffer->yy_ch_buf[yy_n_chars] )
  2575. { /* This was really a NUL. */
  2576. yy_state_type yy_next_state;
  2577. yy_c_buf_p = yytext_ptr + yy_amount_of_matched_text;
  2578. yy_current_state = yy_get_previous_state();
  2579. /* Okay, we're now positioned to make the NUL
  2580. * transition. We couldn't have
  2581. * yy_get_previous_state() go ahead and do it
  2582. * for us because it doesn't know how to deal
  2583. * with the possibility of jamming (and we don't
  2584. * want to build jamming into it because then it
  2585. * will run more slowly).
  2586. */
  2587. yy_next_state = yy_try_NUL_trans( yy_current_state );
  2588. yy_bp = yytext_ptr + YY_MORE_ADJ;
  2589. if ( yy_next_state )
  2590. {
  2591. /* Consume the NUL. */
  2592. yy_cp = ++yy_c_buf_p;
  2593. yy_current_state = yy_next_state;
  2594. goto yy_match;
  2595. }
  2596. else
  2597. {
  2598. yy_cp = yy_c_buf_p;
  2599. goto yy_find_action;
  2600. }
  2601. }
  2602. else switch ( yy_get_next_buffer() )
  2603. {
  2604. case EOB_ACT_END_OF_FILE:
  2605. {
  2606. yy_did_buffer_switch_on_eof = 0;
  2607. if ( yywrap() )
  2608. {
  2609. /* Note: because we've taken care in
  2610. * yy_get_next_buffer() to have set up
  2611. * yytext, we can now set up
  2612. * yy_c_buf_p so that if some total
  2613. * hoser (like flex itself) wants to
  2614. * call the scanner after we return the
  2615. * YY_NULL, it'll still work - another
  2616. * YY_NULL will get returned.
  2617. */
  2618. yy_c_buf_p = yytext_ptr + YY_MORE_ADJ;
  2619. yy_act = YY_STATE_EOF(YY_START);
  2620. goto do_action;
  2621. }
  2622. else
  2623. {
  2624. if ( ! yy_did_buffer_switch_on_eof )
  2625. YY_NEW_FILE;
  2626. }
  2627. break;
  2628. }
  2629. case EOB_ACT_CONTINUE_SCAN:
  2630. yy_c_buf_p =
  2631. yytext_ptr + yy_amount_of_matched_text;
  2632. yy_current_state = yy_get_previous_state();
  2633. yy_cp = yy_c_buf_p;
  2634. yy_bp = yytext_ptr + YY_MORE_ADJ;
  2635. goto yy_match;
  2636. case EOB_ACT_LAST_MATCH:
  2637. yy_c_buf_p =
  2638. &yy_current_buffer->yy_ch_buf[yy_n_chars];
  2639. yy_current_state = yy_get_previous_state();
  2640. yy_cp = yy_c_buf_p;
  2641. yy_bp = yytext_ptr + YY_MORE_ADJ;
  2642. goto yy_find_action;
  2643. }
  2644. break;
  2645. }
  2646. default:
  2647. YY_FATAL_ERROR(
  2648. "fatal flex scanner internal error--no action found" );
  2649. } /* end of action switch */
  2650. } /* end of scanning one token */
  2651. } /* end of yylex */
  2652. /* yy_get_next_buffer - try to read in a new buffer
  2653. *
  2654. * Returns a code representing an action:
  2655. * EOB_ACT_LAST_MATCH -
  2656. * EOB_ACT_CONTINUE_SCAN - continue scanning from current position
  2657. * EOB_ACT_END_OF_FILE - end of file
  2658. */
  2659. static int yy_get_next_buffer()
  2660. {
  2661. char *dest = yy_current_buffer->yy_ch_buf;
  2662. char *source = yytext_ptr;
  2663. int number_to_move, i;
  2664. int ret_val;
  2665. if ( yy_c_buf_p > &yy_current_buffer->yy_ch_buf[yy_n_chars + 1] )
  2666. YY_FATAL_ERROR(
  2667. "fatal flex scanner internal error--end of buffer missed" );
  2668. if ( yy_current_buffer->yy_fill_buffer == 0 )
  2669. { /* Don't try to fill the buffer, so this is an EOF. */
  2670. if ( yy_c_buf_p - yytext_ptr - YY_MORE_ADJ == 1 )
  2671. {
  2672. /* We matched a single character, the EOB, so
  2673. * treat this as a final EOF.
  2674. */
  2675. return EOB_ACT_END_OF_FILE;
  2676. }
  2677. else
  2678. {
  2679. /* We matched some text prior to the EOB, first
  2680. * process it.
  2681. */
  2682. return EOB_ACT_LAST_MATCH;
  2683. }
  2684. }
  2685. /* Try to read more data. */
  2686. /* First move last chars to start of buffer. */
  2687. number_to_move = (int) (yy_c_buf_p - yytext_ptr) - 1;
  2688. for ( i = 0; i < number_to_move; ++i )
  2689. *(dest++) = *(source++);
  2690. if ( yy_current_buffer->yy_buffer_status == YY_BUFFER_EOF_PENDING )
  2691. /* don't do the read, it's not guaranteed to return an EOF,
  2692. * just force an EOF
  2693. */
  2694. yy_current_buffer->yy_n_chars = yy_n_chars = 0;
  2695. else
  2696. {
  2697. int num_to_read =
  2698. yy_current_buffer->yy_buf_size - number_to_move - 1;
  2699. while ( num_to_read <= 0 )
  2700. { /* Not enough room in the buffer - grow it. */
  2701. #ifdef YY_USES_REJECT
  2702. YY_FATAL_ERROR(
  2703. "input buffer overflow, can't enlarge buffer because scanner uses REJECT" );
  2704. #else
  2705. /* just a shorter name for the current buffer */
  2706. YY_BUFFER_STATE b = yy_current_buffer;
  2707. int yy_c_buf_p_offset =
  2708. (int) (yy_c_buf_p - b->yy_ch_buf);
  2709. if ( b->yy_is_our_buffer )
  2710. {
  2711. int new_size = b->yy_buf_size * 2;
  2712. if ( new_size <= 0 )
  2713. b->yy_buf_size += b->yy_buf_size / 8;
  2714. else
  2715. b->yy_buf_size *= 2;
  2716. b->yy_ch_buf = (char *)
  2717. /* Include room in for 2 EOB chars. */
  2718. yy_flex_realloc( (void *) b->yy_ch_buf,
  2719. b->yy_buf_size + 2 );
  2720. }
  2721. else
  2722. /* Can't grow it, we don't own it. */
  2723. b->yy_ch_buf = 0;
  2724. if ( ! b->yy_ch_buf )
  2725. YY_FATAL_ERROR(
  2726. "fatal error - scanner input buffer overflow" );
  2727. yy_c_buf_p = &b->yy_ch_buf[yy_c_buf_p_offset];
  2728. num_to_read = yy_current_buffer->yy_buf_size -
  2729. number_to_move - 1;
  2730. #endif
  2731. }
  2732. if ( num_to_read > YY_READ_BUF_SIZE )
  2733. num_to_read = YY_READ_BUF_SIZE;
  2734. /* Read in more data. */
  2735. YY_INPUT( (&yy_current_buffer->yy_ch_buf[number_to_move]),
  2736. yy_n_chars, num_to_read );
  2737. yy_current_buffer->yy_n_chars = yy_n_chars;
  2738. }
  2739. if ( yy_n_chars == 0 )
  2740. {
  2741. if ( number_to_move == YY_MORE_ADJ )
  2742. {
  2743. ret_val = EOB_ACT_END_OF_FILE;
  2744. yyrestart( yyin );
  2745. }
  2746. else
  2747. {
  2748. ret_val = EOB_ACT_LAST_MATCH;
  2749. yy_current_buffer->yy_buffer_status =
  2750. YY_BUFFER_EOF_PENDING;
  2751. }
  2752. }
  2753. else
  2754. ret_val = EOB_ACT_CONTINUE_SCAN;
  2755. yy_n_chars += number_to_move;
  2756. yy_current_buffer->yy_ch_buf[yy_n_chars] = YY_END_OF_BUFFER_CHAR;
  2757. yy_current_buffer->yy_ch_buf[yy_n_chars + 1] = YY_END_OF_BUFFER_CHAR;
  2758. yytext_ptr = &yy_current_buffer->yy_ch_buf[0];
  2759. return ret_val;
  2760. }
  2761. /* yy_get_previous_state - get the state just before the EOB char was reached */
  2762. static yy_state_type yy_get_previous_state()
  2763. {
  2764. yy_state_type yy_current_state;
  2765. char *yy_cp;
  2766. yy_current_state = yy_start;
  2767. yy_current_state += YY_AT_BOL();
  2768. for ( yy_cp = yytext_ptr + YY_MORE_ADJ; yy_cp < yy_c_buf_p; ++yy_cp )
  2769. {
  2770. YY_CHAR yy_c = (*yy_cp ? yy_ec[YY_SC_TO_UI(*yy_cp)] : 1);
  2771. if ( yy_accept[yy_current_state] )
  2772. {
  2773. yy_last_accepting_state = yy_current_state;
  2774. yy_last_accepting_cpos = yy_cp;
  2775. }
  2776. while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state )
  2777. {
  2778. yy_current_state = (int) yy_def[yy_current_state];
  2779. if ( yy_current_state >= 769 )
  2780. yy_c = yy_meta[(unsigned int) yy_c];
  2781. }
  2782. yy_current_state = yy_nxt[yy_base[yy_current_state] + (unsigned int) yy_c];
  2783. }
  2784. return yy_current_state;
  2785. }
  2786. /* yy_try_NUL_trans - try to make a transition on the NUL character
  2787. *
  2788. * synopsis
  2789. * next_state = yy_try_NUL_trans( current_state );
  2790. */
  2791. #ifdef YY_USE_PROTOS
  2792. static yy_state_type yy_try_NUL_trans( yy_state_type yy_current_state )
  2793. #else
  2794. static yy_state_type yy_try_NUL_trans( yy_current_state )
  2795. yy_state_type yy_current_state;
  2796. #endif
  2797. {
  2798. int yy_is_jam;
  2799. char *yy_cp = yy_c_buf_p;
  2800. YY_CHAR yy_c = 1;
  2801. if ( yy_accept[yy_current_state] )
  2802. {
  2803. yy_last_accepting_state = yy_current_state;
  2804. yy_last_accepting_cpos = yy_cp;
  2805. }
  2806. while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state )
  2807. {
  2808. yy_current_state = (int) yy_def[yy_current_state];
  2809. if ( yy_current_state >= 769 )
  2810. yy_c = yy_meta[(unsigned int) yy_c];
  2811. }
  2812. yy_current_state = yy_nxt[yy_base[yy_current_state] + (unsigned int) yy_c];
  2813. yy_is_jam = (yy_current_state == 768);
  2814. return yy_is_jam ? 0 : yy_current_state;
  2815. }
  2816. #ifndef YY_NO_UNPUT
  2817. #ifdef YY_USE_PROTOS
  2818. static void yyunput( int c, char *yy_bp )
  2819. #else
  2820. static void yyunput( c, yy_bp )
  2821. int c;
  2822. char *yy_bp;
  2823. #endif
  2824. {
  2825. char *yy_cp = yy_c_buf_p;
  2826. /* undo effects of setting up yytext */
  2827. *yy_cp = yy_hold_char;
  2828. if ( yy_cp < yy_current_buffer->yy_ch_buf + 2 )
  2829. { /* need to shift things up to make room */
  2830. /* +2 for EOB chars. */
  2831. int number_to_move = yy_n_chars + 2;
  2832. char *dest = &yy_current_buffer->yy_ch_buf[
  2833. yy_current_buffer->yy_buf_size + 2];
  2834. char *source =
  2835. &yy_current_buffer->yy_ch_buf[number_to_move];
  2836. while ( source > yy_current_buffer->yy_ch_buf )
  2837. *--dest = *--source;
  2838. yy_cp += (int) (dest - source);
  2839. yy_bp += (int) (dest - source);
  2840. yy_current_buffer->yy_n_chars =
  2841. yy_n_chars = yy_current_buffer->yy_buf_size;
  2842. if ( yy_cp < yy_current_buffer->yy_ch_buf + 2 )
  2843. YY_FATAL_ERROR( "flex scanner push-back overflow" );
  2844. }
  2845. *--yy_cp = (char) c;
  2846. yytext_ptr = yy_bp;
  2847. yy_hold_char = *yy_cp;
  2848. yy_c_buf_p = yy_cp;
  2849. }
  2850. #endif /* ifndef YY_NO_UNPUT */
  2851. #ifdef __cplusplus
  2852. static int yyinput()
  2853. #else
  2854. static int input()
  2855. #endif
  2856. {
  2857. int c;
  2858. *yy_c_buf_p = yy_hold_char;
  2859. if ( *yy_c_buf_p == YY_END_OF_BUFFER_CHAR )
  2860. {
  2861. /* yy_c_buf_p now points to the character we want to return.
  2862. * If this occurs *before* the EOB characters, then it's a
  2863. * valid NUL; if not, then we've hit the end of the buffer.
  2864. */
  2865. if ( yy_c_buf_p < &yy_current_buffer->yy_ch_buf[yy_n_chars] )
  2866. /* This was really a NUL. */
  2867. *yy_c_buf_p = '\0';
  2868. else
  2869. { /* need more input */
  2870. int offset = yy_c_buf_p - yytext_ptr;
  2871. ++yy_c_buf_p;
  2872. switch ( yy_get_next_buffer() )
  2873. {
  2874. case EOB_ACT_LAST_MATCH:
  2875. /* This happens because yy_g_n_b()
  2876. * sees that we've accumulated a
  2877. * token and flags that we need to
  2878. * try matching the token before
  2879. * proceeding. But for input(),
  2880. * there's no matching to consider.
  2881. * So convert the EOB_ACT_LAST_MATCH
  2882. * to EOB_ACT_END_OF_FILE.
  2883. */
  2884. /* Reset buffer status. */
  2885. yyrestart( yyin );
  2886. /* fall through */
  2887. case EOB_ACT_END_OF_FILE:
  2888. {
  2889. if ( yywrap() )
  2890. return EOF;
  2891. if ( ! yy_did_buffer_switch_on_eof )
  2892. YY_NEW_FILE;
  2893. #ifdef __cplusplus
  2894. return yyinput();
  2895. #else
  2896. return input();
  2897. #endif
  2898. }
  2899. case EOB_ACT_CONTINUE_SCAN:
  2900. yy_c_buf_p = yytext_ptr + offset;
  2901. break;
  2902. }
  2903. }
  2904. }
  2905. c = *(unsigned char *) yy_c_buf_p; /* cast for 8-bit char's */
  2906. *yy_c_buf_p = '\0'; /* preserve yytext */
  2907. yy_hold_char = *++yy_c_buf_p;
  2908. yy_current_buffer->yy_at_bol = (c == '\n');
  2909. return c;
  2910. }
  2911. #ifdef YY_USE_PROTOS
  2912. void yyrestart( FILE *input_file )
  2913. #else
  2914. void yyrestart( input_file )
  2915. FILE *input_file;
  2916. #endif
  2917. {
  2918. if ( ! yy_current_buffer )
  2919. yy_current_buffer = yy_create_buffer( yyin, YY_BUF_SIZE );
  2920. yy_init_buffer( yy_current_buffer, input_file );
  2921. yy_load_buffer_state();
  2922. }
  2923. #ifdef YY_USE_PROTOS
  2924. void yy_switch_to_buffer( YY_BUFFER_STATE new_buffer )
  2925. #else
  2926. void yy_switch_to_buffer( new_buffer )
  2927. YY_BUFFER_STATE new_buffer;
  2928. #endif
  2929. {
  2930. if ( yy_current_buffer == new_buffer )
  2931. return;
  2932. if ( yy_current_buffer )
  2933. {
  2934. /* Flush out information for old buffer. */
  2935. *yy_c_buf_p = yy_hold_char;
  2936. yy_current_buffer->yy_buf_pos = yy_c_buf_p;
  2937. yy_current_buffer->yy_n_chars = yy_n_chars;
  2938. }
  2939. yy_current_buffer = new_buffer;
  2940. yy_load_buffer_state();
  2941. /* We don't actually know whether we did this switch during
  2942. * EOF (yywrap()) processing, but the only time this flag
  2943. * is looked at is after yywrap() is called, so it's safe
  2944. * to go ahead and always set it.
  2945. */
  2946. yy_did_buffer_switch_on_eof = 1;
  2947. }
  2948. #ifdef YY_USE_PROTOS
  2949. void yy_load_buffer_state( void )
  2950. #else
  2951. void yy_load_buffer_state()
  2952. #endif
  2953. {
  2954. yy_n_chars = yy_current_buffer->yy_n_chars;
  2955. yytext_ptr = yy_c_buf_p = yy_current_buffer->yy_buf_pos;
  2956. yyin = yy_current_buffer->yy_input_file;
  2957. yy_hold_char = *yy_c_buf_p;
  2958. }
  2959. #ifdef YY_USE_PROTOS
  2960. YY_BUFFER_STATE yy_create_buffer( FILE *file, int size )
  2961. #else
  2962. YY_BUFFER_STATE yy_create_buffer( file, size )
  2963. FILE *file;
  2964. int size;
  2965. #endif
  2966. {
  2967. YY_BUFFER_STATE b;
  2968. b = (YY_BUFFER_STATE) yy_flex_alloc( sizeof( struct yy_buffer_state ) );
  2969. if ( ! b )
  2970. YY_FATAL_ERROR( "out of dynamic memory in yy_create_buffer()" );
  2971. b->yy_buf_size = size;
  2972. /* yy_ch_buf has to be 2 characters longer than the size given because
  2973. * we need to put in 2 end-of-buffer characters.
  2974. */
  2975. b->yy_ch_buf = (char *) yy_flex_alloc( b->yy_buf_size + 2 );
  2976. if ( ! b->yy_ch_buf )
  2977. YY_FATAL_ERROR( "out of dynamic memory in yy_create_buffer()" );
  2978. b->yy_is_our_buffer = 1;
  2979. yy_init_buffer( b, file );
  2980. return b;
  2981. }
  2982. #ifdef YY_USE_PROTOS
  2983. void yy_delete_buffer( YY_BUFFER_STATE b )
  2984. #else
  2985. void yy_delete_buffer( b )
  2986. YY_BUFFER_STATE b;
  2987. #endif
  2988. {
  2989. if ( ! b )
  2990. return;
  2991. if ( b == yy_current_buffer )
  2992. yy_current_buffer = (YY_BUFFER_STATE) 0;
  2993. if ( b->yy_is_our_buffer )
  2994. yy_flex_free( (void *) b->yy_ch_buf );
  2995. yy_flex_free( (void *) b );
  2996. }
  2997. #ifndef _WIN32
  2998. #include <unistd.h>
  2999. #else
  3000. #include <io.h>
  3001. #endif
  3002. #ifdef YY_USE_PROTOS
  3003. void yy_init_buffer( YY_BUFFER_STATE b, FILE *file )
  3004. #else
  3005. void yy_init_buffer( b, file )
  3006. YY_BUFFER_STATE b;
  3007. FILE *file;
  3008. #endif
  3009. {
  3010. yy_flush_buffer( b );
  3011. b->yy_input_file = file;
  3012. b->yy_fill_buffer = 1;
  3013. #if YY_ALWAYS_INTERACTIVE
  3014. b->yy_is_interactive = 1;
  3015. #else
  3016. #if YY_NEVER_INTERACTIVE
  3017. b->yy_is_interactive = 0;
  3018. #else
  3019. b->yy_is_interactive = file ? (isatty( fileno(file) ) > 0) : 0;
  3020. #endif
  3021. #endif
  3022. }
  3023. #ifdef YY_USE_PROTOS
  3024. void yy_flush_buffer( YY_BUFFER_STATE b )
  3025. #else
  3026. void yy_flush_buffer( b )
  3027. YY_BUFFER_STATE b;
  3028. #endif
  3029. {
  3030. if ( ! b )
  3031. return;
  3032. b->yy_n_chars = 0;
  3033. /* We always need two end-of-buffer characters. The first causes
  3034. * a transition to the end-of-buffer state. The second causes
  3035. * a jam in that state.
  3036. */
  3037. b->yy_ch_buf[0] = YY_END_OF_BUFFER_CHAR;
  3038. b->yy_ch_buf[1] = YY_END_OF_BUFFER_CHAR;
  3039. b->yy_buf_pos = &b->yy_ch_buf[0];
  3040. b->yy_at_bol = 1;
  3041. b->yy_buffer_status = YY_BUFFER_NEW;
  3042. if ( b == yy_current_buffer )
  3043. yy_load_buffer_state();
  3044. }
  3045. #ifndef YY_NO_SCAN_BUFFER
  3046. #ifdef YY_USE_PROTOS
  3047. YY_BUFFER_STATE yy_scan_buffer( char *base, yy_size_t size )
  3048. #else
  3049. YY_BUFFER_STATE yy_scan_buffer( base, size )
  3050. char *base;
  3051. yy_size_t size;
  3052. #endif
  3053. {
  3054. YY_BUFFER_STATE b;
  3055. if ( size < 2 ||
  3056. base[size-2] != YY_END_OF_BUFFER_CHAR ||
  3057. base[size-1] != YY_END_OF_BUFFER_CHAR )
  3058. /* They forgot to leave room for the EOB's. */
  3059. return 0;
  3060. b = (YY_BUFFER_STATE) yy_flex_alloc( sizeof( struct yy_buffer_state ) );
  3061. if ( ! b )
  3062. YY_FATAL_ERROR( "out of dynamic memory in yy_scan_buffer()" );
  3063. b->yy_buf_size = size - 2; /* "- 2" to take care of EOB's */
  3064. b->yy_buf_pos = b->yy_ch_buf = base;
  3065. b->yy_is_our_buffer = 0;
  3066. b->yy_input_file = 0;
  3067. b->yy_n_chars = b->yy_buf_size;
  3068. b->yy_is_interactive = 0;
  3069. b->yy_at_bol = 1;
  3070. b->yy_fill_buffer = 0;
  3071. b->yy_buffer_status = YY_BUFFER_NEW;
  3072. yy_switch_to_buffer( b );
  3073. return b;
  3074. }
  3075. #endif
  3076. #ifndef YY_NO_SCAN_STRING
  3077. #ifdef YY_USE_PROTOS
  3078. YY_BUFFER_STATE yy_scan_string( yyconst char *yy_str )
  3079. #else
  3080. YY_BUFFER_STATE yy_scan_string( yy_str )
  3081. yyconst char *yy_str;
  3082. #endif
  3083. {
  3084. int len;
  3085. for ( len = 0; yy_str[len]; ++len )
  3086. ;
  3087. return yy_scan_bytes( yy_str, len );
  3088. }
  3089. #endif
  3090. #ifndef YY_NO_SCAN_BYTES
  3091. #ifdef YY_USE_PROTOS
  3092. YY_BUFFER_STATE yy_scan_bytes( yyconst char *bytes, int len )
  3093. #else
  3094. YY_BUFFER_STATE yy_scan_bytes( bytes, len )
  3095. yyconst char *bytes;
  3096. int len;
  3097. #endif
  3098. {
  3099. YY_BUFFER_STATE b;
  3100. char *buf;
  3101. yy_size_t n;
  3102. int i;
  3103. /* Get memory for full buffer, including space for trailing EOB's. */
  3104. n = len + 2;
  3105. buf = (char *) yy_flex_alloc( n );
  3106. if ( ! buf )
  3107. YY_FATAL_ERROR( "out of dynamic memory in yy_scan_bytes()" );
  3108. for ( i = 0; i < len; ++i )
  3109. buf[i] = bytes[i];
  3110. buf[len] = buf[len+1] = YY_END_OF_BUFFER_CHAR;
  3111. b = yy_scan_buffer( buf, n );
  3112. if ( ! b )
  3113. YY_FATAL_ERROR( "bad buffer in yy_scan_bytes()" );
  3114. /* It's okay to grow etc. this buffer, and we should throw it
  3115. * away when we're done.
  3116. */
  3117. b->yy_is_our_buffer = 1;
  3118. return b;
  3119. }
  3120. #endif
  3121. #ifndef YY_NO_PUSH_STATE
  3122. #ifdef YY_USE_PROTOS
  3123. static void yy_push_state( int new_state )
  3124. #else
  3125. static void yy_push_state( new_state )
  3126. int new_state;
  3127. #endif
  3128. {
  3129. if ( yy_start_stack_ptr >= yy_start_stack_depth )
  3130. {
  3131. yy_size_t new_size;
  3132. yy_start_stack_depth += YY_START_STACK_INCR;
  3133. new_size = yy_start_stack_depth * sizeof( int );
  3134. if ( ! yy_start_stack )
  3135. yy_start_stack = (int *) yy_flex_alloc( new_size );
  3136. else
  3137. yy_start_stack = (int *) yy_flex_realloc(
  3138. (void *) yy_start_stack, new_size );
  3139. if ( ! yy_start_stack )
  3140. YY_FATAL_ERROR(
  3141. "out of memory expanding start-condition stack" );
  3142. }
  3143. yy_start_stack[yy_start_stack_ptr++] = YY_START;
  3144. BEGIN(new_state);
  3145. }
  3146. #endif
  3147. #ifndef YY_NO_POP_STATE
  3148. static void yy_pop_state()
  3149. {
  3150. if ( --yy_start_stack_ptr < 0 )
  3151. YY_FATAL_ERROR( "start-condition stack underflow" );
  3152. BEGIN(yy_start_stack[yy_start_stack_ptr]);
  3153. }
  3154. #endif
  3155. #ifndef YY_NO_TOP_STATE
  3156. static int yy_top_state()
  3157. {
  3158. return yy_start_stack[yy_start_stack_ptr - 1];
  3159. }
  3160. #endif
  3161. #ifndef YY_EXIT_FAILURE
  3162. #define YY_EXIT_FAILURE 2
  3163. #endif
  3164. #ifdef YY_USE_PROTOS
  3165. static void yy_fatal_error( yyconst char msg[] )
  3166. #else
  3167. static void yy_fatal_error( msg )
  3168. char msg[];
  3169. #endif
  3170. {
  3171. (void) fprintf( stderr, "%s\n", msg );
  3172. exit( YY_EXIT_FAILURE );
  3173. }
  3174. /* Redefine yyless() so it works in section 3 code. */
  3175. #undef yyless
  3176. #define yyless(n) \
  3177. do \
  3178. { \
  3179. /* Undo effects of setting up yytext. */ \
  3180. yytext[yyleng] = yy_hold_char; \
  3181. yy_c_buf_p = yytext + n; \
  3182. yy_hold_char = *yy_c_buf_p; \
  3183. *yy_c_buf_p = '\0'; \
  3184. yyleng = n; \
  3185. } \
  3186. while ( 0 )
  3187. /* Internal utility routines. */
  3188. #ifndef yytext_ptr
  3189. #ifdef YY_USE_PROTOS
  3190. static void yy_flex_strncpy( char *s1, yyconst char *s2, int n )
  3191. #else
  3192. static void yy_flex_strncpy( s1, s2, n )
  3193. char *s1;
  3194. yyconst char *s2;
  3195. int n;
  3196. #endif
  3197. {
  3198. int i;
  3199. for ( i = 0; i < n; ++i )
  3200. s1[i] = s2[i];
  3201. }
  3202. #endif
  3203. #ifdef YY_NEED_STRLEN
  3204. #ifdef YY_USE_PROTOS
  3205. static int yy_flex_strlen( yyconst char *s )
  3206. #else
  3207. static int yy_flex_strlen( s )
  3208. yyconst char *s;
  3209. #endif
  3210. {
  3211. int n;
  3212. for ( n = 0; s[n]; ++n )
  3213. ;
  3214. return n;
  3215. }
  3216. #endif
  3217. #ifdef YY_USE_PROTOS
  3218. static void *yy_flex_alloc( yy_size_t size )
  3219. #else
  3220. static void *yy_flex_alloc( size )
  3221. yy_size_t size;
  3222. #endif
  3223. {
  3224. return (void *) malloc( size );
  3225. }
  3226. #ifdef YY_USE_PROTOS
  3227. static void *yy_flex_realloc( void *ptr, yy_size_t size )
  3228. #else
  3229. static void *yy_flex_realloc( ptr, size )
  3230. void *ptr;
  3231. yy_size_t size;
  3232. #endif
  3233. {
  3234. /* The cast to (char *) in the following accommodates both
  3235. * implementations that use char* generic pointers, and those
  3236. * that use void* generic pointers. It works with the latter
  3237. * because both ANSI C and C++ allow castless assignment from
  3238. * any pointer type to void*, and deal with argument conversions
  3239. * as though doing an assignment.
  3240. */
  3241. return (void *) realloc( (char *) ptr, size );
  3242. }
  3243. #ifdef YY_USE_PROTOS
  3244. static void yy_flex_free( void *ptr )
  3245. #else
  3246. static void yy_flex_free( ptr )
  3247. void *ptr;
  3248. #endif
  3249. {
  3250. free( ptr );
  3251. }
  3252. #if YY_MAIN
  3253. int main()
  3254. {
  3255. yylex();
  3256. return 0;
  3257. }
  3258. #endif
  3259. #line 700 "scan.l"
  3260. int yywrap()
  3261. {
  3262. if ( --num_input_files > 0 )
  3263. {
  3264. set_input_file( *++input_files );
  3265. return 0;
  3266. }
  3267. else
  3268. return 1;
  3269. }
  3270. /* set_input_file - open the given file (if NULL, stdin) for scanning */
  3271. void set_input_file( file )
  3272. char *file;
  3273. {
  3274. if ( file && strcmp( file, "-" ) )
  3275. {
  3276. infilename = copy_string( file );
  3277. yyin = fopen( infilename, "r" );
  3278. if ( yyin == NULL )
  3279. lerrsf( _( "can't open %s" ), file );
  3280. }
  3281. else
  3282. {
  3283. yyin = stdin;
  3284. infilename = copy_string( "<stdin>" );
  3285. }
  3286. linenum = 1;
  3287. }
  3288. /* Wrapper routines for accessing the scanner's malloc routines. */
  3289. void *flex_alloc( size )
  3290. size_t size;
  3291. {
  3292. return (void *) malloc( size );
  3293. }
  3294. void *flex_realloc( ptr, size )
  3295. void *ptr;
  3296. size_t size;
  3297. {
  3298. return (void *) realloc( ptr, size );
  3299. }
  3300. void flex_free( ptr )
  3301. void *ptr;
  3302. {
  3303. if ( ptr )
  3304. free( ptr );
  3305. }