_rc1.0_lexer.cpp 64 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473
  1. #define yy_create_buffer rc10__create_buffer
  2. #define yy_delete_buffer rc10__delete_buffer
  3. #define yy_scan_buffer rc10__scan_buffer
  4. #define yy_scan_string rc10__scan_string
  5. #define yy_scan_bytes rc10__scan_bytes
  6. #define yy_flex_debug rc10__flex_debug
  7. #define yy_init_buffer rc10__init_buffer
  8. #define yy_flush_buffer rc10__flush_buffer
  9. #define yy_load_buffer_state rc10__load_buffer_state
  10. #define yy_switch_to_buffer rc10__switch_to_buffer
  11. #define yyin rc10_in
  12. #define yyleng rc10_leng
  13. #define yylex rc10_lex
  14. #define yyout rc10_out
  15. #define yyrestart rc10_restart
  16. #define yytext rc10_text
  17. #define yywrap rc10_wrap
  18. #line 20 "_rc1.0_lexer.cpp"
  19. /* A lexical scanner generated by flex */
  20. /* Scanner skeleton version:
  21. * $Header: /home/shared/backups/ogre/cvs/ogrenew/RenderSystems/GL/src/nvparse/_rc1.0_lexer.cpp,v 1.5 2005-07-08 16:51:23 miathan6 Exp $
  22. */
  23. #define FLEX_SCANNER
  24. #define YY_FLEX_MAJOR_VERSION 2
  25. #define YY_FLEX_MINOR_VERSION 5
  26. #include <stdio.h>
  27. #include <unistd.h>
  28. /* cfront 1.2 defines "c_plusplus" instead of "__cplusplus" */
  29. #ifdef c_plusplus
  30. #ifndef __cplusplus
  31. #define __cplusplus
  32. #endif
  33. #endif
  34. #ifdef __cplusplus
  35. #include <stdlib.h>
  36. /* Use prototypes in function declarations. */
  37. #define YY_USE_PROTOS
  38. /* The "const" storage-class-modifier is valid. */
  39. #define YY_USE_CONST
  40. /* yyunput is never used */
  41. #define YY_NO_UNPUT
  42. #else /* ! __cplusplus */
  43. #if __STDC__
  44. #define YY_USE_PROTOS
  45. #define YY_USE_CONST
  46. #endif /* __STDC__ */
  47. #endif /* ! __cplusplus */
  48. #ifdef __TURBOC__
  49. #pragma warn -rch
  50. #pragma warn -use
  51. #include <io.h>
  52. #include <stdlib.h>
  53. #define YY_USE_CONST
  54. #define YY_USE_PROTOS
  55. #endif
  56. #ifdef YY_USE_CONST
  57. #define yyconst const
  58. #else
  59. #define yyconst
  60. #endif
  61. #ifdef YY_USE_PROTOS
  62. #define YY_PROTO(proto) proto
  63. #else
  64. #define YY_PROTO(proto) ()
  65. #endif
  66. /* Returned upon end-of-file. */
  67. #define YY_NULL 0
  68. /* Promotes a possibly negative, possibly signed char to an unsigned
  69. * integer for use as an array index. If the signed char is negative,
  70. * we want to instead treat it as an 8-bit unsigned char, hence the
  71. * double cast.
  72. */
  73. #define YY_SC_TO_UI(c) ((unsigned int) (unsigned char) c)
  74. /* Enter a start condition. This macro really ought to take a parameter,
  75. * but we do it the disgusting crufty way forced on us by the ()-less
  76. * definition of BEGIN.
  77. */
  78. #define BEGIN yy_start = 1 + 2 *
  79. /* Translate the current start state into a value that can be later handed
  80. * to BEGIN to return to the state. The YYSTATE alias is for lex
  81. * compatibility.
  82. */
  83. #define YY_START ((yy_start - 1) / 2)
  84. #define YYSTATE YY_START
  85. /* Action number for EOF rule of a given start state. */
  86. #define YY_STATE_EOF(state) (YY_END_OF_BUFFER + state + 1)
  87. /* Special action meaning "start processing a new file". */
  88. #define YY_NEW_FILE yyrestart( yyin )
  89. #define YY_END_OF_BUFFER_CHAR 0
  90. /* Size of default input buffer. */
  91. #define YY_BUF_SIZE 16384
  92. typedef struct yy_buffer_state *YY_BUFFER_STATE;
  93. extern int yyleng;
  94. extern FILE *yyin, *yyout;
  95. #define EOB_ACT_CONTINUE_SCAN 0
  96. #define EOB_ACT_END_OF_FILE 1
  97. #define EOB_ACT_LAST_MATCH 2
  98. /* The funky do-while in the following #define is used to turn the definition
  99. * int a single C statement (which needs a semi-colon terminator). This
  100. * avoids problems with code like:
  101. *
  102. * if ( condition_holds )
  103. * yyless( 5 );
  104. * else
  105. * do_something_else();
  106. *
  107. * Prior to using the do-while the compiler would get upset at the
  108. * "else" because it interpreted the "if" statement as being all
  109. * done when it reached the ';' after the yyless() call.
  110. */
  111. /* Return all but the first 'n' matched characters back to the input stream. */
  112. #define yyless(n) \
  113. do \
  114. { \
  115. /* Undo effects of setting up yytext. */ \
  116. *yy_cp = yy_hold_char; \
  117. YY_RESTORE_YY_MORE_OFFSET \
  118. yy_c_buf_p = yy_cp = yy_bp + n - YY_MORE_ADJ; \
  119. YY_DO_BEFORE_ACTION; /* set up yytext again */ \
  120. } \
  121. while ( 0 )
  122. #define unput(c) yyunput( c, yytext_ptr )
  123. /* The following is because we cannot portably get our hands on size_t
  124. * (without autoconf's help, which isn't available because we want
  125. * flex-generated scanners to compile on their own).
  126. */
  127. typedef unsigned int yy_size_t;
  128. struct yy_buffer_state
  129. {
  130. FILE *yy_input_file;
  131. char *yy_ch_buf; /* input buffer */
  132. char *yy_buf_pos; /* current position in input buffer */
  133. /* Size of input buffer in bytes, not including room for EOB
  134. * characters.
  135. */
  136. yy_size_t yy_buf_size;
  137. /* Number of characters read into yy_ch_buf, not including EOB
  138. * characters.
  139. */
  140. int yy_n_chars;
  141. /* Whether we "own" the buffer - i.e., we know we created it,
  142. * and can realloc() it to grow it, and should free() it to
  143. * delete it.
  144. */
  145. int yy_is_our_buffer;
  146. /* Whether this is an "interactive" input source; if so, and
  147. * if we're using stdio for input, then we want to use getc()
  148. * instead of fread(), to make sure we stop fetching input after
  149. * each newline.
  150. */
  151. int yy_is_interactive;
  152. /* Whether we're considered to be at the beginning of a line.
  153. * If so, '^' rules will be active on the next match, otherwise
  154. * not.
  155. */
  156. int yy_at_bol;
  157. /* Whether to try to fill the input buffer when we reach the
  158. * end of it.
  159. */
  160. int yy_fill_buffer;
  161. int yy_buffer_status;
  162. #define YY_BUFFER_NEW 0
  163. #define YY_BUFFER_NORMAL 1
  164. /* When an EOF's been seen but there's still some text to process
  165. * then we mark the buffer as YY_EOF_PENDING, to indicate that we
  166. * shouldn't try reading from the input source any more. We might
  167. * still have a bunch of tokens to match, though, because of
  168. * possible backing-up.
  169. *
  170. * When we actually see the EOF, we change the status to "new"
  171. * (via yyrestart()), so that the user can continue scanning by
  172. * just pointing yyin at a new input file.
  173. */
  174. #define YY_BUFFER_EOF_PENDING 2
  175. };
  176. static YY_BUFFER_STATE yy_current_buffer = 0;
  177. /* We provide macros for accessing buffer states in case in the
  178. * future we want to put the buffer states in a more general
  179. * "scanner state".
  180. */
  181. #define YY_CURRENT_BUFFER yy_current_buffer
  182. /* yy_hold_char holds the character lost when yytext is formed. */
  183. static char yy_hold_char;
  184. static int yy_n_chars; /* number of characters read into yy_ch_buf */
  185. int yyleng;
  186. /* Points to current character in buffer. */
  187. static char *yy_c_buf_p = (char *) 0;
  188. static int yy_init = 1; /* whether we need to initialize */
  189. static int yy_start = 0; /* start state number */
  190. /* Flag which is used to allow yywrap()'s to do buffer switches
  191. * instead of setting up a fresh yyin. A bit of a hack ...
  192. */
  193. static int yy_did_buffer_switch_on_eof;
  194. void yyrestart YY_PROTO(( FILE *input_file ));
  195. void yy_switch_to_buffer YY_PROTO(( YY_BUFFER_STATE new_buffer ));
  196. void yy_load_buffer_state YY_PROTO(( void ));
  197. YY_BUFFER_STATE yy_create_buffer YY_PROTO(( FILE *file, int size ));
  198. void yy_delete_buffer YY_PROTO(( YY_BUFFER_STATE b ));
  199. void yy_init_buffer YY_PROTO(( YY_BUFFER_STATE b, FILE *file ));
  200. void yy_flush_buffer YY_PROTO(( YY_BUFFER_STATE b ));
  201. #define YY_FLUSH_BUFFER yy_flush_buffer( yy_current_buffer )
  202. YY_BUFFER_STATE yy_scan_buffer YY_PROTO(( char *base, yy_size_t size ));
  203. YY_BUFFER_STATE yy_scan_string YY_PROTO(( yyconst char *yy_str ));
  204. YY_BUFFER_STATE yy_scan_bytes YY_PROTO(( yyconst char *bytes, int len ));
  205. static void *yy_flex_alloc YY_PROTO(( yy_size_t ));
  206. static void *yy_flex_realloc YY_PROTO(( void *, yy_size_t ));
  207. static void yy_flex_free YY_PROTO(( void * ));
  208. #define yy_new_buffer yy_create_buffer
  209. #define yy_set_interactive(is_interactive) \
  210. { \
  211. if ( ! yy_current_buffer ) \
  212. yy_current_buffer = yy_create_buffer( yyin, YY_BUF_SIZE ); \
  213. yy_current_buffer->yy_is_interactive = is_interactive; \
  214. }
  215. #define yy_set_bol(at_bol) \
  216. { \
  217. if ( ! yy_current_buffer ) \
  218. yy_current_buffer = yy_create_buffer( yyin, YY_BUF_SIZE ); \
  219. yy_current_buffer->yy_at_bol = at_bol; \
  220. }
  221. #define YY_AT_BOL() (yy_current_buffer->yy_at_bol)
  222. typedef unsigned char YY_CHAR;
  223. FILE *yyin = (FILE *) 0, *yyout = (FILE *) 0;
  224. typedef int yy_state_type;
  225. extern char *yytext;
  226. #define yytext_ptr yytext
  227. static yy_state_type yy_get_previous_state YY_PROTO(( void ));
  228. static yy_state_type yy_try_NUL_trans YY_PROTO(( yy_state_type current_state ));
  229. static int yy_get_next_buffer YY_PROTO(( void ));
  230. static void yy_fatal_error YY_PROTO(( yyconst char msg[] ));
  231. /* Done after the current pattern has been matched and before the
  232. * corresponding action - sets up yytext.
  233. */
  234. #define YY_DO_BEFORE_ACTION \
  235. yytext_ptr = yy_bp; \
  236. yyleng = (int) (yy_cp - yy_bp); \
  237. yy_hold_char = *yy_cp; \
  238. *yy_cp = '\0'; \
  239. yy_c_buf_p = yy_cp;
  240. #define YY_NUM_RULES 94
  241. #define YY_END_OF_BUFFER 95
  242. static yyconst short int yy_accept[309] =
  243. { 0,
  244. 0, 0, 95, 94, 92, 91, 94, 94, 3, 82,
  245. 83, 87, 89, 85, 88, 86, 94, 79, 84, 90,
  246. 93, 93, 93, 93, 93, 93, 93, 93, 93, 93,
  247. 93, 93, 93, 93, 93, 93, 80, 81, 92, 91,
  248. 0, 0, 0, 79, 78, 1, 2, 77, 79, 93,
  249. 93, 93, 93, 93, 93, 93, 93, 93, 93, 93,
  250. 93, 93, 93, 93, 93, 93, 93, 93, 93, 93,
  251. 0, 77, 93, 93, 93, 93, 93, 93, 93, 93,
  252. 8, 93, 93, 66, 56, 93, 68, 93, 93, 67,
  253. 93, 93, 93, 0, 93, 93, 93, 12, 16, 93,
  254. 93, 93, 93, 93, 0, 93, 71, 0, 0, 93,
  255. 93, 28, 32, 36, 40, 93, 52, 0, 69, 93,
  256. 93, 0, 0, 93, 93, 93, 93, 93, 6, 7,
  257. 0, 93, 54, 55, 0, 59, 0, 93, 93, 0,
  258. 0, 0, 0, 93, 0, 0, 93, 93, 10, 11,
  259. 0, 14, 15, 0, 93, 44, 48, 93, 62, 93,
  260. 0, 93, 0, 0, 93, 20, 24, 26, 27, 0,
  261. 30, 31, 0, 34, 35, 0, 38, 39, 0, 93,
  262. 50, 51, 0, 4, 93, 93, 0, 0, 93, 0,
  263. 0, 57, 93, 5, 93, 53, 58, 93, 0, 0,
  264. 0, 0, 0, 0, 93, 0, 93, 93, 9, 13,
  265. 93, 42, 43, 0, 46, 47, 0, 93, 93, 93,
  266. 18, 19, 0, 22, 23, 0, 25, 29, 33, 37,
  267. 64, 49, 93, 93, 61, 0, 0, 93, 63, 93,
  268. 0, 0, 93, 93, 93, 41, 45, 93, 93, 93,
  269. 93, 17, 21, 93, 93, 93, 93, 93, 93, 93,
  270. 93, 93, 93, 93, 93, 93, 75, 93, 93, 93,
  271. 60, 76, 93, 93, 93, 93, 93, 93, 93, 70,
  272. 93, 65, 93, 93, 93, 74, 93, 93, 93, 93,
  273. 93, 93, 93, 73, 93, 93, 93, 93, 93, 93,
  274. 93, 93, 93, 93, 93, 93, 72, 0
  275. } ;
  276. static yyconst int yy_ec[256] =
  277. { 0,
  278. 1, 1, 1, 1, 1, 1, 1, 1, 2, 3,
  279. 1, 1, 4, 1, 1, 1, 1, 1, 1, 1,
  280. 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
  281. 1, 2, 5, 1, 6, 1, 1, 1, 1, 7,
  282. 8, 9, 10, 11, 12, 13, 14, 15, 16, 17,
  283. 18, 19, 19, 19, 19, 19, 19, 1, 20, 1,
  284. 21, 1, 1, 1, 22, 22, 23, 22, 22, 22,
  285. 22, 22, 22, 22, 22, 22, 22, 22, 22, 22,
  286. 22, 24, 22, 22, 22, 22, 22, 22, 22, 22,
  287. 1, 1, 1, 1, 25, 1, 26, 27, 28, 29,
  288. 30, 31, 32, 33, 34, 22, 22, 35, 36, 37,
  289. 38, 39, 22, 40, 41, 42, 43, 44, 45, 46,
  290. 47, 48, 49, 1, 50, 1, 1, 1, 1, 1,
  291. 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
  292. 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
  293. 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
  294. 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
  295. 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
  296. 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
  297. 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
  298. 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
  299. 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
  300. 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
  301. 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
  302. 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
  303. 1, 1, 1, 1, 1
  304. } ;
  305. static yyconst int yy_meta[51] =
  306. { 0,
  307. 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
  308. 1, 1, 2, 1, 2, 2, 2, 2, 2, 1,
  309. 1, 2, 2, 2, 2, 2, 2, 2, 2, 2,
  310. 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
  311. 2, 2, 2, 2, 2, 2, 2, 2, 1, 1
  312. } ;
  313. static yyconst short int yy_base[310] =
  314. { 0,
  315. 0, 0, 543, 544, 540, 544, 48, 536, 544, 544,
  316. 544, 544, 40, 544, 47, 52, 63, 63, 544, 544,
  317. 527, 48, 41, 60, 71, 61, 72, 73, 74, 75,
  318. 76, 77, 83, 78, 79, 84, 544, 544, 537, 544,
  319. 90, 514, 112, 119, 124, 544, 544, 129, 136, 524,
  320. 111, 89, 99, 143, 120, 144, 145, 88, 146, 147,
  321. 149, 87, 150, 152, 151, 158, 153, 154, 155, 157,
  322. 513, 157, 90, 172, 173, 178, 177, 175, 185, 186,
  323. 522, 188, 189, 521, 520, 519, 518, 191, 192, 517,
  324. 207, 193, 195, 513, 204, 216, 197, 515, 514, 194,
  325. 201, 218, 202, 222, 211, 227, 513, 219, 216, 234,
  326. 235, 512, 511, 510, 509, 236, 508, 507, 506, 240,
  327. 237, 234, 243, 241, 260, 242, 250, 259, 544, 544,
  328. 486, 258, 544, 544, 485, 544, 484, 264, 265, 260,
  329. 264, 266, 268, 275, 270, 500, 285, 286, 544, 544,
  330. 482, 544, 544, 481, 288, 499, 498, 289, 497, 292,
  331. 482, 290, 481, 480, 294, 493, 492, 544, 544, 472,
  332. 544, 544, 471, 544, 544, 470, 544, 544, 469, 296,
  333. 544, 544, 468, 544, 298, 300, 472, 471, 302, 290,
  334. 293, 484, 309, 544, 314, 544, 544, 312, 308, 310,
  335. 469, 465, 464, 463, 315, 461, 326, 329, 544, 544,
  336. 330, 544, 544, 455, 544, 544, 454, 333, 328, 340,
  337. 544, 544, 453, 544, 544, 452, 544, 544, 544, 544,
  338. 342, 544, 338, 334, 470, 455, 454, 341, 467, 343,
  339. 452, 451, 339, 344, 347, 544, 544, 345, 348, 362,
  340. 349, 544, 544, 364, 365, 367, 369, 366, 370, 376,
  341. 371, 377, 380, 382, 383, 385, 464, 390, 391, 389,
  342. 463, 460, 393, 394, 392, 395, 403, 398, 400, 457,
  343. 404, 245, 420, 415, 399, 208, 405, 414, 422, 425,
  344. 428, 430, 435, 436, 409, 439, 438, 440, 442, 443,
  345. 444, 446, 449, 447, 450, 456, 156, 544, 119
  346. } ;
  347. static yyconst short int yy_def[310] =
  348. { 0,
  349. 308, 1, 308, 308, 308, 308, 308, 308, 308, 308,
  350. 308, 308, 308, 308, 308, 308, 308, 309, 308, 308,
  351. 309, 309, 309, 309, 309, 309, 309, 309, 309, 309,
  352. 309, 309, 309, 309, 309, 309, 308, 308, 308, 308,
  353. 308, 308, 308, 308, 308, 308, 308, 308, 309, 309,
  354. 309, 309, 309, 309, 309, 309, 309, 309, 309, 309,
  355. 309, 309, 309, 309, 309, 309, 309, 309, 309, 309,
  356. 308, 308, 309, 309, 309, 309, 309, 309, 309, 309,
  357. 309, 309, 309, 309, 309, 309, 309, 309, 309, 309,
  358. 309, 309, 309, 308, 309, 309, 309, 309, 309, 309,
  359. 309, 309, 309, 309, 308, 309, 309, 308, 308, 309,
  360. 309, 309, 309, 309, 309, 309, 309, 308, 309, 309,
  361. 309, 308, 308, 309, 309, 309, 309, 309, 308, 308,
  362. 308, 309, 308, 308, 308, 308, 308, 309, 309, 308,
  363. 308, 308, 308, 309, 308, 308, 309, 309, 308, 308,
  364. 308, 308, 308, 308, 309, 309, 309, 309, 309, 309,
  365. 308, 309, 308, 308, 309, 309, 309, 308, 308, 308,
  366. 308, 308, 308, 308, 308, 308, 308, 308, 308, 309,
  367. 308, 308, 308, 308, 309, 309, 308, 308, 309, 308,
  368. 308, 309, 309, 308, 309, 308, 308, 309, 308, 308,
  369. 308, 308, 308, 308, 309, 308, 309, 309, 308, 308,
  370. 309, 308, 308, 308, 308, 308, 308, 309, 309, 309,
  371. 308, 308, 308, 308, 308, 308, 308, 308, 308, 308,
  372. 309, 308, 309, 309, 309, 308, 308, 309, 309, 309,
  373. 308, 308, 309, 309, 309, 308, 308, 309, 309, 309,
  374. 309, 308, 308, 309, 309, 309, 309, 309, 309, 309,
  375. 309, 309, 309, 309, 309, 309, 309, 309, 309, 309,
  376. 309, 309, 309, 309, 309, 309, 309, 309, 309, 309,
  377. 309, 309, 309, 309, 309, 309, 309, 309, 309, 309,
  378. 309, 309, 309, 309, 309, 309, 309, 309, 309, 309,
  379. 309, 309, 309, 309, 309, 309, 309, 0, 308
  380. } ;
  381. static yyconst short int yy_nxt[595] =
  382. { 0,
  383. 4, 5, 6, 7, 8, 9, 10, 11, 12, 13,
  384. 14, 15, 16, 17, 18, 18, 18, 18, 18, 19,
  385. 20, 21, 21, 21, 21, 22, 23, 24, 25, 26,
  386. 27, 21, 28, 21, 29, 30, 21, 31, 21, 32,
  387. 33, 34, 35, 21, 21, 21, 21, 36, 37, 38,
  388. 40, 41, 43, 308, 44, 44, 44, 44, 44, 43,
  389. 308, 44, 44, 44, 44, 44, 45, 45, 45, 45,
  390. 45, 46, 308, 308, 52, 48, 47, 49, 49, 49,
  391. 49, 49, 51, 308, 308, 308, 308, 308, 308, 308,
  392. 308, 308, 40, 41, 53, 308, 308, 54, 59, 308,
  393. 308, 308, 308, 60, 55, 57, 56, 68, 64, 58,
  394. 65, 308, 62, 70, 74, 69, 85, 61, 63, 81,
  395. 50, 66, 95, 308, 75, 67, 45, 45, 45, 45,
  396. 45, 48, 308, 44, 44, 44, 44, 44, 45, 45,
  397. 45, 45, 45, 72, 72, 72, 72, 72, 48, 73,
  398. 49, 49, 49, 49, 49, 308, 308, 308, 308, 308,
  399. 78, 308, 308, 308, 308, 308, 308, 308, 308, 308,
  400. 308, 72, 72, 72, 72, 72, 88, 76, 87, 77,
  401. 82, 80, 79, 89, 308, 308, 83, 308, 90, 308,
  402. 308, 86, 98, 99, 84, 92, 93, 308, 308, 91,
  403. 308, 308, 102, 308, 308, 308, 308, 308, 97, 308,
  404. 103, 104, 96, 308, 308, 100, 308, 101, 106, 308,
  405. 308, 112, 113, 114, 115, 110, 116, 107, 308, 119,
  406. 308, 111, 117, 124, 308, 121, 129, 130, 127, 308,
  407. 120, 136, 125, 126, 133, 134, 308, 308, 308, 308,
  408. 131, 132, 308, 308, 308, 137, 128, 308, 135, 149,
  409. 150, 148, 308, 138, 139, 155, 147, 144, 152, 153,
  410. 308, 308, 308, 151, 156, 157, 308, 308, 159, 166,
  411. 167, 158, 154, 160, 162, 168, 169, 308, 165, 171,
  412. 172, 174, 175, 177, 178, 181, 182, 308, 308, 170,
  413. 308, 308, 308, 173, 308, 176, 308, 179, 308, 183,
  414. 308, 180, 308, 186, 308, 212, 213, 192, 215, 216,
  415. 198, 308, 207, 195, 308, 205, 308, 308, 189, 214,
  416. 193, 185, 217, 221, 222, 224, 225, 208, 308, 219,
  417. 308, 308, 308, 231, 211, 308, 308, 223, 218, 226,
  418. 308, 308, 308, 308, 308, 308, 308, 308, 220, 308,
  419. 308, 308, 233, 234, 240, 235, 243, 244, 239, 248,
  420. 238, 245, 254, 249, 308, 255, 308, 308, 308, 308,
  421. 250, 308, 308, 308, 251, 258, 256, 257, 308, 308,
  422. 262, 263, 308, 260, 308, 308, 264, 308, 259, 266,
  423. 261, 308, 308, 308, 308, 308, 308, 308, 265, 273,
  424. 308, 308, 308, 267, 268, 308, 308, 308, 269, 274,
  425. 270, 308, 272, 271, 275, 277, 308, 308, 281, 283,
  426. 280, 276, 308, 278, 308, 279, 287, 308, 284, 282,
  427. 308, 288, 308, 289, 285, 286, 290, 308, 308, 296,
  428. 308, 308, 308, 292, 308, 308, 308, 291, 308, 308,
  429. 295, 308, 308, 298, 293, 294, 297, 301, 308, 308,
  430. 302, 300, 308, 304, 299, 308, 308, 253, 252, 308,
  431. 247, 246, 308, 242, 241, 237, 236, 232, 305, 230,
  432. 229, 228, 303, 307, 306, 227, 308, 210, 209, 206,
  433. 204, 203, 202, 201, 200, 199, 197, 196, 194, 308,
  434. 191, 190, 188, 187, 184, 164, 163, 161, 308, 146,
  435. 145, 143, 142, 141, 140, 308, 123, 122, 118, 308,
  436. 308, 109, 108, 308, 105, 94, 308, 71, 39, 308,
  437. 42, 39, 308, 3, 308, 308, 308, 308, 308, 308,
  438. 308, 308, 308, 308, 308, 308, 308, 308, 308, 308,
  439. 308, 308, 308, 308, 308, 308, 308, 308, 308, 308,
  440. 308, 308, 308, 308, 308, 308, 308, 308, 308, 308,
  441. 308, 308, 308, 308, 308, 308, 308, 308, 308, 308,
  442. 308, 308, 308, 308
  443. } ;
  444. static yyconst short int yy_chk[595] =
  445. { 0,
  446. 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
  447. 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
  448. 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
  449. 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
  450. 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
  451. 7, 7, 13, 23, 13, 13, 13, 13, 13, 15,
  452. 22, 15, 15, 15, 15, 15, 16, 16, 16, 16,
  453. 16, 17, 24, 26, 23, 18, 17, 18, 18, 18,
  454. 18, 18, 22, 25, 27, 28, 29, 30, 31, 32,
  455. 34, 35, 41, 41, 24, 33, 36, 24, 28, 62,
  456. 58, 52, 73, 29, 25, 27, 26, 34, 32, 27,
  457. 33, 53, 31, 36, 52, 35, 62, 30, 31, 58,
  458. 309, 33, 73, 51, 53, 33, 43, 43, 43, 43,
  459. 43, 44, 55, 44, 44, 44, 44, 44, 45, 45,
  460. 45, 45, 45, 48, 48, 48, 48, 48, 49, 51,
  461. 49, 49, 49, 49, 49, 54, 56, 57, 59, 60,
  462. 55, 61, 63, 65, 64, 67, 68, 69, 307, 70,
  463. 66, 72, 72, 72, 72, 72, 65, 54, 64, 54,
  464. 59, 57, 56, 66, 74, 75, 60, 78, 67, 77,
  465. 76, 63, 76, 76, 61, 69, 70, 79, 80, 68,
  466. 82, 83, 78, 88, 89, 92, 100, 93, 75, 97,
  467. 79, 80, 74, 101, 103, 76, 95, 77, 82, 91,
  468. 286, 91, 91, 91, 91, 88, 92, 83, 96, 95,
  469. 102, 89, 93, 100, 104, 97, 105, 105, 103, 106,
  470. 96, 109, 101, 102, 108, 108, 110, 111, 116, 121,
  471. 105, 106, 120, 124, 126, 109, 104, 282, 108, 122,
  472. 122, 121, 127, 110, 111, 124, 120, 116, 123, 123,
  473. 132, 128, 125, 122, 125, 125, 138, 139, 127, 139,
  474. 139, 126, 123, 128, 132, 140, 140, 144, 138, 141,
  475. 141, 142, 142, 143, 143, 145, 145, 147, 148, 140,
  476. 155, 158, 162, 141, 160, 142, 165, 143, 180, 145,
  477. 185, 144, 186, 148, 189, 190, 190, 158, 191, 191,
  478. 165, 193, 185, 162, 198, 180, 195, 205, 155, 190,
  479. 160, 147, 191, 199, 199, 200, 200, 186, 207, 195,
  480. 219, 208, 211, 205, 189, 218, 234, 199, 193, 200,
  481. 233, 243, 220, 238, 231, 240, 244, 248, 198, 245,
  482. 249, 251, 207, 208, 220, 211, 231, 233, 219, 238,
  483. 218, 234, 243, 240, 250, 244, 254, 255, 258, 256,
  484. 240, 257, 259, 261, 240, 249, 245, 248, 260, 262,
  485. 255, 256, 263, 251, 264, 265, 257, 266, 250, 259,
  486. 254, 270, 268, 269, 275, 273, 274, 276, 258, 266,
  487. 278, 285, 279, 260, 261, 277, 281, 287, 262, 268,
  488. 263, 295, 265, 264, 269, 273, 288, 284, 277, 279,
  489. 276, 270, 283, 274, 289, 275, 285, 290, 281, 278,
  490. 291, 287, 292, 288, 283, 284, 289, 293, 294, 295,
  491. 297, 296, 298, 291, 299, 300, 301, 290, 302, 304,
  492. 294, 303, 305, 297, 292, 293, 296, 300, 306, 280,
  493. 301, 299, 272, 303, 298, 271, 267, 242, 241, 239,
  494. 237, 236, 235, 226, 223, 217, 214, 206, 304, 204,
  495. 203, 202, 302, 306, 305, 201, 192, 188, 187, 183,
  496. 179, 176, 173, 170, 167, 166, 164, 163, 161, 159,
  497. 157, 156, 154, 151, 146, 137, 135, 131, 119, 118,
  498. 117, 115, 114, 113, 112, 107, 99, 98, 94, 90,
  499. 87, 86, 85, 84, 81, 71, 50, 42, 39, 21,
  500. 8, 5, 3, 308, 308, 308, 308, 308, 308, 308,
  501. 308, 308, 308, 308, 308, 308, 308, 308, 308, 308,
  502. 308, 308, 308, 308, 308, 308, 308, 308, 308, 308,
  503. 308, 308, 308, 308, 308, 308, 308, 308, 308, 308,
  504. 308, 308, 308, 308, 308, 308, 308, 308, 308, 308,
  505. 308, 308, 308, 308
  506. } ;
  507. static yy_state_type yy_last_accepting_state;
  508. static char *yy_last_accepting_cpos;
  509. /* The intent behind this definition is that it'll catch
  510. * any uses of REJECT which flex missed.
  511. */
  512. #define REJECT reject_used_but_not_detected
  513. #define yymore() yymore_used_but_not_detected
  514. #define YY_MORE_ADJ 0
  515. #define YY_RESTORE_YY_MORE_OFFSET
  516. char *yytext;
  517. #line 1 "rc1.0_tokens.l"
  518. #define INITIAL 0
  519. /* definitions */
  520. #line 8 "rc1.0_tokens.l"
  521. #include <stdlib.h>
  522. #include "rc1.0_combiners.h"
  523. #include "_rc1.0_parser.h"
  524. #include "nvparse_errors.h"
  525. #include "nvparse_externs.h"
  526. #define YY_INPUT(buf,result,max_size) \
  527. { \
  528. result = 0; \
  529. while (*myin && result < max_size) \
  530. buf[result++] = *myin++; \
  531. }
  532. #define YY_ALWAYS_INTERACTIVE 1
  533. /* end of definitions */
  534. #line 635 "_rc1.0_lexer.cpp"
  535. /* Macros after this point can all be overridden by user definitions in
  536. * section 1.
  537. */
  538. #ifndef YY_SKIP_YYWRAP
  539. #ifdef __cplusplus
  540. extern "C" int yywrap YY_PROTO(( void ));
  541. #else
  542. extern int yywrap YY_PROTO(( void ));
  543. #endif
  544. #endif
  545. #ifndef YY_NO_UNPUT
  546. static void yyunput YY_PROTO(( int c, char *buf_ptr ));
  547. #endif
  548. #ifndef yytext_ptr
  549. static void yy_flex_strncpy YY_PROTO(( char *, yyconst char *, int ));
  550. #endif
  551. #ifdef YY_NEED_STRLEN
  552. static int yy_flex_strlen YY_PROTO(( yyconst char * ));
  553. #endif
  554. #ifndef YY_NO_INPUT
  555. #ifdef __cplusplus
  556. static int yyinput YY_PROTO(( void ));
  557. #else
  558. static int input YY_PROTO(( void ));
  559. #endif
  560. #endif
  561. #if YY_STACK_USED
  562. static int yy_start_stack_ptr = 0;
  563. static int yy_start_stack_depth = 0;
  564. static int *yy_start_stack = 0;
  565. #ifndef YY_NO_PUSH_STATE
  566. static void yy_push_state YY_PROTO(( int new_state ));
  567. #endif
  568. #ifndef YY_NO_POP_STATE
  569. static void yy_pop_state YY_PROTO(( void ));
  570. #endif
  571. #ifndef YY_NO_TOP_STATE
  572. static int yy_top_state YY_PROTO(( void ));
  573. #endif
  574. #else
  575. #define YY_NO_PUSH_STATE 1
  576. #define YY_NO_POP_STATE 1
  577. #define YY_NO_TOP_STATE 1
  578. #endif
  579. #ifdef YY_MALLOC_DECL
  580. YY_MALLOC_DECL
  581. #else
  582. #if __STDC__
  583. #ifndef __cplusplus
  584. #include <stdlib.h>
  585. #endif
  586. #else
  587. /* Just try to get by without declaring the routines. This will fail
  588. * miserably on non-ANSI systems for which sizeof(size_t) != sizeof(int)
  589. * or sizeof(void*) != sizeof(int).
  590. */
  591. #endif
  592. #endif
  593. /* Amount of stuff to slurp up with each read. */
  594. #ifndef YY_READ_BUF_SIZE
  595. #define YY_READ_BUF_SIZE 8192
  596. #endif
  597. /* Copy whatever the last rule matched to the standard output. */
  598. #ifndef ECHO
  599. /* This used to be an fputs(), but since the string might contain NUL's,
  600. * we now use fwrite().
  601. */
  602. #define ECHO (void) fwrite( yytext, yyleng, 1, yyout )
  603. #endif
  604. /* Gets input and stuffs it into "buf". number of characters read, or YY_NULL,
  605. * is returned in "result".
  606. */
  607. #ifndef YY_INPUT
  608. #define YY_INPUT(buf,result,max_size) \
  609. if ( yy_current_buffer->yy_is_interactive ) \
  610. { \
  611. int c = '*', n; \
  612. for ( n = 0; n < max_size && \
  613. (c = getc( yyin )) != EOF && c != '\n'; ++n ) \
  614. buf[n] = (char) c; \
  615. if ( c == '\n' ) \
  616. buf[n++] = (char) c; \
  617. if ( c == EOF && ferror( yyin ) ) \
  618. YY_FATAL_ERROR( "input in flex scanner failed" ); \
  619. result = n; \
  620. } \
  621. else if ( ((result = fread( buf, 1, max_size, yyin )) == 0) \
  622. && ferror( yyin ) ) \
  623. YY_FATAL_ERROR( "input in flex scanner failed" );
  624. #endif
  625. /* No semi-colon after return; correct usage is to write "yyterminate();" -
  626. * we don't want an extra ';' after the "return" because that will cause
  627. * some compilers to complain about unreachable statements.
  628. */
  629. #ifndef yyterminate
  630. #define yyterminate() return YY_NULL
  631. #endif
  632. /* Number of entries by which start-condition stack grows. */
  633. #ifndef YY_START_STACK_INCR
  634. #define YY_START_STACK_INCR 25
  635. #endif
  636. /* Report a fatal error. */
  637. #ifndef YY_FATAL_ERROR
  638. #define YY_FATAL_ERROR(msg) yy_fatal_error( msg )
  639. #endif
  640. /* Default declaration of generated scanner - a define so the user can
  641. * easily add parameters.
  642. */
  643. #ifndef YY_DECL
  644. #define YY_DECL int yylex YY_PROTO(( void ))
  645. #endif
  646. /* Code executed at the beginning of each rule, after yytext and yyleng
  647. * have been set up.
  648. */
  649. #ifndef YY_USER_ACTION
  650. #define YY_USER_ACTION
  651. #endif
  652. /* Code executed at the end of each rule. */
  653. #ifndef YY_BREAK
  654. #define YY_BREAK break;
  655. #endif
  656. #define YY_RULE_SETUP \
  657. YY_USER_ACTION
  658. YY_DECL
  659. {
  660. register yy_state_type yy_current_state;
  661. register char *yy_cp = NULL, *yy_bp = NULL;
  662. register int yy_act;
  663. #line 27 "rc1.0_tokens.l"
  664. #line 789 "_rc1.0_lexer.cpp"
  665. if ( yy_init )
  666. {
  667. yy_init = 0;
  668. #ifdef YY_USER_INIT
  669. YY_USER_INIT;
  670. #endif
  671. if ( ! yy_start )
  672. yy_start = 1; /* first start state */
  673. if ( ! yyin )
  674. yyin = stdin;
  675. if ( ! yyout )
  676. yyout = stdout;
  677. if ( ! yy_current_buffer )
  678. yy_current_buffer =
  679. yy_create_buffer( yyin, YY_BUF_SIZE );
  680. yy_load_buffer_state();
  681. }
  682. while ( 1 ) /* loops until end-of-file is reached */
  683. {
  684. yy_cp = yy_c_buf_p;
  685. /* Support of yytext. */
  686. *yy_cp = yy_hold_char;
  687. /* yy_bp points to the position in yy_ch_buf of the start of
  688. * the current run.
  689. */
  690. yy_bp = yy_cp;
  691. yy_current_state = yy_start;
  692. yy_match:
  693. do
  694. {
  695. register YY_CHAR yy_c = yy_ec[YY_SC_TO_UI(*yy_cp)];
  696. if ( yy_accept[yy_current_state] )
  697. {
  698. yy_last_accepting_state = yy_current_state;
  699. yy_last_accepting_cpos = yy_cp;
  700. }
  701. while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state )
  702. {
  703. yy_current_state = (int) yy_def[yy_current_state];
  704. if ( yy_current_state >= 309 )
  705. yy_c = yy_meta[(unsigned int) yy_c];
  706. }
  707. yy_current_state = yy_nxt[yy_base[yy_current_state] + (unsigned int) yy_c];
  708. ++yy_cp;
  709. }
  710. while ( yy_base[yy_current_state] != 544 );
  711. yy_find_action:
  712. yy_act = yy_accept[yy_current_state];
  713. if ( yy_act == 0 )
  714. { /* have to back up */
  715. yy_cp = yy_last_accepting_cpos;
  716. yy_current_state = yy_last_accepting_state;
  717. yy_act = yy_accept[yy_current_state];
  718. }
  719. YY_DO_BEFORE_ACTION;
  720. do_action: /* This label is used only to access EOF actions. */
  721. switch ( yy_act )
  722. { /* beginning of action switch */
  723. case 0: /* must back up */
  724. /* undo the effects of YY_DO_BEFORE_ACTION */
  725. *yy_cp = yy_hold_char;
  726. yy_cp = yy_last_accepting_cpos;
  727. yy_current_state = yy_last_accepting_state;
  728. goto yy_find_action;
  729. case 1:
  730. YY_RULE_SETUP
  731. #line 29 "rc1.0_tokens.l"
  732. {
  733. A:
  734. switch (yyinput()) {
  735. case '*': goto B;
  736. case 0: errors.set("end-of-file in comment", line_number); break;
  737. case '\n': line_number++;
  738. default: goto A;
  739. }
  740. B:
  741. switch (yyinput()) {
  742. case '*': goto B;
  743. case '/': break;
  744. case 0: errors.set("end-of-file in comment", line_number); break;
  745. case '\n': line_number++;
  746. default: goto A;
  747. }
  748. }
  749. YY_BREAK
  750. case 2:
  751. YY_RULE_SETUP
  752. #line 47 "rc1.0_tokens.l"
  753. {
  754. char ch;
  755. while ((ch = yyinput()) != '\n');
  756. if (ch == '\n') line_number++;
  757. }
  758. YY_BREAK
  759. case 3:
  760. YY_RULE_SETUP
  761. #line 53 "rc1.0_tokens.l"
  762. {
  763. char ch;
  764. while ((ch = yyinput()) != '\n');
  765. if (ch == '\n') line_number++;
  766. }
  767. YY_BREAK
  768. case 4:
  769. YY_RULE_SETUP
  770. #line 59 "rc1.0_tokens.l"
  771. { /* eat header */ }
  772. YY_BREAK
  773. case 5:
  774. YY_RULE_SETUP
  775. #line 61 "rc1.0_tokens.l"
  776. {
  777. rc10_lval.registerEnum.word = RCP_FOG_RGB;
  778. return(regVariable);
  779. }
  780. YY_BREAK
  781. case 6:
  782. YY_RULE_SETUP
  783. #line 65 "rc1.0_tokens.l"
  784. {
  785. rc10_lval.registerEnum.word = RCP_FOG_ALPHA;
  786. return(regVariable);
  787. }
  788. YY_BREAK
  789. case 7:
  790. YY_RULE_SETUP
  791. #line 69 "rc1.0_tokens.l"
  792. {
  793. rc10_lval.registerEnum.word = RCP_FOG_BLUE;
  794. return(regVariable);
  795. }
  796. YY_BREAK
  797. case 8:
  798. YY_RULE_SETUP
  799. #line 73 "rc1.0_tokens.l"
  800. {
  801. rc10_lval.registerEnum.word = RCP_FOG;
  802. return(regVariable);
  803. }
  804. YY_BREAK
  805. case 9:
  806. YY_RULE_SETUP
  807. #line 78 "rc1.0_tokens.l"
  808. {
  809. rc10_lval.registerEnum.word = RCP_PRIMARY_COLOR_RGB;
  810. return(regVariable);
  811. }
  812. YY_BREAK
  813. case 10:
  814. YY_RULE_SETUP
  815. #line 82 "rc1.0_tokens.l"
  816. {
  817. rc10_lval.registerEnum.word = RCP_PRIMARY_COLOR_ALPHA;
  818. return(regVariable);
  819. }
  820. YY_BREAK
  821. case 11:
  822. YY_RULE_SETUP
  823. #line 86 "rc1.0_tokens.l"
  824. {
  825. rc10_lval.registerEnum.word = RCP_PRIMARY_COLOR_BLUE;
  826. return(regVariable);
  827. }
  828. YY_BREAK
  829. case 12:
  830. YY_RULE_SETUP
  831. #line 90 "rc1.0_tokens.l"
  832. {
  833. rc10_lval.registerEnum.word = RCP_PRIMARY_COLOR;
  834. return(regVariable);
  835. }
  836. YY_BREAK
  837. case 13:
  838. YY_RULE_SETUP
  839. #line 95 "rc1.0_tokens.l"
  840. {
  841. rc10_lval.registerEnum.word = RCP_SECONDARY_COLOR_RGB;
  842. return(regVariable);
  843. }
  844. YY_BREAK
  845. case 14:
  846. YY_RULE_SETUP
  847. #line 99 "rc1.0_tokens.l"
  848. {
  849. rc10_lval.registerEnum.word = RCP_SECONDARY_COLOR_ALPHA;
  850. return(regVariable);
  851. }
  852. YY_BREAK
  853. case 15:
  854. YY_RULE_SETUP
  855. #line 103 "rc1.0_tokens.l"
  856. {
  857. rc10_lval.registerEnum.word = RCP_SECONDARY_COLOR_BLUE;
  858. return(regVariable);
  859. }
  860. YY_BREAK
  861. case 16:
  862. YY_RULE_SETUP
  863. #line 107 "rc1.0_tokens.l"
  864. {
  865. rc10_lval.registerEnum.word = RCP_SECONDARY_COLOR;
  866. return(regVariable);
  867. }
  868. YY_BREAK
  869. case 17:
  870. YY_RULE_SETUP
  871. #line 112 "rc1.0_tokens.l"
  872. {
  873. rc10_lval.registerEnum.word = RCP_SPARE0_RGB;
  874. return(regVariable);
  875. }
  876. YY_BREAK
  877. case 18:
  878. YY_RULE_SETUP
  879. #line 116 "rc1.0_tokens.l"
  880. {
  881. rc10_lval.registerEnum.word = RCP_SPARE0_ALPHA;
  882. return(regVariable);
  883. }
  884. YY_BREAK
  885. case 19:
  886. YY_RULE_SETUP
  887. #line 120 "rc1.0_tokens.l"
  888. {
  889. rc10_lval.registerEnum.word = RCP_SPARE0_BLUE;
  890. return(regVariable);
  891. }
  892. YY_BREAK
  893. case 20:
  894. YY_RULE_SETUP
  895. #line 124 "rc1.0_tokens.l"
  896. {
  897. rc10_lval.registerEnum.word = RCP_SPARE0;
  898. return(regVariable);
  899. }
  900. YY_BREAK
  901. case 21:
  902. YY_RULE_SETUP
  903. #line 129 "rc1.0_tokens.l"
  904. {
  905. rc10_lval.registerEnum.word = RCP_SPARE1_RGB;
  906. return(regVariable);
  907. }
  908. YY_BREAK
  909. case 22:
  910. YY_RULE_SETUP
  911. #line 133 "rc1.0_tokens.l"
  912. {
  913. rc10_lval.registerEnum.word = RCP_SPARE1_ALPHA;
  914. return(regVariable);
  915. }
  916. YY_BREAK
  917. case 23:
  918. YY_RULE_SETUP
  919. #line 137 "rc1.0_tokens.l"
  920. {
  921. rc10_lval.registerEnum.word = RCP_SPARE1_BLUE;
  922. return(regVariable);
  923. }
  924. YY_BREAK
  925. case 24:
  926. YY_RULE_SETUP
  927. #line 141 "rc1.0_tokens.l"
  928. {
  929. rc10_lval.registerEnum.word = RCP_SPARE1;
  930. return(regVariable);
  931. }
  932. YY_BREAK
  933. case 25:
  934. YY_RULE_SETUP
  935. #line 146 "rc1.0_tokens.l"
  936. {
  937. rc10_lval.registerEnum.word = RCP_TEXTURE0_RGB;
  938. return(regVariable);
  939. }
  940. YY_BREAK
  941. case 26:
  942. YY_RULE_SETUP
  943. #line 150 "rc1.0_tokens.l"
  944. {
  945. rc10_lval.registerEnum.word = RCP_TEXTURE0_ALPHA;
  946. return(regVariable);
  947. }
  948. YY_BREAK
  949. case 27:
  950. YY_RULE_SETUP
  951. #line 154 "rc1.0_tokens.l"
  952. {
  953. rc10_lval.registerEnum.word = RCP_TEXTURE0_BLUE;
  954. return(regVariable);
  955. }
  956. YY_BREAK
  957. case 28:
  958. YY_RULE_SETUP
  959. #line 158 "rc1.0_tokens.l"
  960. {
  961. rc10_lval.registerEnum.word = RCP_TEXTURE0;
  962. return(regVariable);
  963. }
  964. YY_BREAK
  965. case 29:
  966. YY_RULE_SETUP
  967. #line 163 "rc1.0_tokens.l"
  968. {
  969. rc10_lval.registerEnum.word = RCP_TEXTURE1_RGB;
  970. return(regVariable);
  971. }
  972. YY_BREAK
  973. case 30:
  974. YY_RULE_SETUP
  975. #line 167 "rc1.0_tokens.l"
  976. {
  977. rc10_lval.registerEnum.word = RCP_TEXTURE1_ALPHA;
  978. return(regVariable);
  979. }
  980. YY_BREAK
  981. case 31:
  982. YY_RULE_SETUP
  983. #line 171 "rc1.0_tokens.l"
  984. {
  985. rc10_lval.registerEnum.word = RCP_TEXTURE1_BLUE;
  986. return(regVariable);
  987. }
  988. YY_BREAK
  989. case 32:
  990. YY_RULE_SETUP
  991. #line 175 "rc1.0_tokens.l"
  992. {
  993. rc10_lval.registerEnum.word = RCP_TEXTURE1;
  994. return(regVariable);
  995. }
  996. YY_BREAK
  997. case 33:
  998. YY_RULE_SETUP
  999. #line 180 "rc1.0_tokens.l"
  1000. {
  1001. rc10_lval.registerEnum.word = RCP_TEXTURE2_RGB;
  1002. return(regVariable);
  1003. }
  1004. YY_BREAK
  1005. case 34:
  1006. YY_RULE_SETUP
  1007. #line 184 "rc1.0_tokens.l"
  1008. {
  1009. rc10_lval.registerEnum.word = RCP_TEXTURE2_ALPHA;
  1010. return(regVariable);
  1011. }
  1012. YY_BREAK
  1013. case 35:
  1014. YY_RULE_SETUP
  1015. #line 188 "rc1.0_tokens.l"
  1016. {
  1017. rc10_lval.registerEnum.word = RCP_TEXTURE2_BLUE;
  1018. return(regVariable);
  1019. }
  1020. YY_BREAK
  1021. case 36:
  1022. YY_RULE_SETUP
  1023. #line 192 "rc1.0_tokens.l"
  1024. {
  1025. rc10_lval.registerEnum.word = RCP_TEXTURE2;
  1026. return(regVariable);
  1027. }
  1028. YY_BREAK
  1029. case 37:
  1030. YY_RULE_SETUP
  1031. #line 197 "rc1.0_tokens.l"
  1032. {
  1033. rc10_lval.registerEnum.word = RCP_TEXTURE3_RGB;
  1034. return(regVariable);
  1035. }
  1036. YY_BREAK
  1037. case 38:
  1038. YY_RULE_SETUP
  1039. #line 201 "rc1.0_tokens.l"
  1040. {
  1041. rc10_lval.registerEnum.word = RCP_TEXTURE3_ALPHA;
  1042. return(regVariable);
  1043. }
  1044. YY_BREAK
  1045. case 39:
  1046. YY_RULE_SETUP
  1047. #line 205 "rc1.0_tokens.l"
  1048. {
  1049. rc10_lval.registerEnum.word = RCP_TEXTURE3_BLUE;
  1050. return(regVariable);
  1051. }
  1052. YY_BREAK
  1053. case 40:
  1054. YY_RULE_SETUP
  1055. #line 209 "rc1.0_tokens.l"
  1056. {
  1057. rc10_lval.registerEnum.word = RCP_TEXTURE3;
  1058. return(regVariable);
  1059. }
  1060. YY_BREAK
  1061. case 41:
  1062. YY_RULE_SETUP
  1063. #line 214 "rc1.0_tokens.l"
  1064. {
  1065. rc10_lval.registerEnum.word = RCP_CONST_COLOR0_RGB;
  1066. return(regVariable);
  1067. }
  1068. YY_BREAK
  1069. case 42:
  1070. YY_RULE_SETUP
  1071. #line 218 "rc1.0_tokens.l"
  1072. {
  1073. rc10_lval.registerEnum.word = RCP_CONST_COLOR0_ALPHA;
  1074. return(regVariable);
  1075. }
  1076. YY_BREAK
  1077. case 43:
  1078. YY_RULE_SETUP
  1079. #line 222 "rc1.0_tokens.l"
  1080. {
  1081. rc10_lval.registerEnum.word = RCP_CONST_COLOR0_BLUE;
  1082. return(regVariable);
  1083. }
  1084. YY_BREAK
  1085. case 44:
  1086. YY_RULE_SETUP
  1087. #line 226 "rc1.0_tokens.l"
  1088. {
  1089. rc10_lval.registerEnum.word = RCP_CONST_COLOR0;
  1090. return(constVariable);
  1091. }
  1092. YY_BREAK
  1093. case 45:
  1094. YY_RULE_SETUP
  1095. #line 231 "rc1.0_tokens.l"
  1096. {
  1097. rc10_lval.registerEnum.word = RCP_CONST_COLOR1_RGB;
  1098. return(regVariable);
  1099. }
  1100. YY_BREAK
  1101. case 46:
  1102. YY_RULE_SETUP
  1103. #line 235 "rc1.0_tokens.l"
  1104. {
  1105. rc10_lval.registerEnum.word = RCP_CONST_COLOR1_ALPHA;
  1106. return(regVariable);
  1107. }
  1108. YY_BREAK
  1109. case 47:
  1110. YY_RULE_SETUP
  1111. #line 239 "rc1.0_tokens.l"
  1112. {
  1113. rc10_lval.registerEnum.word = RCP_CONST_COLOR1_BLUE;
  1114. return(regVariable);
  1115. }
  1116. YY_BREAK
  1117. case 48:
  1118. YY_RULE_SETUP
  1119. #line 243 "rc1.0_tokens.l"
  1120. {
  1121. rc10_lval.registerEnum.word = RCP_CONST_COLOR1;
  1122. return(constVariable);
  1123. }
  1124. YY_BREAK
  1125. case 49:
  1126. YY_RULE_SETUP
  1127. #line 248 "rc1.0_tokens.l"
  1128. {
  1129. rc10_lval.registerEnum.word = RCP_ZERO_RGB;
  1130. return(regVariable);
  1131. }
  1132. YY_BREAK
  1133. case 50:
  1134. YY_RULE_SETUP
  1135. #line 252 "rc1.0_tokens.l"
  1136. {
  1137. rc10_lval.registerEnum.word = RCP_ZERO_ALPHA;
  1138. return(regVariable);
  1139. }
  1140. YY_BREAK
  1141. case 51:
  1142. YY_RULE_SETUP
  1143. #line 256 "rc1.0_tokens.l"
  1144. {
  1145. rc10_lval.registerEnum.word = RCP_ZERO_BLUE;
  1146. return(regVariable);
  1147. }
  1148. YY_BREAK
  1149. case 52:
  1150. YY_RULE_SETUP
  1151. #line 260 "rc1.0_tokens.l"
  1152. {
  1153. rc10_lval.registerEnum.word = RCP_ZERO;
  1154. return(regVariable);
  1155. }
  1156. YY_BREAK
  1157. case 53:
  1158. YY_RULE_SETUP
  1159. #line 265 "rc1.0_tokens.l"
  1160. {
  1161. rc10_lval.registerEnum.word = RCP_ONE_RGB;
  1162. return(regVariable);
  1163. }
  1164. YY_BREAK
  1165. case 54:
  1166. YY_RULE_SETUP
  1167. #line 269 "rc1.0_tokens.l"
  1168. {
  1169. rc10_lval.registerEnum.word = RCP_ONE_ALPHA;
  1170. return(regVariable);
  1171. }
  1172. YY_BREAK
  1173. case 55:
  1174. YY_RULE_SETUP
  1175. #line 273 "rc1.0_tokens.l"
  1176. {
  1177. rc10_lval.registerEnum.word = RCP_ONE_BLUE;
  1178. return(regVariable);
  1179. }
  1180. YY_BREAK
  1181. case 56:
  1182. YY_RULE_SETUP
  1183. #line 277 "rc1.0_tokens.l"
  1184. {
  1185. rc10_lval.registerEnum.word = RCP_ONE;
  1186. return(regVariable);
  1187. }
  1188. YY_BREAK
  1189. case 57:
  1190. YY_RULE_SETUP
  1191. #line 282 "rc1.0_tokens.l"
  1192. {
  1193. rc10_lval.registerEnum.word = RCP_DISCARD;
  1194. return(regVariable);
  1195. }
  1196. YY_BREAK
  1197. case 58:
  1198. YY_RULE_SETUP
  1199. #line 287 "rc1.0_tokens.l"
  1200. return(fragment_rgb);
  1201. YY_BREAK
  1202. case 59:
  1203. YY_RULE_SETUP
  1204. #line 288 "rc1.0_tokens.l"
  1205. return(fragment_alpha);
  1206. YY_BREAK
  1207. case 60:
  1208. YY_RULE_SETUP
  1209. #line 290 "rc1.0_tokens.l"
  1210. {
  1211. rc10_lval.registerEnum.word = RCP_FINAL_PRODUCT;
  1212. return(final_product);
  1213. }
  1214. YY_BREAK
  1215. case 61:
  1216. YY_RULE_SETUP
  1217. #line 295 "rc1.0_tokens.l"
  1218. {
  1219. rc10_lval.registerEnum.word = RCP_COLOR_SUM;
  1220. return(color_sum);
  1221. }
  1222. YY_BREAK
  1223. case 62:
  1224. YY_RULE_SETUP
  1225. #line 300 "rc1.0_tokens.l"
  1226. return(expandString);
  1227. YY_BREAK
  1228. case 63:
  1229. YY_RULE_SETUP
  1230. #line 301 "rc1.0_tokens.l"
  1231. return(halfBiasString);
  1232. YY_BREAK
  1233. case 64:
  1234. YY_RULE_SETUP
  1235. #line 302 "rc1.0_tokens.l"
  1236. return(unsignedString);
  1237. YY_BREAK
  1238. case 65:
  1239. YY_RULE_SETUP
  1240. #line 303 "rc1.0_tokens.l"
  1241. return(unsignedInvertString);
  1242. YY_BREAK
  1243. case 66:
  1244. YY_RULE_SETUP
  1245. #line 304 "rc1.0_tokens.l"
  1246. {
  1247. rc10_lval.ival = GL_TRUE;
  1248. return(muxString);
  1249. }
  1250. YY_BREAK
  1251. case 67:
  1252. YY_RULE_SETUP
  1253. #line 309 "rc1.0_tokens.l"
  1254. {
  1255. rc10_lval.ival = GL_FALSE;
  1256. return(sumString);
  1257. }
  1258. YY_BREAK
  1259. case 68:
  1260. YY_RULE_SETUP
  1261. #line 314 "rc1.0_tokens.l"
  1262. {
  1263. rc10_lval.ival = RCP_RGB;
  1264. return(rgb_portion);
  1265. }
  1266. YY_BREAK
  1267. case 69:
  1268. YY_RULE_SETUP
  1269. #line 318 "rc1.0_tokens.l"
  1270. {
  1271. rc10_lval.ival = RCP_ALPHA;
  1272. return(alpha_portion);
  1273. }
  1274. YY_BREAK
  1275. case 70:
  1276. YY_RULE_SETUP
  1277. #line 323 "rc1.0_tokens.l"
  1278. {
  1279. rc10_lval.ival = true;
  1280. return(clamp_color_sum);
  1281. }
  1282. YY_BREAK
  1283. case 71:
  1284. YY_RULE_SETUP
  1285. #line 327 "rc1.0_tokens.l"
  1286. return(lerp);
  1287. YY_BREAK
  1288. case 72:
  1289. YY_RULE_SETUP
  1290. #line 330 "rc1.0_tokens.l"
  1291. {
  1292. rc10_lval.biasScaleEnum.word = RCP_BIAS_BY_NEGATIVE_ONE_HALF_SCALE_BY_TWO;
  1293. return(bias_by_negative_one_half_scale_by_two);
  1294. }
  1295. YY_BREAK
  1296. case 73:
  1297. YY_RULE_SETUP
  1298. #line 334 "rc1.0_tokens.l"
  1299. {
  1300. rc10_lval.biasScaleEnum.word = RCP_BIAS_BY_NEGATIVE_ONE_HALF;
  1301. return(bias_by_negative_one_half);
  1302. }
  1303. YY_BREAK
  1304. case 74:
  1305. YY_RULE_SETUP
  1306. #line 338 "rc1.0_tokens.l"
  1307. {
  1308. rc10_lval.biasScaleEnum.word = RCP_SCALE_BY_ONE_HALF;
  1309. return(scale_by_one_half);
  1310. }
  1311. YY_BREAK
  1312. case 75:
  1313. YY_RULE_SETUP
  1314. #line 342 "rc1.0_tokens.l"
  1315. {
  1316. rc10_lval.biasScaleEnum.word = RCP_SCALE_BY_TWO;
  1317. return(scale_by_two);
  1318. }
  1319. YY_BREAK
  1320. case 76:
  1321. YY_RULE_SETUP
  1322. #line 346 "rc1.0_tokens.l"
  1323. {
  1324. rc10_lval.biasScaleEnum.word = RCP_SCALE_BY_FOUR;
  1325. return(scale_by_four);
  1326. }
  1327. YY_BREAK
  1328. case 77:
  1329. YY_RULE_SETUP
  1330. #line 351 "rc1.0_tokens.l"
  1331. {
  1332. rc10_lval.fval = (float)atof(yytext);
  1333. return(floatValue);
  1334. }
  1335. YY_BREAK
  1336. case 78:
  1337. YY_RULE_SETUP
  1338. #line 356 "rc1.0_tokens.l"
  1339. {
  1340. rc10_lval.fval = (float)atof(yytext);
  1341. return(floatValue);
  1342. }
  1343. YY_BREAK
  1344. case 79:
  1345. YY_RULE_SETUP
  1346. #line 361 "rc1.0_tokens.l"
  1347. {
  1348. rc10_lval.fval = (float)atof(yytext);
  1349. return(floatValue);
  1350. }
  1351. YY_BREAK
  1352. case 80:
  1353. YY_RULE_SETUP
  1354. #line 366 "rc1.0_tokens.l"
  1355. return(openBracket);
  1356. YY_BREAK
  1357. case 81:
  1358. YY_RULE_SETUP
  1359. #line 367 "rc1.0_tokens.l"
  1360. return(closeBracket);
  1361. YY_BREAK
  1362. case 82:
  1363. YY_RULE_SETUP
  1364. #line 368 "rc1.0_tokens.l"
  1365. return(openParen);
  1366. YY_BREAK
  1367. case 83:
  1368. YY_RULE_SETUP
  1369. #line 369 "rc1.0_tokens.l"
  1370. return(closeParen);
  1371. YY_BREAK
  1372. case 84:
  1373. YY_RULE_SETUP
  1374. #line 370 "rc1.0_tokens.l"
  1375. return(semicolon);
  1376. YY_BREAK
  1377. case 85:
  1378. YY_RULE_SETUP
  1379. #line 371 "rc1.0_tokens.l"
  1380. return(comma);
  1381. YY_BREAK
  1382. case 86:
  1383. YY_RULE_SETUP
  1384. #line 372 "rc1.0_tokens.l"
  1385. return(dot);
  1386. YY_BREAK
  1387. case 87:
  1388. YY_RULE_SETUP
  1389. #line 373 "rc1.0_tokens.l"
  1390. return(times);
  1391. YY_BREAK
  1392. case 88:
  1393. YY_RULE_SETUP
  1394. #line 374 "rc1.0_tokens.l"
  1395. return(minus);
  1396. YY_BREAK
  1397. case 89:
  1398. YY_RULE_SETUP
  1399. #line 375 "rc1.0_tokens.l"
  1400. return(plus);
  1401. YY_BREAK
  1402. case 90:
  1403. YY_RULE_SETUP
  1404. #line 376 "rc1.0_tokens.l"
  1405. return(equals);
  1406. YY_BREAK
  1407. case 91:
  1408. YY_RULE_SETUP
  1409. #line 378 "rc1.0_tokens.l"
  1410. {
  1411. line_number++;
  1412. }
  1413. YY_BREAK
  1414. case 92:
  1415. YY_RULE_SETUP
  1416. #line 382 "rc1.0_tokens.l"
  1417. {}
  1418. YY_BREAK
  1419. case 93:
  1420. YY_RULE_SETUP
  1421. #line 384 "rc1.0_tokens.l"
  1422. {
  1423. errors.set("unrecognized token", line_number);
  1424. }
  1425. YY_BREAK
  1426. case 94:
  1427. YY_RULE_SETUP
  1428. #line 389 "rc1.0_tokens.l"
  1429. ECHO;
  1430. YY_BREAK
  1431. #line 1574 "_rc1.0_lexer.cpp"
  1432. case YY_STATE_EOF(INITIAL):
  1433. yyterminate();
  1434. case YY_END_OF_BUFFER:
  1435. {
  1436. /* Amount of text matched not including the EOB char. */
  1437. int yy_amount_of_matched_text = (int) (yy_cp - yytext_ptr) - 1;
  1438. /* Undo the effects of YY_DO_BEFORE_ACTION. */
  1439. *yy_cp = yy_hold_char;
  1440. YY_RESTORE_YY_MORE_OFFSET
  1441. if ( yy_current_buffer->yy_buffer_status == YY_BUFFER_NEW )
  1442. {
  1443. /* We're scanning a new file or input source. It's
  1444. * possible that this happened because the user
  1445. * just pointed yyin at a new source and called
  1446. * yylex(). If so, then we have to assure
  1447. * consistency between yy_current_buffer and our
  1448. * globals. Here is the right place to do so, because
  1449. * this is the first action (other than possibly a
  1450. * back-up) that will match for the new input source.
  1451. */
  1452. yy_n_chars = yy_current_buffer->yy_n_chars;
  1453. yy_current_buffer->yy_input_file = yyin;
  1454. yy_current_buffer->yy_buffer_status = YY_BUFFER_NORMAL;
  1455. }
  1456. /* Note that here we test for yy_c_buf_p "<=" to the position
  1457. * of the first EOB in the buffer, since yy_c_buf_p will
  1458. * already have been incremented past the NUL character
  1459. * (since all states make transitions on EOB to the
  1460. * end-of-buffer state). Contrast this with the test
  1461. * in input().
  1462. */
  1463. if ( yy_c_buf_p <= &yy_current_buffer->yy_ch_buf[yy_n_chars] )
  1464. { /* This was really a NUL. */
  1465. yy_state_type yy_next_state;
  1466. yy_c_buf_p = yytext_ptr + yy_amount_of_matched_text;
  1467. yy_current_state = yy_get_previous_state();
  1468. /* Okay, we're now positioned to make the NUL
  1469. * transition. We couldn't have
  1470. * yy_get_previous_state() go ahead and do it
  1471. * for us because it doesn't know how to deal
  1472. * with the possibility of jamming (and we don't
  1473. * want to build jamming into it because then it
  1474. * will run more slowly).
  1475. */
  1476. yy_next_state = yy_try_NUL_trans( yy_current_state );
  1477. yy_bp = yytext_ptr + YY_MORE_ADJ;
  1478. if ( yy_next_state )
  1479. {
  1480. /* Consume the NUL. */
  1481. yy_cp = ++yy_c_buf_p;
  1482. yy_current_state = yy_next_state;
  1483. goto yy_match;
  1484. }
  1485. else
  1486. {
  1487. yy_cp = yy_c_buf_p;
  1488. goto yy_find_action;
  1489. }
  1490. }
  1491. else switch ( yy_get_next_buffer() )
  1492. {
  1493. case EOB_ACT_END_OF_FILE:
  1494. {
  1495. yy_did_buffer_switch_on_eof = 0;
  1496. if ( yywrap() )
  1497. {
  1498. /* Note: because we've taken care in
  1499. * yy_get_next_buffer() to have set up
  1500. * yytext, we can now set up
  1501. * yy_c_buf_p so that if some total
  1502. * hoser (like flex itself) wants to
  1503. * call the scanner after we return the
  1504. * YY_NULL, it'll still work - another
  1505. * YY_NULL will get returned.
  1506. */
  1507. yy_c_buf_p = yytext_ptr + YY_MORE_ADJ;
  1508. yy_act = YY_STATE_EOF(YY_START);
  1509. goto do_action;
  1510. }
  1511. else
  1512. {
  1513. if ( ! yy_did_buffer_switch_on_eof )
  1514. YY_NEW_FILE;
  1515. }
  1516. break;
  1517. }
  1518. case EOB_ACT_CONTINUE_SCAN:
  1519. yy_c_buf_p =
  1520. yytext_ptr + yy_amount_of_matched_text;
  1521. yy_current_state = yy_get_previous_state();
  1522. yy_cp = yy_c_buf_p;
  1523. yy_bp = yytext_ptr + YY_MORE_ADJ;
  1524. goto yy_match;
  1525. case EOB_ACT_LAST_MATCH:
  1526. yy_c_buf_p =
  1527. &yy_current_buffer->yy_ch_buf[yy_n_chars];
  1528. yy_current_state = yy_get_previous_state();
  1529. yy_cp = yy_c_buf_p;
  1530. yy_bp = yytext_ptr + YY_MORE_ADJ;
  1531. goto yy_find_action;
  1532. }
  1533. break;
  1534. }
  1535. default:
  1536. YY_FATAL_ERROR(
  1537. "fatal flex scanner internal error--no action found" );
  1538. } /* end of action switch */
  1539. } /* end of scanning one token */
  1540. } /* end of yylex */
  1541. /* yy_get_next_buffer - try to read in a new buffer
  1542. *
  1543. * Returns a code representing an action:
  1544. * EOB_ACT_LAST_MATCH -
  1545. * EOB_ACT_CONTINUE_SCAN - continue scanning from current position
  1546. * EOB_ACT_END_OF_FILE - end of file
  1547. */
  1548. static int yy_get_next_buffer()
  1549. {
  1550. register char *dest = yy_current_buffer->yy_ch_buf;
  1551. register char *source = yytext_ptr;
  1552. register int number_to_move, i;
  1553. int ret_val;
  1554. if ( yy_c_buf_p > &yy_current_buffer->yy_ch_buf[yy_n_chars + 1] )
  1555. YY_FATAL_ERROR(
  1556. "fatal flex scanner internal error--end of buffer missed" );
  1557. if ( yy_current_buffer->yy_fill_buffer == 0 )
  1558. { /* Don't try to fill the buffer, so this is an EOF. */
  1559. if ( yy_c_buf_p - yytext_ptr - YY_MORE_ADJ == 1 )
  1560. {
  1561. /* We matched a single character, the EOB, so
  1562. * treat this as a final EOF.
  1563. */
  1564. return EOB_ACT_END_OF_FILE;
  1565. }
  1566. else
  1567. {
  1568. /* We matched some text prior to the EOB, first
  1569. * process it.
  1570. */
  1571. return EOB_ACT_LAST_MATCH;
  1572. }
  1573. }
  1574. /* Try to read more data. */
  1575. /* First move last chars to start of buffer. */
  1576. number_to_move = (int) (yy_c_buf_p - yytext_ptr) - 1;
  1577. for ( i = 0; i < number_to_move; ++i )
  1578. *(dest++) = *(source++);
  1579. if ( yy_current_buffer->yy_buffer_status == YY_BUFFER_EOF_PENDING )
  1580. /* don't do the read, it's not guaranteed to return an EOF,
  1581. * just force an EOF
  1582. */
  1583. yy_current_buffer->yy_n_chars = yy_n_chars = 0;
  1584. else
  1585. {
  1586. int num_to_read =
  1587. yy_current_buffer->yy_buf_size - number_to_move - 1;
  1588. while ( num_to_read <= 0 )
  1589. { /* Not enough room in the buffer - grow it. */
  1590. #ifdef YY_USES_REJECT
  1591. YY_FATAL_ERROR(
  1592. "input buffer overflow, can't enlarge buffer because scanner uses REJECT" );
  1593. #else
  1594. /* just a shorter name for the current buffer */
  1595. YY_BUFFER_STATE b = yy_current_buffer;
  1596. int yy_c_buf_p_offset =
  1597. (int) (yy_c_buf_p - b->yy_ch_buf);
  1598. if ( b->yy_is_our_buffer )
  1599. {
  1600. int new_size = b->yy_buf_size * 2;
  1601. if ( new_size <= 0 )
  1602. b->yy_buf_size += b->yy_buf_size / 8;
  1603. else
  1604. b->yy_buf_size *= 2;
  1605. b->yy_ch_buf = (char *)
  1606. /* Include room in for 2 EOB chars. */
  1607. yy_flex_realloc( (void *) b->yy_ch_buf,
  1608. b->yy_buf_size + 2 );
  1609. }
  1610. else
  1611. /* Can't grow it, we don't own it. */
  1612. b->yy_ch_buf = 0;
  1613. if ( ! b->yy_ch_buf )
  1614. YY_FATAL_ERROR(
  1615. "fatal error - scanner input buffer overflow" );
  1616. yy_c_buf_p = &b->yy_ch_buf[yy_c_buf_p_offset];
  1617. num_to_read = yy_current_buffer->yy_buf_size -
  1618. number_to_move - 1;
  1619. #endif
  1620. }
  1621. if ( num_to_read > YY_READ_BUF_SIZE )
  1622. num_to_read = YY_READ_BUF_SIZE;
  1623. /* Read in more data. */
  1624. YY_INPUT( (&yy_current_buffer->yy_ch_buf[number_to_move]),
  1625. yy_n_chars, num_to_read );
  1626. yy_current_buffer->yy_n_chars = yy_n_chars;
  1627. }
  1628. if ( yy_n_chars == 0 )
  1629. {
  1630. if ( number_to_move == YY_MORE_ADJ )
  1631. {
  1632. ret_val = EOB_ACT_END_OF_FILE;
  1633. yyrestart( yyin );
  1634. }
  1635. else
  1636. {
  1637. ret_val = EOB_ACT_LAST_MATCH;
  1638. yy_current_buffer->yy_buffer_status =
  1639. YY_BUFFER_EOF_PENDING;
  1640. }
  1641. }
  1642. else
  1643. ret_val = EOB_ACT_CONTINUE_SCAN;
  1644. yy_n_chars += number_to_move;
  1645. yy_current_buffer->yy_ch_buf[yy_n_chars] = YY_END_OF_BUFFER_CHAR;
  1646. yy_current_buffer->yy_ch_buf[yy_n_chars + 1] = YY_END_OF_BUFFER_CHAR;
  1647. yytext_ptr = &yy_current_buffer->yy_ch_buf[0];
  1648. return ret_val;
  1649. }
  1650. /* yy_get_previous_state - get the state just before the EOB char was reached */
  1651. static yy_state_type yy_get_previous_state()
  1652. {
  1653. register yy_state_type yy_current_state;
  1654. register char *yy_cp;
  1655. yy_current_state = yy_start;
  1656. for ( yy_cp = yytext_ptr + YY_MORE_ADJ; yy_cp < yy_c_buf_p; ++yy_cp )
  1657. {
  1658. register YY_CHAR yy_c = (*yy_cp ? yy_ec[YY_SC_TO_UI(*yy_cp)] : 1);
  1659. if ( yy_accept[yy_current_state] )
  1660. {
  1661. yy_last_accepting_state = yy_current_state;
  1662. yy_last_accepting_cpos = yy_cp;
  1663. }
  1664. while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state )
  1665. {
  1666. yy_current_state = (int) yy_def[yy_current_state];
  1667. if ( yy_current_state >= 309 )
  1668. yy_c = yy_meta[(unsigned int) yy_c];
  1669. }
  1670. yy_current_state = yy_nxt[yy_base[yy_current_state] + (unsigned int) yy_c];
  1671. }
  1672. return yy_current_state;
  1673. }
  1674. /* yy_try_NUL_trans - try to make a transition on the NUL character
  1675. *
  1676. * synopsis
  1677. * next_state = yy_try_NUL_trans( current_state );
  1678. */
  1679. #ifdef YY_USE_PROTOS
  1680. static yy_state_type yy_try_NUL_trans( yy_state_type yy_current_state )
  1681. #else
  1682. static yy_state_type yy_try_NUL_trans( yy_current_state )
  1683. yy_state_type yy_current_state;
  1684. #endif
  1685. {
  1686. register int yy_is_jam;
  1687. register char *yy_cp = yy_c_buf_p;
  1688. register YY_CHAR yy_c = 1;
  1689. if ( yy_accept[yy_current_state] )
  1690. {
  1691. yy_last_accepting_state = yy_current_state;
  1692. yy_last_accepting_cpos = yy_cp;
  1693. }
  1694. while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state )
  1695. {
  1696. yy_current_state = (int) yy_def[yy_current_state];
  1697. if ( yy_current_state >= 309 )
  1698. yy_c = yy_meta[(unsigned int) yy_c];
  1699. }
  1700. yy_current_state = yy_nxt[yy_base[yy_current_state] + (unsigned int) yy_c];
  1701. yy_is_jam = (yy_current_state == 308);
  1702. return yy_is_jam ? 0 : yy_current_state;
  1703. }
  1704. #ifndef YY_NO_UNPUT
  1705. #ifdef YY_USE_PROTOS
  1706. static void yyunput( int c, register char *yy_bp )
  1707. #else
  1708. static void yyunput( c, yy_bp )
  1709. int c;
  1710. register char *yy_bp;
  1711. #endif
  1712. {
  1713. register char *yy_cp = yy_c_buf_p;
  1714. /* undo effects of setting up yytext */
  1715. *yy_cp = yy_hold_char;
  1716. if ( yy_cp < yy_current_buffer->yy_ch_buf + 2 )
  1717. { /* need to shift things up to make room */
  1718. /* +2 for EOB chars. */
  1719. register int number_to_move = yy_n_chars + 2;
  1720. register char *dest = &yy_current_buffer->yy_ch_buf[
  1721. yy_current_buffer->yy_buf_size + 2];
  1722. register char *source =
  1723. &yy_current_buffer->yy_ch_buf[number_to_move];
  1724. while ( source > yy_current_buffer->yy_ch_buf )
  1725. *--dest = *--source;
  1726. yy_cp += (int) (dest - source);
  1727. yy_bp += (int) (dest - source);
  1728. yy_current_buffer->yy_n_chars =
  1729. yy_n_chars = yy_current_buffer->yy_buf_size;
  1730. if ( yy_cp < yy_current_buffer->yy_ch_buf + 2 )
  1731. YY_FATAL_ERROR( "flex scanner push-back overflow" );
  1732. }
  1733. *--yy_cp = (char) c;
  1734. yytext_ptr = yy_bp;
  1735. yy_hold_char = *yy_cp;
  1736. yy_c_buf_p = yy_cp;
  1737. }
  1738. #endif /* ifndef YY_NO_UNPUT */
  1739. #ifdef __cplusplus
  1740. static int yyinput()
  1741. #else
  1742. static int input()
  1743. #endif
  1744. {
  1745. int c;
  1746. *yy_c_buf_p = yy_hold_char;
  1747. if ( *yy_c_buf_p == YY_END_OF_BUFFER_CHAR )
  1748. {
  1749. /* yy_c_buf_p now points to the character we want to return.
  1750. * If this occurs *before* the EOB characters, then it's a
  1751. * valid NUL; if not, then we've hit the end of the buffer.
  1752. */
  1753. if ( yy_c_buf_p < &yy_current_buffer->yy_ch_buf[yy_n_chars] )
  1754. /* This was really a NUL. */
  1755. *yy_c_buf_p = '\0';
  1756. else
  1757. { /* need more input */
  1758. int offset = yy_c_buf_p - yytext_ptr;
  1759. ++yy_c_buf_p;
  1760. switch ( yy_get_next_buffer() )
  1761. {
  1762. case EOB_ACT_LAST_MATCH:
  1763. /* This happens because yy_g_n_b()
  1764. * sees that we've accumulated a
  1765. * token and flags that we need to
  1766. * try matching the token before
  1767. * proceeding. But for input(),
  1768. * there's no matching to consider.
  1769. * So convert the EOB_ACT_LAST_MATCH
  1770. * to EOB_ACT_END_OF_FILE.
  1771. */
  1772. /* Reset buffer status. */
  1773. yyrestart( yyin );
  1774. /* fall through */
  1775. case EOB_ACT_END_OF_FILE:
  1776. {
  1777. if ( yywrap() )
  1778. return EOF;
  1779. if ( ! yy_did_buffer_switch_on_eof )
  1780. YY_NEW_FILE;
  1781. #ifdef __cplusplus
  1782. return yyinput();
  1783. #else
  1784. return input();
  1785. #endif
  1786. }
  1787. case EOB_ACT_CONTINUE_SCAN:
  1788. yy_c_buf_p = yytext_ptr + offset;
  1789. break;
  1790. }
  1791. }
  1792. }
  1793. c = *(unsigned char *) yy_c_buf_p; /* cast for 8-bit char's */
  1794. *yy_c_buf_p = '\0'; /* preserve yytext */
  1795. yy_hold_char = *++yy_c_buf_p;
  1796. return c;
  1797. }
  1798. #ifdef YY_USE_PROTOS
  1799. void yyrestart( FILE *input_file )
  1800. #else
  1801. void yyrestart( input_file )
  1802. FILE *input_file;
  1803. #endif
  1804. {
  1805. if ( ! yy_current_buffer )
  1806. yy_current_buffer = yy_create_buffer( yyin, YY_BUF_SIZE );
  1807. yy_init_buffer( yy_current_buffer, input_file );
  1808. yy_load_buffer_state();
  1809. }
  1810. #ifdef YY_USE_PROTOS
  1811. void yy_switch_to_buffer( YY_BUFFER_STATE new_buffer )
  1812. #else
  1813. void yy_switch_to_buffer( new_buffer )
  1814. YY_BUFFER_STATE new_buffer;
  1815. #endif
  1816. {
  1817. if ( yy_current_buffer == new_buffer )
  1818. return;
  1819. if ( yy_current_buffer )
  1820. {
  1821. /* Flush out information for old buffer. */
  1822. *yy_c_buf_p = yy_hold_char;
  1823. yy_current_buffer->yy_buf_pos = yy_c_buf_p;
  1824. yy_current_buffer->yy_n_chars = yy_n_chars;
  1825. }
  1826. yy_current_buffer = new_buffer;
  1827. yy_load_buffer_state();
  1828. /* We don't actually know whether we did this switch during
  1829. * EOF (yywrap()) processing, but the only time this flag
  1830. * is looked at is after yywrap() is called, so it's safe
  1831. * to go ahead and always set it.
  1832. */
  1833. yy_did_buffer_switch_on_eof = 1;
  1834. }
  1835. #ifdef YY_USE_PROTOS
  1836. void yy_load_buffer_state( void )
  1837. #else
  1838. void yy_load_buffer_state()
  1839. #endif
  1840. {
  1841. yy_n_chars = yy_current_buffer->yy_n_chars;
  1842. yytext_ptr = yy_c_buf_p = yy_current_buffer->yy_buf_pos;
  1843. yyin = yy_current_buffer->yy_input_file;
  1844. yy_hold_char = *yy_c_buf_p;
  1845. }
  1846. #ifdef YY_USE_PROTOS
  1847. YY_BUFFER_STATE yy_create_buffer( FILE *file, int size )
  1848. #else
  1849. YY_BUFFER_STATE yy_create_buffer( file, size )
  1850. FILE *file;
  1851. int size;
  1852. #endif
  1853. {
  1854. YY_BUFFER_STATE b;
  1855. b = (YY_BUFFER_STATE) yy_flex_alloc( sizeof( struct yy_buffer_state ) );
  1856. if ( ! b )
  1857. YY_FATAL_ERROR( "out of dynamic memory in yy_create_buffer()" );
  1858. b->yy_buf_size = size;
  1859. /* yy_ch_buf has to be 2 characters longer than the size given because
  1860. * we need to put in 2 end-of-buffer characters.
  1861. */
  1862. b->yy_ch_buf = (char *) yy_flex_alloc( b->yy_buf_size + 2 );
  1863. if ( ! b->yy_ch_buf )
  1864. YY_FATAL_ERROR( "out of dynamic memory in yy_create_buffer()" );
  1865. b->yy_is_our_buffer = 1;
  1866. yy_init_buffer( b, file );
  1867. return b;
  1868. }
  1869. #ifdef YY_USE_PROTOS
  1870. void yy_delete_buffer( YY_BUFFER_STATE b )
  1871. #else
  1872. void yy_delete_buffer( b )
  1873. YY_BUFFER_STATE b;
  1874. #endif
  1875. {
  1876. if ( ! b )
  1877. return;
  1878. if ( b == yy_current_buffer )
  1879. yy_current_buffer = (YY_BUFFER_STATE) 0;
  1880. if ( b->yy_is_our_buffer )
  1881. yy_flex_free( (void *) b->yy_ch_buf );
  1882. yy_flex_free( (void *) b );
  1883. }
  1884. #ifdef YY_USE_PROTOS
  1885. void yy_init_buffer( YY_BUFFER_STATE b, FILE *file )
  1886. #else
  1887. void yy_init_buffer( b, file )
  1888. YY_BUFFER_STATE b;
  1889. FILE *file;
  1890. #endif
  1891. {
  1892. yy_flush_buffer( b );
  1893. b->yy_input_file = file;
  1894. b->yy_fill_buffer = 1;
  1895. #if YY_ALWAYS_INTERACTIVE
  1896. b->yy_is_interactive = 1;
  1897. #else
  1898. #if YY_NEVER_INTERACTIVE
  1899. b->yy_is_interactive = 0;
  1900. #else
  1901. b->yy_is_interactive = file ? (isatty( fileno(file) ) > 0) : 0;
  1902. #endif
  1903. #endif
  1904. }
  1905. #ifdef YY_USE_PROTOS
  1906. void yy_flush_buffer( YY_BUFFER_STATE b )
  1907. #else
  1908. void yy_flush_buffer( b )
  1909. YY_BUFFER_STATE b;
  1910. #endif
  1911. {
  1912. if ( ! b )
  1913. return;
  1914. b->yy_n_chars = 0;
  1915. /* We always need two end-of-buffer characters. The first causes
  1916. * a transition to the end-of-buffer state. The second causes
  1917. * a jam in that state.
  1918. */
  1919. b->yy_ch_buf[0] = YY_END_OF_BUFFER_CHAR;
  1920. b->yy_ch_buf[1] = YY_END_OF_BUFFER_CHAR;
  1921. b->yy_buf_pos = &b->yy_ch_buf[0];
  1922. b->yy_at_bol = 1;
  1923. b->yy_buffer_status = YY_BUFFER_NEW;
  1924. if ( b == yy_current_buffer )
  1925. yy_load_buffer_state();
  1926. }
  1927. #ifndef YY_NO_SCAN_BUFFER
  1928. #ifdef YY_USE_PROTOS
  1929. YY_BUFFER_STATE yy_scan_buffer( char *base, yy_size_t size )
  1930. #else
  1931. YY_BUFFER_STATE yy_scan_buffer( base, size )
  1932. char *base;
  1933. yy_size_t size;
  1934. #endif
  1935. {
  1936. YY_BUFFER_STATE b;
  1937. if ( size < 2 ||
  1938. base[size-2] != YY_END_OF_BUFFER_CHAR ||
  1939. base[size-1] != YY_END_OF_BUFFER_CHAR )
  1940. /* They forgot to leave room for the EOB's. */
  1941. return 0;
  1942. b = (YY_BUFFER_STATE) yy_flex_alloc( sizeof( struct yy_buffer_state ) );
  1943. if ( ! b )
  1944. YY_FATAL_ERROR( "out of dynamic memory in yy_scan_buffer()" );
  1945. b->yy_buf_size = size - 2; /* "- 2" to take care of EOB's */
  1946. b->yy_buf_pos = b->yy_ch_buf = base;
  1947. b->yy_is_our_buffer = 0;
  1948. b->yy_input_file = 0;
  1949. b->yy_n_chars = b->yy_buf_size;
  1950. b->yy_is_interactive = 0;
  1951. b->yy_at_bol = 1;
  1952. b->yy_fill_buffer = 0;
  1953. b->yy_buffer_status = YY_BUFFER_NEW;
  1954. yy_switch_to_buffer( b );
  1955. return b;
  1956. }
  1957. #endif
  1958. #ifndef YY_NO_SCAN_STRING
  1959. #ifdef YY_USE_PROTOS
  1960. YY_BUFFER_STATE yy_scan_string( yyconst char *yy_str )
  1961. #else
  1962. YY_BUFFER_STATE yy_scan_string( yy_str )
  1963. yyconst char *yy_str;
  1964. #endif
  1965. {
  1966. int len;
  1967. for ( len = 0; yy_str[len]; ++len )
  1968. ;
  1969. return yy_scan_bytes( yy_str, len );
  1970. }
  1971. #endif
  1972. #ifndef YY_NO_SCAN_BYTES
  1973. #ifdef YY_USE_PROTOS
  1974. YY_BUFFER_STATE yy_scan_bytes( yyconst char *bytes, int len )
  1975. #else
  1976. YY_BUFFER_STATE yy_scan_bytes( bytes, len )
  1977. yyconst char *bytes;
  1978. int len;
  1979. #endif
  1980. {
  1981. YY_BUFFER_STATE b;
  1982. char *buf;
  1983. yy_size_t n;
  1984. int i;
  1985. /* Get memory for full buffer, including space for trailing EOB's. */
  1986. n = len + 2;
  1987. buf = (char *) yy_flex_alloc( n );
  1988. if ( ! buf )
  1989. YY_FATAL_ERROR( "out of dynamic memory in yy_scan_bytes()" );
  1990. for ( i = 0; i < len; ++i )
  1991. buf[i] = bytes[i];
  1992. buf[len] = buf[len+1] = YY_END_OF_BUFFER_CHAR;
  1993. b = yy_scan_buffer( buf, n );
  1994. if ( ! b )
  1995. YY_FATAL_ERROR( "bad buffer in yy_scan_bytes()" );
  1996. /* It's okay to grow etc. this buffer, and we should throw it
  1997. * away when we're done.
  1998. */
  1999. b->yy_is_our_buffer = 1;
  2000. return b;
  2001. }
  2002. #endif
  2003. #ifndef YY_NO_PUSH_STATE
  2004. #ifdef YY_USE_PROTOS
  2005. static void yy_push_state( int new_state )
  2006. #else
  2007. static void yy_push_state( new_state )
  2008. int new_state;
  2009. #endif
  2010. {
  2011. if ( yy_start_stack_ptr >= yy_start_stack_depth )
  2012. {
  2013. yy_size_t new_size;
  2014. yy_start_stack_depth += YY_START_STACK_INCR;
  2015. new_size = yy_start_stack_depth * sizeof( int );
  2016. if ( ! yy_start_stack )
  2017. yy_start_stack = (int *) yy_flex_alloc( new_size );
  2018. else
  2019. yy_start_stack = (int *) yy_flex_realloc(
  2020. (void *) yy_start_stack, new_size );
  2021. if ( ! yy_start_stack )
  2022. YY_FATAL_ERROR(
  2023. "out of memory expanding start-condition stack" );
  2024. }
  2025. yy_start_stack[yy_start_stack_ptr++] = YY_START;
  2026. BEGIN(new_state);
  2027. }
  2028. #endif
  2029. #ifndef YY_NO_POP_STATE
  2030. static void yy_pop_state()
  2031. {
  2032. if ( --yy_start_stack_ptr < 0 )
  2033. YY_FATAL_ERROR( "start-condition stack underflow" );
  2034. BEGIN(yy_start_stack[yy_start_stack_ptr]);
  2035. }
  2036. #endif
  2037. #ifndef YY_NO_TOP_STATE
  2038. static int yy_top_state()
  2039. {
  2040. return yy_start_stack[yy_start_stack_ptr - 1];
  2041. }
  2042. #endif
  2043. #ifndef YY_EXIT_FAILURE
  2044. #define YY_EXIT_FAILURE 2
  2045. #endif
  2046. #ifdef YY_USE_PROTOS
  2047. static void yy_fatal_error( yyconst char msg[] )
  2048. #else
  2049. static void yy_fatal_error( msg )
  2050. char msg[];
  2051. #endif
  2052. {
  2053. (void) fprintf( stderr, "%s\n", msg );
  2054. exit( YY_EXIT_FAILURE );
  2055. }
  2056. /* Redefine yyless() so it works in section 3 code. */
  2057. #undef yyless
  2058. #define yyless(n) \
  2059. do \
  2060. { \
  2061. /* Undo effects of setting up yytext. */ \
  2062. yytext[yyleng] = yy_hold_char; \
  2063. yy_c_buf_p = yytext + n; \
  2064. yy_hold_char = *yy_c_buf_p; \
  2065. *yy_c_buf_p = '\0'; \
  2066. yyleng = n; \
  2067. } \
  2068. while ( 0 )
  2069. /* Internal utility routines. */
  2070. #ifndef yytext_ptr
  2071. #ifdef YY_USE_PROTOS
  2072. static void yy_flex_strncpy( char *s1, yyconst char *s2, int n )
  2073. #else
  2074. static void yy_flex_strncpy( s1, s2, n )
  2075. char *s1;
  2076. yyconst char *s2;
  2077. int n;
  2078. #endif
  2079. {
  2080. register int i;
  2081. for ( i = 0; i < n; ++i )
  2082. s1[i] = s2[i];
  2083. }
  2084. #endif
  2085. #ifdef YY_NEED_STRLEN
  2086. #ifdef YY_USE_PROTOS
  2087. static int yy_flex_strlen( yyconst char *s )
  2088. #else
  2089. static int yy_flex_strlen( s )
  2090. yyconst char *s;
  2091. #endif
  2092. {
  2093. register int n;
  2094. for ( n = 0; s[n]; ++n )
  2095. ;
  2096. return n;
  2097. }
  2098. #endif
  2099. #ifdef YY_USE_PROTOS
  2100. static void *yy_flex_alloc( yy_size_t size )
  2101. #else
  2102. static void *yy_flex_alloc( size )
  2103. yy_size_t size;
  2104. #endif
  2105. {
  2106. return (void *) malloc( size );
  2107. }
  2108. #ifdef YY_USE_PROTOS
  2109. static void *yy_flex_realloc( void *ptr, yy_size_t size )
  2110. #else
  2111. static void *yy_flex_realloc( ptr, size )
  2112. void *ptr;
  2113. yy_size_t size;
  2114. #endif
  2115. {
  2116. /* The cast to (char *) in the following accommodates both
  2117. * implementations that use char* generic pointers, and those
  2118. * that use void* generic pointers. It works with the latter
  2119. * because both ANSI C and C++ allow castless assignment from
  2120. * any pointer type to void*, and deal with argument conversions
  2121. * as though doing an assignment.
  2122. */
  2123. return (void *) realloc( (char *) ptr, size );
  2124. }
  2125. #ifdef YY_USE_PROTOS
  2126. static void yy_flex_free( void *ptr )
  2127. #else
  2128. static void yy_flex_free( ptr )
  2129. void *ptr;
  2130. #endif
  2131. {
  2132. free( ptr );
  2133. }
  2134. #if YY_MAIN
  2135. int main()
  2136. {
  2137. yylex();
  2138. return 0;
  2139. }
  2140. #endif
  2141. #line 389 "rc1.0_tokens.l"
  2142. bool rc10_init_more();
  2143. bool rc10_init(char* inputString)
  2144. {
  2145. myin = inputString;
  2146. return rc10_init_more();
  2147. }
  2148. #ifndef rc10_wrap
  2149. int rc10_wrap(void)
  2150. {
  2151. return(1);
  2152. }
  2153. #endif