funkalicious 0.1

getChainPotential_lexer.c

Go to the documentation of this file.
00001 
00002 #line 3 "src/getChainPotential_lexer.c"
00003 
00004 #define  YY_INT_ALIGNED short int
00005 
00006 /* A lexical scanner generated by flex */
00007 
00008 #define FLEX_SCANNER
00009 #define YY_FLEX_MAJOR_VERSION 2
00010 #define YY_FLEX_MINOR_VERSION 5
00011 #define YY_FLEX_SUBMINOR_VERSION 35
00012 #if YY_FLEX_SUBMINOR_VERSION > 0
00013 #define FLEX_BETA
00014 #endif
00015 
00016 /* First, we deal with  platform-specific or compiler-specific issues. */
00017 
00018 /* begin standard C headers. */
00019 #include <stdio.h>
00020 #include <string.h>
00021 #include <errno.h>
00022 #include <stdlib.h>
00023 
00024 /* end standard C headers. */
00025 
00026 /* flex integer type definitions */
00027 
00028 #ifndef FLEXINT_H
00029 #define FLEXINT_H
00030 
00031 /* C99 systems have <inttypes.h>. Non-C99 systems may or may not. */
00032 
00033 #if defined (__STDC_VERSION__) && __STDC_VERSION__ >= 199901L
00034 
00035 /* C99 says to define __STDC_LIMIT_MACROS before including stdint.h,
00036  * if you want the limit (max/min) macros for int types. 
00037  */
00038 #ifndef __STDC_LIMIT_MACROS
00039 #define __STDC_LIMIT_MACROS 1
00040 #endif
00041 
00042 #include <inttypes.h>
00043 typedef int8_t flex_int8_t;
00044 typedef uint8_t flex_uint8_t;
00045 typedef int16_t flex_int16_t;
00046 typedef uint16_t flex_uint16_t;
00047 typedef int32_t flex_int32_t;
00048 typedef uint32_t flex_uint32_t;
00049 #else
00050 typedef signed char flex_int8_t;
00051 typedef short int flex_int16_t;
00052 typedef int flex_int32_t;
00053 typedef unsigned char flex_uint8_t; 
00054 typedef unsigned short int flex_uint16_t;
00055 typedef unsigned int flex_uint32_t;
00056 
00057 /* Limits of integral types. */
00058 #ifndef INT8_MIN
00059 #define INT8_MIN               (-128)
00060 #endif
00061 #ifndef INT16_MIN
00062 #define INT16_MIN              (-32767-1)
00063 #endif
00064 #ifndef INT32_MIN
00065 #define INT32_MIN              (-2147483647-1)
00066 #endif
00067 #ifndef INT8_MAX
00068 #define INT8_MAX               (127)
00069 #endif
00070 #ifndef INT16_MAX
00071 #define INT16_MAX              (32767)
00072 #endif
00073 #ifndef INT32_MAX
00074 #define INT32_MAX              (2147483647)
00075 #endif
00076 #ifndef UINT8_MAX
00077 #define UINT8_MAX              (255U)
00078 #endif
00079 #ifndef UINT16_MAX
00080 #define UINT16_MAX             (65535U)
00081 #endif
00082 #ifndef UINT32_MAX
00083 #define UINT32_MAX             (4294967295U)
00084 #endif
00085 
00086 #endif /* ! C99 */
00087 
00088 #endif /* ! FLEXINT_H */
00089 
00090 #ifdef __cplusplus
00091 
00092 /* The "const" storage-class-modifier is valid. */
00093 #define YY_USE_CONST
00094 
00095 #else /* ! __cplusplus */
00096 
00097 /* C99 requires __STDC__ to be defined as 1. */
00098 #if defined (__STDC__)
00099 
00100 #define YY_USE_CONST
00101 
00102 #endif  /* defined (__STDC__) */
00103 #endif  /* ! __cplusplus */
00104 
00105 #ifdef YY_USE_CONST
00106 #define yyconst const
00107 #else
00108 #define yyconst
00109 #endif
00110 
00111 /* Returned upon end-of-file. */
00112 #define YY_NULL 0
00113 
00114 /* Promotes a possibly negative, possibly signed char to an unsigned
00115  * integer for use as an array index.  If the signed char is negative,
00116  * we want to instead treat it as an 8-bit unsigned char, hence the
00117  * double cast.
00118  */
00119 #define YY_SC_TO_UI(c) ((unsigned int) (unsigned char) c)
00120 
00121 /* Enter a start condition.  This macro really ought to take a parameter,
00122  * but we do it the disgusting crufty way forced on us by the ()-less
00123  * definition of BEGIN.
00124  */
00125 #define BEGIN (yy_start) = 1 + 2 *
00126 
00127 /* Translate the current start state into a value that can be later handed
00128  * to BEGIN to return to the state.  The YYSTATE alias is for lex
00129  * compatibility.
00130  */
00131 #define YY_START (((yy_start) - 1) / 2)
00132 #define YYSTATE YY_START
00133 
00134 /* Action number for EOF rule of a given start state. */
00135 #define YY_STATE_EOF(state) (YY_END_OF_BUFFER + state + 1)
00136 
00137 /* Special action meaning "start processing a new file". */
00138 #define YY_NEW_FILE yyrestart(yyin  )
00139 
00140 #define YY_END_OF_BUFFER_CHAR 0
00141 
00142 /* Size of default input buffer. */
00143 #ifndef YY_BUF_SIZE
00144 #ifdef __ia64__
00145 /* On IA-64, the buffer size is 16k, not 8k.
00146  * Moreover, YY_BUF_SIZE is 2*YY_READ_BUF_SIZE in the general case.
00147  * Ditto for the __ia64__ case accordingly.
00148  */
00149 #define YY_BUF_SIZE 32768
00150 #else
00151 #define YY_BUF_SIZE 16384
00152 #endif /* __ia64__ */
00153 #endif
00154 
00155 /* The state buf must be large enough to hold one state per character in the main buffer.
00156  */
00157 #define YY_STATE_BUF_SIZE   ((YY_BUF_SIZE + 2) * sizeof(yy_state_type))
00158 
00159 #ifndef YY_TYPEDEF_YY_BUFFER_STATE
00160 #define YY_TYPEDEF_YY_BUFFER_STATE
00161 typedef struct yy_buffer_state *YY_BUFFER_STATE;
00162 #endif
00163 
00164 extern int yyleng;
00165 
00166 extern FILE *yyin, *yyout;
00167 
00168 #define EOB_ACT_CONTINUE_SCAN 0
00169 #define EOB_ACT_END_OF_FILE 1
00170 #define EOB_ACT_LAST_MATCH 2
00171 
00172     /* Note: We specifically omit the test for yy_rule_can_match_eol because it requires
00173      *       access to the local variable yy_act. Since yyless() is a macro, it would break
00174      *       existing scanners that call yyless() from OUTSIDE yylex. 
00175      *       One obvious solution it to make yy_act a global. I tried that, and saw
00176      *       a 5% performance hit in a non-yylineno scanner, because yy_act is
00177      *       normally declared as a register variable-- so it is not worth it.
00178      */
00179     #define  YY_LESS_LINENO(n) \
00180             do { \
00181                 int yyl;\
00182                 for ( yyl = n; yyl < yyleng; ++yyl )\
00183                     if ( yytext[yyl] == '\n' )\
00184                         --yylineno;\
00185             }while(0)
00186     
00187 /* Return all but the first "n" matched characters back to the input stream. */
00188 #define yyless(n) \
00189   do \
00190     { \
00191     /* Undo effects of setting up yytext. */ \
00192         int yyless_macro_arg = (n); \
00193         YY_LESS_LINENO(yyless_macro_arg);\
00194     *yy_cp = (yy_hold_char); \
00195     YY_RESTORE_YY_MORE_OFFSET \
00196     (yy_c_buf_p) = yy_cp = yy_bp + yyless_macro_arg - YY_MORE_ADJ; \
00197     YY_DO_BEFORE_ACTION; /* set up yytext again */ \
00198     } \
00199   while ( 0 )
00200 
00201 #define unput(c) yyunput( c, (yytext_ptr)  )
00202 
00203 #ifndef YY_TYPEDEF_YY_SIZE_T
00204 #define YY_TYPEDEF_YY_SIZE_T
00205 typedef size_t yy_size_t;
00206 #endif
00207 
00208 #ifndef YY_STRUCT_YY_BUFFER_STATE
00209 #define YY_STRUCT_YY_BUFFER_STATE
00210 struct yy_buffer_state
00211   {
00212   FILE *yy_input_file;
00213 
00214   char *yy_ch_buf;    /* input buffer */
00215   char *yy_buf_pos;   /* current position in input buffer */
00216 
00217   /* Size of input buffer in bytes, not including room for EOB
00218    * characters.
00219    */
00220   yy_size_t yy_buf_size;
00221 
00222   /* Number of characters read into yy_ch_buf, not including EOB
00223    * characters.
00224    */
00225   int yy_n_chars;
00226 
00227   /* Whether we "own" the buffer - i.e., we know we created it,
00228    * and can realloc() it to grow it, and should free() it to
00229    * delete it.
00230    */
00231   int yy_is_our_buffer;
00232 
00233   /* Whether this is an "interactive" input source; if so, and
00234    * if we're using stdio for input, then we want to use getc()
00235    * instead of fread(), to make sure we stop fetching input after
00236    * each newline.
00237    */
00238   int yy_is_interactive;
00239 
00240   /* Whether we're considered to be at the beginning of a line.
00241    * If so, '^' rules will be active on the next match, otherwise
00242    * not.
00243    */
00244   int yy_at_bol;
00245 
00246     int yy_bs_lineno; /**< The line count. */
00247     int yy_bs_column; /**< The column count. */
00248     
00249   /* Whether to try to fill the input buffer when we reach the
00250    * end of it.
00251    */
00252   int yy_fill_buffer;
00253 
00254   int yy_buffer_status;
00255 
00256 #define YY_BUFFER_NEW 0
00257 #define YY_BUFFER_NORMAL 1
00258   /* When an EOF's been seen but there's still some text to process
00259    * then we mark the buffer as YY_EOF_PENDING, to indicate that we
00260    * shouldn't try reading from the input source any more.  We might
00261    * still have a bunch of tokens to match, though, because of
00262    * possible backing-up.
00263    *
00264    * When we actually see the EOF, we change the status to "new"
00265    * (via yyrestart()), so that the user can continue scanning by
00266    * just pointing yyin at a new input file.
00267    */
00268 #define YY_BUFFER_EOF_PENDING 2
00269 
00270   };
00271 #endif /* !YY_STRUCT_YY_BUFFER_STATE */
00272 
00273 /* Stack of input buffers. */
00274 static size_t yy_buffer_stack_top = 0; /**< index of top of stack. */
00275 static size_t yy_buffer_stack_max = 0; /**< capacity of stack. */
00276 static YY_BUFFER_STATE * yy_buffer_stack = 0; /**< Stack as an array. */
00277 
00278 /* We provide macros for accessing buffer states in case in the
00279  * future we want to put the buffer states in a more general
00280  * "scanner state".
00281  *
00282  * Returns the top of the stack, or NULL.
00283  */
00284 #define YY_CURRENT_BUFFER ( (yy_buffer_stack) \
00285                           ? (yy_buffer_stack)[(yy_buffer_stack_top)] \
00286                           : NULL)
00287 
00288 /* Same as previous macro, but useful when we know that the buffer stack is not
00289  * NULL or when we need an lvalue. For internal use only.
00290  */
00291 #define YY_CURRENT_BUFFER_LVALUE (yy_buffer_stack)[(yy_buffer_stack_top)]
00292 
00293 /* yy_hold_char holds the character lost when yytext is formed. */
00294 static char yy_hold_char;
00295 static int yy_n_chars;    /* number of characters read into yy_ch_buf */
00296 int yyleng;
00297 
00298 /* Points to current character in buffer. */
00299 static char *yy_c_buf_p = (char *) 0;
00300 static int yy_init = 0;   /* whether we need to initialize */
00301 static int yy_start = 0;  /* start state number */
00302 
00303 /* Flag which is used to allow yywrap()'s to do buffer switches
00304  * instead of setting up a fresh yyin.  A bit of a hack ...
00305  */
00306 static int yy_did_buffer_switch_on_eof;
00307 
00308 void yyrestart (FILE *input_file  );
00309 void yy_switch_to_buffer (YY_BUFFER_STATE new_buffer  );
00310 YY_BUFFER_STATE yy_create_buffer (FILE *file,int size  );
00311 void yy_delete_buffer (YY_BUFFER_STATE b  );
00312 void yy_flush_buffer (YY_BUFFER_STATE b  );
00313 void yypush_buffer_state (YY_BUFFER_STATE new_buffer  );
00314 void yypop_buffer_state (void );
00315 
00316 static void yyensure_buffer_stack (void );
00317 static void yy_load_buffer_state (void );
00318 static void yy_init_buffer (YY_BUFFER_STATE b,FILE *file  );
00319 
00320 #define YY_FLUSH_BUFFER yy_flush_buffer(YY_CURRENT_BUFFER )
00321 
00322 YY_BUFFER_STATE yy_scan_buffer (char *base,yy_size_t size  );
00323 YY_BUFFER_STATE yy_scan_string (yyconst char *yy_str  );
00324 YY_BUFFER_STATE yy_scan_bytes (yyconst char *bytes,int len  );
00325 
00326 void *yyalloc (yy_size_t  );
00327 void *yyrealloc (void *,yy_size_t  );
00328 void yyfree (void *  );
00329 
00330 #define yy_new_buffer yy_create_buffer
00331 
00332 #define yy_set_interactive(is_interactive) \
00333   { \
00334   if ( ! YY_CURRENT_BUFFER ){ \
00335         yyensure_buffer_stack (); \
00336     YY_CURRENT_BUFFER_LVALUE =    \
00337             yy_create_buffer(yyin,YY_BUF_SIZE ); \
00338   } \
00339   YY_CURRENT_BUFFER_LVALUE->yy_is_interactive = is_interactive; \
00340   }
00341 
00342 #define yy_set_bol(at_bol) \
00343   { \
00344   if ( ! YY_CURRENT_BUFFER ){\
00345         yyensure_buffer_stack (); \
00346     YY_CURRENT_BUFFER_LVALUE =    \
00347             yy_create_buffer(yyin,YY_BUF_SIZE ); \
00348   } \
00349   YY_CURRENT_BUFFER_LVALUE->yy_at_bol = at_bol; \
00350   }
00351 
00352 #define YY_AT_BOL() (YY_CURRENT_BUFFER_LVALUE->yy_at_bol)
00353 
00354 /* Begin user sect3 */
00355 
00356 #define yywrap(n) 1
00357 #define YY_SKIP_YYWRAP
00358 
00359 typedef unsigned char YY_CHAR;
00360 
00361 FILE *yyin = (FILE *) 0, *yyout = (FILE *) 0;
00362 
00363 typedef int yy_state_type;
00364 
00365 extern int yylineno;
00366 
00367 int yylineno = 1;
00368 
00369 extern char *yytext;
00370 #define yytext_ptr yytext
00371 
00372 static yy_state_type yy_get_previous_state (void );
00373 static yy_state_type yy_try_NUL_trans (yy_state_type current_state  );
00374 static int yy_get_next_buffer (void );
00375 static void yy_fatal_error (yyconst char msg[]  );
00376 
00377 /* Done after the current pattern has been matched and before the
00378  * corresponding action - sets up yytext.
00379  */
00380 #define YY_DO_BEFORE_ACTION \
00381   (yytext_ptr) = yy_bp; \
00382   yyleng = (size_t) (yy_cp - yy_bp); \
00383   (yy_hold_char) = *yy_cp; \
00384   *yy_cp = '\0'; \
00385   (yy_c_buf_p) = yy_cp;
00386 
00387 #define YY_NUM_RULES 6
00388 #define YY_END_OF_BUFFER 7
00389 /* This struct is not used in this scanner,
00390    but its presence is necessary. */
00391 struct yy_trans_info
00392   {
00393   flex_int32_t yy_verify;
00394   flex_int32_t yy_nxt;
00395   };
00396 static yyconst flex_int16_t yy_accept[21] =
00397     {   0,
00398         0,    0,    7,    5,    6,    5,    5,    4,    4,    3,
00399         1,    4,    0,    0,    1,    0,    2,    0,    3,    0
00400     } ;
00401 
00402 static yyconst flex_int32_t yy_ec[256] =
00403     {   0,
00404         1,    1,    1,    1,    1,    1,    1,    1,    1,    2,
00405         1,    1,    1,    1,    1,    1,    1,    1,    1,    1,
00406         1,    1,    1,    1,    1,    1,    1,    1,    1,    1,
00407         1,    1,    1,    1,    1,    1,    1,    1,    1,    1,
00408         1,    1,    3,    1,    3,    4,    1,    5,    5,    5,
00409         5,    5,    5,    5,    5,    5,    5,    1,    1,    1,
00410         1,    1,    1,    1,    1,    1,    1,    1,    6,    1,
00411         1,    1,    1,    1,    1,    1,    1,    1,    1,    1,
00412         1,    1,    1,    1,    1,    1,    1,    1,    1,    1,
00413         1,    1,    1,    1,    1,    1,    1,    1,    1,    1,
00414 
00415         6,    1,    1,    1,    1,    1,    1,    1,    1,    1,
00416         1,    1,    1,    1,    1,    1,    1,    1,    1,    1,
00417         1,    1,    1,    1,    1,    1,    1,    1,    1,    1,
00418         1,    1,    1,    1,    1,    1,    1,    1,    1,    1,
00419         1,    1,    1,    1,    1,    1,    1,    1,    1,    1,
00420         1,    1,    1,    1,    1,    1,    1,    1,    1,    1,
00421         1,    1,    1,    1,    1,    1,    1,    1,    1,    1,
00422         1,    1,    1,    1,    1,    1,    1,    1,    1,    1,
00423         1,    1,    1,    1,    1,    1,    1,    1,    1,    1,
00424         1,    1,    1,    1,    1,    1,    1,    1,    1,    1,
00425 
00426         1,    1,    1,    1,    1,    1,    1,    1,    1,    1,
00427         1,    1,    1,    1,    1,    1,    1,    1,    1,    1,
00428         1,    1,    1,    1,    1,    1,    1,    1,    1,    1,
00429         1,    1,    1,    1,    1,    1,    1,    1,    1,    1,
00430         1,    1,    1,    1,    1,    1,    1,    1,    1,    1,
00431         1,    1,    1,    1,    1
00432     } ;
00433 
00434 static yyconst flex_int32_t yy_meta[7] =
00435     {   0,
00436         1,    1,    1,    1,    2,    1
00437     } ;
00438 
00439 static yyconst flex_int16_t yy_base[25] =
00440     {   0,
00441         0,    0,   21,   22,   22,    0,    0,    3,    0,   14,
00442         5,    0,    9,   12,    0,    0,    0,    0,    0,   22,
00443        17,   16,   14,   11
00444     } ;
00445 
00446 static yyconst flex_int16_t yy_def[25] =
00447     {   0,
00448        20,    1,   20,   20,   20,   21,   22,   20,    8,   22,
00449        20,    8,   20,   20,   11,   23,   23,   24,   24,    0,
00450        20,   20,   20,   20
00451     } ;
00452 
00453 static yyconst flex_int16_t yy_nxt[29] =
00454     {   0,
00455         4,    5,    6,    7,    8,    4,   11,   12,   13,   15,
00456        13,   16,   19,   17,   18,   17,   19,   10,    9,   14,
00457        20,    3,   20,   20,   20,   20,   20,   20
00458     } ;
00459 
00460 static yyconst flex_int16_t yy_chk[29] =
00461     {   0,
00462         1,    1,    1,    1,    1,    1,    8,    8,    8,   11,
00463        11,   13,   24,   13,   14,   23,   14,   22,   21,   10,
00464         3,   20,   20,   20,   20,   20,   20,   20
00465     } ;
00466 
00467 /* Table of booleans, true if rule could match eol. */
00468 static yyconst flex_int32_t yy_rule_can_match_eol[7] =
00469     {   0,
00470 0, 0, 0, 0, 0, 0,     };
00471 
00472 static yy_state_type yy_last_accepting_state;
00473 static char *yy_last_accepting_cpos;
00474 
00475 extern int yy_flex_debug;
00476 int yy_flex_debug = 0;
00477 
00478 /* The intent behind this definition is that it'll catch
00479  * any uses of REJECT which flex missed.
00480  */
00481 #define REJECT reject_used_but_not_detected
00482 #define yymore() yymore_used_but_not_detected
00483 #define YY_MORE_ADJ 0
00484 #define YY_RESTORE_YY_MORE_OFFSET
00485 char *yytext;
00486 #line 1 "getChainPotential_lexer.l"
00487 #line 3 "getChainPotential_lexer.l"
00488 
00489 /*
00490     Copyright (C) 2009 Joseph Pingenot
00491 
00492     This program is free software: you can redistribute it and/or modify
00493     it under the terms of the GNU Affero General Public License as published by
00494     the Free Software Foundation, either version 3 of the License, or
00495     (at your option) any later version.
00496 
00497     This program is distributed in the hope that it will be useful,
00498     but WITHOUT ANY WARRANTY; without even the implied warranty of
00499     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00500     GNU Affero General Public License for more details.
00501 
00502     You should have received a copy of the GNU Affero General Public License
00503     along with this program.  If not, see <http://www.gnu.org/licenses/>.
00504 */
00505 
00506 #include <stdlib.h>
00507 #include "getChainPotential_parser.h"
00508 #include "getChainPotential_lexer.h"
00509 
00510 #line 511 "src/getChainPotential_lexer.c"
00511 
00512 #define INITIAL 0
00513 
00514 #ifndef YY_NO_UNISTD_H
00515 /* Special case for "unistd.h", since it is non-ANSI. We include it way
00516  * down here because we want the user's section 1 to have been scanned first.
00517  * The user has a chance to override it with an option.
00518  */
00519 #include <unistd.h>
00520 #endif
00521 
00522 #ifndef YY_EXTRA_TYPE
00523 #define YY_EXTRA_TYPE void *
00524 #endif
00525 
00526 static int yy_init_globals (void );
00527 
00528 /* Accessor methods to globals.
00529    These are made visible to non-reentrant scanners for convenience. */
00530 
00531 int yylex_destroy (void );
00532 
00533 int yyget_debug (void );
00534 
00535 void yyset_debug (int debug_flag  );
00536 
00537 YY_EXTRA_TYPE yyget_extra (void );
00538 
00539 void yyset_extra (YY_EXTRA_TYPE user_defined  );
00540 
00541 FILE *yyget_in (void );
00542 
00543 void yyset_in  (FILE * in_str  );
00544 
00545 FILE *yyget_out (void );
00546 
00547 void yyset_out  (FILE * out_str  );
00548 
00549 int yyget_leng (void );
00550 
00551 char *yyget_text (void );
00552 
00553 int yyget_lineno (void );
00554 
00555 void yyset_lineno (int line_number  );
00556 
00557 /* Macros after this point can all be overridden by user definitions in
00558  * section 1.
00559  */
00560 
00561 #ifndef YY_SKIP_YYWRAP
00562 #ifdef __cplusplus
00563 extern "C" int yywrap (void );
00564 #else
00565 extern int yywrap (void );
00566 #endif
00567 #endif
00568 
00569     static void yyunput (int c,char *buf_ptr  );
00570     
00571 #ifndef yytext_ptr
00572 static void yy_flex_strncpy (char *,yyconst char *,int );
00573 #endif
00574 
00575 #ifdef YY_NEED_STRLEN
00576 static int yy_flex_strlen (yyconst char * );
00577 #endif
00578 
00579 #ifndef YY_NO_INPUT
00580 
00581 #ifdef __cplusplus
00582 static int yyinput (void );
00583 #else
00584 static int input (void );
00585 #endif
00586 
00587 #endif
00588 
00589 /* Amount of stuff to slurp up with each read. */
00590 #ifndef YY_READ_BUF_SIZE
00591 #ifdef __ia64__
00592 /* On IA-64, the buffer size is 16k, not 8k */
00593 #define YY_READ_BUF_SIZE 16384
00594 #else
00595 #define YY_READ_BUF_SIZE 8192
00596 #endif /* __ia64__ */
00597 #endif
00598 
00599 /* Copy whatever the last rule matched to the standard output. */
00600 #ifndef ECHO
00601 /* This used to be an fputs(), but since the string might contain NUL's,
00602  * we now use fwrite().
00603  */
00604 #define ECHO do { if (fwrite( yytext, yyleng, 1, yyout )) {} } while (0)
00605 #endif
00606 
00607 /* Gets input and stuffs it into "buf".  number of characters read, or YY_NULL,
00608  * is returned in "result".
00609  */
00610 #ifndef YY_INPUT
00611 #define YY_INPUT(buf,result,max_size) \
00612   if ( YY_CURRENT_BUFFER_LVALUE->yy_is_interactive ) \
00613     { \
00614     int c = '*'; \
00615     size_t n; \
00616     for ( n = 0; n < max_size && \
00617            (c = getc( yyin )) != EOF && c != '\n'; ++n ) \
00618       buf[n] = (char) c; \
00619     if ( c == '\n' ) \
00620       buf[n++] = (char) c; \
00621     if ( c == EOF && ferror( yyin ) ) \
00622       YY_FATAL_ERROR( "input in flex scanner failed" ); \
00623     result = n; \
00624     } \
00625   else \
00626     { \
00627     errno=0; \
00628     while ( (result = fread(buf, 1, max_size, yyin))==0 && ferror(yyin)) \
00629       { \
00630       if( errno != EINTR) \
00631         { \
00632         YY_FATAL_ERROR( "input in flex scanner failed" ); \
00633         break; \
00634         } \
00635       errno=0; \
00636       clearerr(yyin); \
00637       } \
00638     }\
00639 \
00640 
00641 #endif
00642 
00643 /* No semi-colon after return; correct usage is to write "yyterminate();" -
00644  * we don't want an extra ';' after the "return" because that will cause
00645  * some compilers to complain about unreachable statements.
00646  */
00647 #ifndef yyterminate
00648 #define yyterminate() return YY_NULL
00649 #endif
00650 
00651 /* Number of entries by which start-condition stack grows. */
00652 #ifndef YY_START_STACK_INCR
00653 #define YY_START_STACK_INCR 25
00654 #endif
00655 
00656 /* Report a fatal error. */
00657 #ifndef YY_FATAL_ERROR
00658 #define YY_FATAL_ERROR(msg) yy_fatal_error( msg )
00659 #endif
00660 
00661 /* end tables serialization structures and prototypes */
00662 
00663 /* Default declaration of generated scanner - a define so the user can
00664  * easily add parameters.
00665  */
00666 #ifndef YY_DECL
00667 #define YY_DECL_IS_OURS 1
00668 
00669 extern int yylex (void);
00670 
00671 #define YY_DECL int yylex (void)
00672 #endif /* !YY_DECL */
00673 
00674 /* Code executed at the beginning of each rule, after yytext and yyleng
00675  * have been set up.
00676  */
00677 #ifndef YY_USER_ACTION
00678 #define YY_USER_ACTION
00679 #endif
00680 
00681 /* Code executed at the end of each rule. */
00682 #ifndef YY_BREAK
00683 #define YY_BREAK break;
00684 #endif
00685 
00686 #define YY_RULE_SETUP \
00687   YY_USER_ACTION
00688 
00689 /** The main scanner function which does all the work.
00690  */
00691 YY_DECL
00692 {
00693   register yy_state_type yy_current_state;
00694   register char *yy_cp, *yy_bp;
00695   register int yy_act;
00696     
00697 #line 28 "getChainPotential_lexer.l"
00698 
00699 #line 700 "src/getChainPotential_lexer.c"
00700 
00701   if ( !(yy_init) )
00702     {
00703     (yy_init) = 1;
00704 
00705 #ifdef YY_USER_INIT
00706     YY_USER_INIT;
00707 #endif
00708 
00709     if ( ! (yy_start) )
00710       (yy_start) = 1; /* first start state */
00711 
00712     if ( ! yyin )
00713       yyin = stdin;
00714 
00715     if ( ! yyout )
00716       yyout = stdout;
00717 
00718     if ( ! YY_CURRENT_BUFFER ) {
00719       yyensure_buffer_stack ();
00720       YY_CURRENT_BUFFER_LVALUE =
00721         yy_create_buffer(yyin,YY_BUF_SIZE );
00722     }
00723 
00724     yy_load_buffer_state( );
00725     }
00726 
00727   while ( 1 )   /* loops until end-of-file is reached */
00728     {
00729     yy_cp = (yy_c_buf_p);
00730 
00731     /* Support of yytext. */
00732     *yy_cp = (yy_hold_char);
00733 
00734     /* yy_bp points to the position in yy_ch_buf of the start of
00735      * the current run.
00736      */
00737     yy_bp = yy_cp;
00738 
00739     yy_current_state = (yy_start);
00740 yy_match:
00741     do
00742       {
00743       register YY_CHAR yy_c = yy_ec[YY_SC_TO_UI(*yy_cp)];
00744       if ( yy_accept[yy_current_state] )
00745         {
00746         (yy_last_accepting_state) = yy_current_state;
00747         (yy_last_accepting_cpos) = yy_cp;
00748         }
00749       while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state )
00750         {
00751         yy_current_state = (int) yy_def[yy_current_state];
00752         if ( yy_current_state >= 21 )
00753           yy_c = yy_meta[(unsigned int) yy_c];
00754         }
00755       yy_current_state = yy_nxt[yy_base[yy_current_state] + (unsigned int) yy_c];
00756       ++yy_cp;
00757       }
00758     while ( yy_base[yy_current_state] != 22 );
00759 
00760 yy_find_action:
00761     yy_act = yy_accept[yy_current_state];
00762     if ( yy_act == 0 )
00763       { /* have to back up */
00764       yy_cp = (yy_last_accepting_cpos);
00765       yy_current_state = (yy_last_accepting_state);
00766       yy_act = yy_accept[yy_current_state];
00767       }
00768 
00769     YY_DO_BEFORE_ACTION;
00770 
00771     if ( yy_act != YY_END_OF_BUFFER && yy_rule_can_match_eol[yy_act] )
00772       {
00773       int yyl;
00774       for ( yyl = 0; yyl < yyleng; ++yyl )
00775         if ( yytext[yyl] == '\n' )
00776              
00777     yylineno++;
00778 ;
00779       }
00780 
00781 do_action:  /* This label is used only to access EOF actions. */
00782 
00783     switch ( yy_act )
00784   { /* beginning of action switch */
00785       case 0: /* must back up */
00786       /* undo the effects of YY_DO_BEFORE_ACTION */
00787       *yy_cp = (yy_hold_char);
00788       yy_cp = (yy_last_accepting_cpos);
00789       yy_current_state = (yy_last_accepting_state);
00790       goto yy_find_action;
00791 
00792 case 1:
00793 #line 30 "getChainPotential_lexer.l"
00794 case 2:
00795 #line 31 "getChainPotential_lexer.l"
00796 case 3:
00797 #line 32 "getChainPotential_lexer.l"
00798 case 4:
00799 YY_RULE_SETUP
00800 #line 32 "getChainPotential_lexer.l"
00801 {yylval.d = atof(yytext); return NUMBER;}
00802   YY_BREAK
00803 case 5:
00804 YY_RULE_SETUP
00805 #line 33 "getChainPotential_lexer.l"
00806 {return yytext[0];}
00807   YY_BREAK
00808 case 6:
00809 YY_RULE_SETUP
00810 #line 34 "getChainPotential_lexer.l"
00811 YY_FATAL_ERROR( "flex scanner jammed" );
00812   YY_BREAK
00813 #line 814 "src/getChainPotential_lexer.c"
00814 case YY_STATE_EOF(INITIAL):
00815   yyterminate();
00816 
00817   case YY_END_OF_BUFFER:
00818     {
00819     /* Amount of text matched not including the EOB char. */
00820     int yy_amount_of_matched_text = (int) (yy_cp - (yytext_ptr)) - 1;
00821 
00822     /* Undo the effects of YY_DO_BEFORE_ACTION. */
00823     *yy_cp = (yy_hold_char);
00824     YY_RESTORE_YY_MORE_OFFSET
00825 
00826     if ( YY_CURRENT_BUFFER_LVALUE->yy_buffer_status == YY_BUFFER_NEW )
00827       {
00828       /* We're scanning a new file or input source.  It's
00829        * possible that this happened because the user
00830        * just pointed yyin at a new source and called
00831        * yylex().  If so, then we have to assure
00832        * consistency between YY_CURRENT_BUFFER and our
00833        * globals.  Here is the right place to do so, because
00834        * this is the first action (other than possibly a
00835        * back-up) that will match for the new input source.
00836        */
00837       (yy_n_chars) = YY_CURRENT_BUFFER_LVALUE->yy_n_chars;
00838       YY_CURRENT_BUFFER_LVALUE->yy_input_file = yyin;
00839       YY_CURRENT_BUFFER_LVALUE->yy_buffer_status = YY_BUFFER_NORMAL;
00840       }
00841 
00842     /* Note that here we test for yy_c_buf_p "<=" to the position
00843      * of the first EOB in the buffer, since yy_c_buf_p will
00844      * already have been incremented past the NUL character
00845      * (since all states make transitions on EOB to the
00846      * end-of-buffer state).  Contrast this with the test
00847      * in input().
00848      */
00849     if ( (yy_c_buf_p) <= &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[(yy_n_chars)] )
00850       { /* This was really a NUL. */
00851       yy_state_type yy_next_state;
00852 
00853       (yy_c_buf_p) = (yytext_ptr) + yy_amount_of_matched_text;
00854 
00855       yy_current_state = yy_get_previous_state(  );
00856 
00857       /* Okay, we're now positioned to make the NUL
00858        * transition.  We couldn't have
00859        * yy_get_previous_state() go ahead and do it
00860        * for us because it doesn't know how to deal
00861        * with the possibility of jamming (and we don't
00862        * want to build jamming into it because then it
00863        * will run more slowly).
00864        */
00865 
00866       yy_next_state = yy_try_NUL_trans( yy_current_state );
00867 
00868       yy_bp = (yytext_ptr) + YY_MORE_ADJ;
00869 
00870       if ( yy_next_state )
00871         {
00872         /* Consume the NUL. */
00873         yy_cp = ++(yy_c_buf_p);
00874         yy_current_state = yy_next_state;
00875         goto yy_match;
00876         }
00877 
00878       else
00879         {
00880         yy_cp = (yy_c_buf_p);
00881         goto yy_find_action;
00882         }
00883       }
00884 
00885     else switch ( yy_get_next_buffer(  ) )
00886       {
00887       case EOB_ACT_END_OF_FILE:
00888         {
00889         (yy_did_buffer_switch_on_eof) = 0;
00890 
00891         if ( yywrap( ) )
00892           {
00893           /* Note: because we've taken care in
00894            * yy_get_next_buffer() to have set up
00895            * yytext, we can now set up
00896            * yy_c_buf_p so that if some total
00897            * hoser (like flex itself) wants to
00898            * call the scanner after we return the
00899            * YY_NULL, it'll still work - another
00900            * YY_NULL will get returned.
00901            */
00902           (yy_c_buf_p) = (yytext_ptr) + YY_MORE_ADJ;
00903 
00904           yy_act = YY_STATE_EOF(YY_START);
00905           goto do_action;
00906           }
00907 
00908         else
00909           {
00910           if ( ! (yy_did_buffer_switch_on_eof) )
00911             YY_NEW_FILE;
00912           }
00913         break;
00914         }
00915 
00916       case EOB_ACT_CONTINUE_SCAN:
00917         (yy_c_buf_p) =
00918           (yytext_ptr) + yy_amount_of_matched_text;
00919 
00920         yy_current_state = yy_get_previous_state(  );
00921 
00922         yy_cp = (yy_c_buf_p);
00923         yy_bp = (yytext_ptr) + YY_MORE_ADJ;
00924         goto yy_match;
00925 
00926       case EOB_ACT_LAST_MATCH:
00927         (yy_c_buf_p) =
00928         &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[(yy_n_chars)];
00929 
00930         yy_current_state = yy_get_previous_state(  );
00931 
00932         yy_cp = (yy_c_buf_p);
00933         yy_bp = (yytext_ptr) + YY_MORE_ADJ;
00934         goto yy_find_action;
00935       }
00936     break;
00937     }
00938 
00939   default:
00940     YY_FATAL_ERROR(
00941       "fatal flex scanner internal error--no action found" );
00942   } /* end of action switch */
00943     } /* end of scanning one token */
00944 } /* end of yylex */
00945 
00946 /* yy_get_next_buffer - try to read in a new buffer
00947  *
00948  * Returns a code representing an action:
00949  *  EOB_ACT_LAST_MATCH -
00950  *  EOB_ACT_CONTINUE_SCAN - continue scanning from current position
00951  *  EOB_ACT_END_OF_FILE - end of file
00952  */
00953 static int yy_get_next_buffer (void)
00954 {
00955       register char *dest = YY_CURRENT_BUFFER_LVALUE->yy_ch_buf;
00956   register char *source = (yytext_ptr);
00957   register int number_to_move, i;
00958   int ret_val;
00959 
00960   if ( (yy_c_buf_p) > &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[(yy_n_chars) + 1] )
00961     YY_FATAL_ERROR(
00962     "fatal flex scanner internal error--end of buffer missed" );
00963 
00964   if ( YY_CURRENT_BUFFER_LVALUE->yy_fill_buffer == 0 )
00965     { /* Don't try to fill the buffer, so this is an EOF. */
00966     if ( (yy_c_buf_p) - (yytext_ptr) - YY_MORE_ADJ == 1 )
00967       {
00968       /* We matched a single character, the EOB, so
00969        * treat this as a final EOF.
00970        */
00971       return EOB_ACT_END_OF_FILE;
00972       }
00973 
00974     else
00975       {
00976       /* We matched some text prior to the EOB, first
00977        * process it.
00978        */
00979       return EOB_ACT_LAST_MATCH;
00980       }
00981     }
00982 
00983   /* Try to read more data. */
00984 
00985   /* First move last chars to start of buffer. */
00986   number_to_move = (int) ((yy_c_buf_p) - (yytext_ptr)) - 1;
00987 
00988   for ( i = 0; i < number_to_move; ++i )
00989     *(dest++) = *(source++);
00990 
00991   if ( YY_CURRENT_BUFFER_LVALUE->yy_buffer_status == YY_BUFFER_EOF_PENDING )
00992     /* don't do the read, it's not guaranteed to return an EOF,
00993      * just force an EOF
00994      */
00995     YY_CURRENT_BUFFER_LVALUE->yy_n_chars = (yy_n_chars) = 0;
00996 
00997   else
00998     {
00999       int num_to_read =
01000       YY_CURRENT_BUFFER_LVALUE->yy_buf_size - number_to_move - 1;
01001 
01002     while ( num_to_read <= 0 )
01003       { /* Not enough room in the buffer - grow it. */
01004 
01005       /* just a shorter name for the current buffer */
01006       YY_BUFFER_STATE b = YY_CURRENT_BUFFER;
01007 
01008       int yy_c_buf_p_offset =
01009         (int) ((yy_c_buf_p) - b->yy_ch_buf);
01010 
01011       if ( b->yy_is_our_buffer )
01012         {
01013         int new_size = b->yy_buf_size * 2;
01014 
01015         if ( new_size <= 0 )
01016           b->yy_buf_size += b->yy_buf_size / 8;
01017         else
01018           b->yy_buf_size *= 2;
01019 
01020         b->yy_ch_buf = (char *)
01021           /* Include room in for 2 EOB chars. */
01022           yyrealloc((void *) b->yy_ch_buf,b->yy_buf_size + 2  );
01023         }
01024       else
01025         /* Can't grow it, we don't own it. */
01026         b->yy_ch_buf = 0;
01027 
01028       if ( ! b->yy_ch_buf )
01029         YY_FATAL_ERROR(
01030         "fatal error - scanner input buffer overflow" );
01031 
01032       (yy_c_buf_p) = &b->yy_ch_buf[yy_c_buf_p_offset];
01033 
01034       num_to_read = YY_CURRENT_BUFFER_LVALUE->yy_buf_size -
01035             number_to_move - 1;
01036 
01037       }
01038 
01039     if ( num_to_read > YY_READ_BUF_SIZE )
01040       num_to_read = YY_READ_BUF_SIZE;
01041 
01042     /* Read in more data. */
01043     YY_INPUT( (&YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[number_to_move]),
01044       (yy_n_chars), (size_t) num_to_read );
01045 
01046     YY_CURRENT_BUFFER_LVALUE->yy_n_chars = (yy_n_chars);
01047     }
01048 
01049   if ( (yy_n_chars) == 0 )
01050     {
01051     if ( number_to_move == YY_MORE_ADJ )
01052       {
01053       ret_val = EOB_ACT_END_OF_FILE;
01054       yyrestart(yyin  );
01055       }
01056 
01057     else
01058       {
01059       ret_val = EOB_ACT_LAST_MATCH;
01060       YY_CURRENT_BUFFER_LVALUE->yy_buffer_status =
01061         YY_BUFFER_EOF_PENDING;
01062       }
01063     }
01064 
01065   else
01066     ret_val = EOB_ACT_CONTINUE_SCAN;
01067 
01068   if ((yy_size_t) ((yy_n_chars) + number_to_move) > YY_CURRENT_BUFFER_LVALUE->yy_buf_size) {
01069     /* Extend the array by 50%, plus the number we really need. */
01070     yy_size_t new_size = (yy_n_chars) + number_to_move + ((yy_n_chars) >> 1);
01071     YY_CURRENT_BUFFER_LVALUE->yy_ch_buf = (char *) yyrealloc((void *) YY_CURRENT_BUFFER_LVALUE->yy_ch_buf,new_size  );
01072     if ( ! YY_CURRENT_BUFFER_LVALUE->yy_ch_buf )
01073       YY_FATAL_ERROR( "out of dynamic memory in yy_get_next_buffer()" );
01074   }
01075 
01076   (yy_n_chars) += number_to_move;
01077   YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[(yy_n_chars)] = YY_END_OF_BUFFER_CHAR;
01078   YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[(yy_n_chars) + 1] = YY_END_OF_BUFFER_CHAR;
01079 
01080   (yytext_ptr) = &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[0];
01081 
01082   return ret_val;
01083 }
01084 
01085 /* yy_get_previous_state - get the state just before the EOB char was reached */
01086 
01087     static yy_state_type yy_get_previous_state (void)
01088 {
01089   register yy_state_type yy_current_state;
01090   register char *yy_cp;
01091     
01092   yy_current_state = (yy_start);
01093 
01094   for ( yy_cp = (yytext_ptr) + YY_MORE_ADJ; yy_cp < (yy_c_buf_p); ++yy_cp )
01095     {
01096     register YY_CHAR yy_c = (*yy_cp ? yy_ec[YY_SC_TO_UI(*yy_cp)] : 1);
01097     if ( yy_accept[yy_current_state] )
01098       {
01099       (yy_last_accepting_state) = yy_current_state;
01100       (yy_last_accepting_cpos) = yy_cp;
01101       }
01102     while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state )
01103       {
01104       yy_current_state = (int) yy_def[yy_current_state];
01105       if ( yy_current_state >= 21 )
01106         yy_c = yy_meta[(unsigned int) yy_c];
01107       }
01108     yy_current_state = yy_nxt[yy_base[yy_current_state] + (unsigned int) yy_c];
01109     }
01110 
01111   return yy_current_state;
01112 }
01113 
01114 /* yy_try_NUL_trans - try to make a transition on the NUL character
01115  *
01116  * synopsis
01117  *  next_state = yy_try_NUL_trans( current_state );
01118  */
01119     static yy_state_type yy_try_NUL_trans  (yy_state_type yy_current_state )
01120 {
01121   register int yy_is_jam;
01122       register char *yy_cp = (yy_c_buf_p);
01123 
01124   register YY_CHAR yy_c = 1;
01125   if ( yy_accept[yy_current_state] )
01126     {
01127     (yy_last_accepting_state) = yy_current_state;
01128     (yy_last_accepting_cpos) = yy_cp;
01129     }
01130   while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state )
01131     {
01132     yy_current_state = (int) yy_def[yy_current_state];
01133     if ( yy_current_state >= 21 )
01134       yy_c = yy_meta[(unsigned int) yy_c];
01135     }
01136   yy_current_state = yy_nxt[yy_base[yy_current_state] + (unsigned int) yy_c];
01137   yy_is_jam = (yy_current_state == 20);
01138 
01139   return yy_is_jam ? 0 : yy_current_state;
01140 }
01141 
01142     static void yyunput (int c, register char * yy_bp )
01143 {
01144   register char *yy_cp;
01145     
01146     yy_cp = (yy_c_buf_p);
01147 
01148   /* undo effects of setting up yytext */
01149   *yy_cp = (yy_hold_char);
01150 
01151   if ( yy_cp < YY_CURRENT_BUFFER_LVALUE->yy_ch_buf + 2 )
01152     { /* need to shift things up to make room */
01153     /* +2 for EOB chars. */
01154     register int number_to_move = (yy_n_chars) + 2;
01155     register char *dest = &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[
01156           YY_CURRENT_BUFFER_LVALUE->yy_buf_size + 2];
01157     register char *source =
01158         &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[number_to_move];
01159 
01160     while ( source > YY_CURRENT_BUFFER_LVALUE->yy_ch_buf )
01161       *--dest = *--source;
01162 
01163     yy_cp += (int) (dest - source);
01164     yy_bp += (int) (dest - source);
01165     YY_CURRENT_BUFFER_LVALUE->yy_n_chars =
01166       (yy_n_chars) = YY_CURRENT_BUFFER_LVALUE->yy_buf_size;
01167 
01168     if ( yy_cp < YY_CURRENT_BUFFER_LVALUE->yy_ch_buf + 2 )
01169       YY_FATAL_ERROR( "flex scanner push-back overflow" );
01170     }
01171 
01172   *--yy_cp = (char) c;
01173 
01174     if ( c == '\n' ){
01175         --yylineno;
01176     }
01177 
01178   (yytext_ptr) = yy_bp;
01179   (yy_hold_char) = *yy_cp;
01180   (yy_c_buf_p) = yy_cp;
01181 }
01182 
01183 #ifndef YY_NO_INPUT
01184 #ifdef __cplusplus
01185     static int yyinput (void)
01186 #else
01187     static int input  (void)
01188 #endif
01189 
01190 {
01191   int c;
01192     
01193   *(yy_c_buf_p) = (yy_hold_char);
01194 
01195   if ( *(yy_c_buf_p) == YY_END_OF_BUFFER_CHAR )
01196     {
01197     /* yy_c_buf_p now points to the character we want to return.
01198      * If this occurs *before* the EOB characters, then it's a
01199      * valid NUL; if not, then we've hit the end of the buffer.
01200      */
01201     if ( (yy_c_buf_p) < &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[(yy_n_chars)] )
01202       /* This was really a NUL. */
01203       *(yy_c_buf_p) = '\0';
01204 
01205     else
01206       { /* need more input */
01207       int offset = (yy_c_buf_p) - (yytext_ptr);
01208       ++(yy_c_buf_p);
01209 
01210       switch ( yy_get_next_buffer(  ) )
01211         {
01212         case EOB_ACT_LAST_MATCH:
01213           /* This happens because yy_g_n_b()
01214            * sees that we've accumulated a
01215            * token and flags that we need to
01216            * try matching the token before
01217            * proceeding.  But for input(),
01218            * there's no matching to consider.
01219            * So convert the EOB_ACT_LAST_MATCH
01220            * to EOB_ACT_END_OF_FILE.
01221            */
01222 
01223           /* Reset buffer status. */
01224           yyrestart(yyin );
01225 
01226           /*FALLTHROUGH*/
01227 
01228         case EOB_ACT_END_OF_FILE:
01229           {
01230           if ( yywrap( ) )
01231             return EOF;
01232 
01233           if ( ! (yy_did_buffer_switch_on_eof) )
01234             YY_NEW_FILE;
01235 #ifdef __cplusplus
01236           return yyinput();
01237 #else
01238           return input();
01239 #endif
01240           }
01241 
01242         case EOB_ACT_CONTINUE_SCAN:
01243           (yy_c_buf_p) = (yytext_ptr) + offset;
01244           break;
01245         }
01246       }
01247     }
01248 
01249   c = *(unsigned char *) (yy_c_buf_p);  /* cast for 8-bit char's */
01250   *(yy_c_buf_p) = '\0'; /* preserve yytext */
01251   (yy_hold_char) = *++(yy_c_buf_p);
01252 
01253   if ( c == '\n' )
01254        
01255     yylineno++;
01256 ;
01257 
01258   return c;
01259 }
01260 #endif  /* ifndef YY_NO_INPUT */
01261 
01262 /** Immediately switch to a different input stream.
01263  * @param input_file A readable stream.
01264  * 
01265  * @note This function does not reset the start condition to @c INITIAL .
01266  */
01267     void yyrestart  (FILE * input_file )
01268 {
01269     
01270   if ( ! YY_CURRENT_BUFFER ){
01271         yyensure_buffer_stack ();
01272     YY_CURRENT_BUFFER_LVALUE =
01273             yy_create_buffer(yyin,YY_BUF_SIZE );
01274   }
01275 
01276   yy_init_buffer(YY_CURRENT_BUFFER,input_file );
01277   yy_load_buffer_state( );
01278 }
01279 
01280 /** Switch to a different input buffer.
01281  * @param new_buffer The new input buffer.
01282  * 
01283  */
01284     void yy_switch_to_buffer  (YY_BUFFER_STATE  new_buffer )
01285 {
01286     
01287   /* TODO. We should be able to replace this entire function body
01288    * with
01289    *    yypop_buffer_state();
01290    *    yypush_buffer_state(new_buffer);
01291      */
01292   yyensure_buffer_stack ();
01293   if ( YY_CURRENT_BUFFER == new_buffer )
01294     return;
01295 
01296   if ( YY_CURRENT_BUFFER )
01297     {
01298     /* Flush out information for old buffer. */
01299     *(yy_c_buf_p) = (yy_hold_char);
01300     YY_CURRENT_BUFFER_LVALUE->yy_buf_pos = (yy_c_buf_p);
01301     YY_CURRENT_BUFFER_LVALUE->yy_n_chars = (yy_n_chars);
01302     }
01303 
01304   YY_CURRENT_BUFFER_LVALUE = new_buffer;
01305   yy_load_buffer_state( );
01306 
01307   /* We don't actually know whether we did this switch during
01308    * EOF (yywrap()) processing, but the only time this flag
01309    * is looked at is after yywrap() is called, so it's safe
01310    * to go ahead and always set it.
01311    */
01312   (yy_did_buffer_switch_on_eof) = 1;
01313 }
01314 
01315 static void yy_load_buffer_state  (void)
01316 {
01317       (yy_n_chars) = YY_CURRENT_BUFFER_LVALUE->yy_n_chars;
01318   (yytext_ptr) = (yy_c_buf_p) = YY_CURRENT_BUFFER_LVALUE->yy_buf_pos;
01319   yyin = YY_CURRENT_BUFFER_LVALUE->yy_input_file;
01320   (yy_hold_char) = *(yy_c_buf_p);
01321 }
01322 
01323 /** Allocate and initialize an input buffer state.
01324  * @param file A readable stream.
01325  * @param size The character buffer size in bytes. When in doubt, use @c YY_BUF_SIZE.
01326  * 
01327  * @return the allocated buffer state.
01328  */
01329     YY_BUFFER_STATE yy_create_buffer  (FILE * file, int  size )
01330 {
01331   YY_BUFFER_STATE b;
01332     
01333   b = (YY_BUFFER_STATE) yyalloc(sizeof( struct yy_buffer_state )  );
01334   if ( ! b )
01335     YY_FATAL_ERROR( "out of dynamic memory in yy_create_buffer()" );
01336 
01337   b->yy_buf_size = size;
01338 
01339   /* yy_ch_buf has to be 2 characters longer than the size given because
01340    * we need to put in 2 end-of-buffer characters.
01341    */
01342   b->yy_ch_buf = (char *) yyalloc(b->yy_buf_size + 2  );
01343   if ( ! b->yy_ch_buf )
01344     YY_FATAL_ERROR( "out of dynamic memory in yy_create_buffer()" );
01345 
01346   b->yy_is_our_buffer = 1;
01347 
01348   yy_init_buffer(b,file );
01349 
01350   return b;
01351 }
01352 
01353 /** Destroy the buffer.
01354  * @param b a buffer created with yy_create_buffer()
01355  * 
01356  */
01357     void yy_delete_buffer (YY_BUFFER_STATE  b )
01358 {
01359     
01360   if ( ! b )
01361     return;
01362 
01363   if ( b == YY_CURRENT_BUFFER ) /* Not sure if we should pop here. */
01364     YY_CURRENT_BUFFER_LVALUE = (YY_BUFFER_STATE) 0;
01365 
01366   if ( b->yy_is_our_buffer )
01367     yyfree((void *) b->yy_ch_buf  );
01368 
01369   yyfree((void *) b  );
01370 }
01371 
01372 #ifndef __cplusplus
01373 extern int isatty (int );
01374 #endif /* __cplusplus */
01375     
01376 /* Initializes or reinitializes a buffer.
01377  * This function is sometimes called more than once on the same buffer,
01378  * such as during a yyrestart() or at EOF.
01379  */
01380     static void yy_init_buffer  (YY_BUFFER_STATE  b, FILE * file )
01381 
01382 {
01383   int oerrno = errno;
01384     
01385   yy_flush_buffer(b );
01386 
01387   b->yy_input_file = file;
01388   b->yy_fill_buffer = 1;
01389 
01390     /* If b is the current buffer, then yy_init_buffer was _probably_
01391      * called from yyrestart() or through yy_get_next_buffer.
01392      * In that case, we don't want to reset the lineno or column.
01393      */
01394     if (b != YY_CURRENT_BUFFER){
01395         b->yy_bs_lineno = 1;
01396         b->yy_bs_column = 0;
01397     }
01398 
01399         b->yy_is_interactive = file ? (isatty( fileno(file) ) > 0) : 0;
01400     
01401   errno = oerrno;
01402 }
01403 
01404 /** Discard all buffered characters. On the next scan, YY_INPUT will be called.
01405  * @param b the buffer state to be flushed, usually @c YY_CURRENT_BUFFER.
01406  * 
01407  */
01408     void yy_flush_buffer (YY_BUFFER_STATE  b )
01409 {
01410       if ( ! b )
01411     return;
01412 
01413   b->yy_n_chars = 0;
01414 
01415   /* We always need two end-of-buffer characters.  The first causes
01416    * a transition to the end-of-buffer state.  The second causes
01417    * a jam in that state.
01418    */
01419   b->yy_ch_buf[0] = YY_END_OF_BUFFER_CHAR;
01420   b->yy_ch_buf[1] = YY_END_OF_BUFFER_CHAR;
01421 
01422   b->yy_buf_pos = &b->yy_ch_buf[0];
01423 
01424   b->yy_at_bol = 1;
01425   b->yy_buffer_status = YY_BUFFER_NEW;
01426 
01427   if ( b == YY_CURRENT_BUFFER )
01428     yy_load_buffer_state( );
01429 }
01430 
01431 /** Pushes the new state onto the stack. The new state becomes
01432  *  the current state. This function will allocate the stack
01433  *  if necessary.
01434  *  @param new_buffer The new state.
01435  *  
01436  */
01437 void yypush_buffer_state (YY_BUFFER_STATE new_buffer )
01438 {
01439       if (new_buffer == NULL)
01440     return;
01441 
01442   yyensure_buffer_stack();
01443 
01444   /* This block is copied from yy_switch_to_buffer. */
01445   if ( YY_CURRENT_BUFFER )
01446     {
01447     /* Flush out information for old buffer. */
01448     *(yy_c_buf_p) = (yy_hold_char);
01449     YY_CURRENT_BUFFER_LVALUE->yy_buf_pos = (yy_c_buf_p);
01450     YY_CURRENT_BUFFER_LVALUE->yy_n_chars = (yy_n_chars);
01451     }
01452 
01453   /* Only push if top exists. Otherwise, replace top. */
01454   if (YY_CURRENT_BUFFER)
01455     (yy_buffer_stack_top)++;
01456   YY_CURRENT_BUFFER_LVALUE = new_buffer;
01457 
01458   /* copied from yy_switch_to_buffer. */
01459   yy_load_buffer_state( );
01460   (yy_did_buffer_switch_on_eof) = 1;
01461 }
01462 
01463 /** Removes and deletes the top of the stack, if present.
01464  *  The next element becomes the new top.
01465  *  
01466  */
01467 void yypop_buffer_state (void)
01468 {
01469       if (!YY_CURRENT_BUFFER)
01470     return;
01471 
01472   yy_delete_buffer(YY_CURRENT_BUFFER );
01473   YY_CURRENT_BUFFER_LVALUE = NULL;
01474   if ((yy_buffer_stack_top) > 0)
01475     --(yy_buffer_stack_top);
01476 
01477   if (YY_CURRENT_BUFFER) {
01478     yy_load_buffer_state( );
01479     (yy_did_buffer_switch_on_eof) = 1;
01480   }
01481 }
01482 
01483 /* Allocates the stack if it does not exist.
01484  *  Guarantees space for at least one push.
01485  */
01486 static void yyensure_buffer_stack (void)
01487 {
01488   int num_to_alloc;
01489     
01490   if (!(yy_buffer_stack)) {
01491 
01492     /* First allocation is just for 2 elements, since we don't know if this
01493      * scanner will even need a stack. We use 2 instead of 1 to avoid an
01494      * immediate realloc on the next call.
01495          */
01496     num_to_alloc = 1;
01497     (yy_buffer_stack) = (struct yy_buffer_state**)yyalloc
01498                 (num_to_alloc * sizeof(struct yy_buffer_state*)
01499                 );
01500     if ( ! (yy_buffer_stack) )
01501       YY_FATAL_ERROR( "out of dynamic memory in yyensure_buffer_stack()" );
01502                   
01503     memset((yy_buffer_stack), 0, num_to_alloc * sizeof(struct yy_buffer_state*));
01504         
01505     (yy_buffer_stack_max) = num_to_alloc;
01506     (yy_buffer_stack_top) = 0;
01507     return;
01508   }
01509 
01510   if ((yy_buffer_stack_top) >= ((yy_buffer_stack_max)) - 1){
01511 
01512     /* Increase the buffer to prepare for a possible push. */
01513     int grow_size = 8 /* arbitrary grow size */;
01514 
01515     num_to_alloc = (yy_buffer_stack_max) + grow_size;
01516     (yy_buffer_stack) = (struct yy_buffer_state**)yyrealloc
01517                 ((yy_buffer_stack),
01518                 num_to_alloc * sizeof(struct yy_buffer_state*)
01519                 );
01520     if ( ! (yy_buffer_stack) )
01521       YY_FATAL_ERROR( "out of dynamic memory in yyensure_buffer_stack()" );
01522 
01523     /* zero only the new slots.*/
01524     memset((yy_buffer_stack) + (yy_buffer_stack_max), 0, grow_size * sizeof(struct yy_buffer_state*));
01525     (yy_buffer_stack_max) = num_to_alloc;
01526   }
01527 }
01528 
01529 /** Setup the input buffer state to scan directly from a user-specified character buffer.
01530  * @param base the character buffer
01531  * @param size the size in bytes of the character buffer
01532  * 
01533  * @return the newly allocated buffer state object. 
01534  */
01535 YY_BUFFER_STATE yy_scan_buffer  (char * base, yy_size_t  size )
01536 {
01537   YY_BUFFER_STATE b;
01538     
01539   if ( size < 2 ||
01540        base[size-2] != YY_END_OF_BUFFER_CHAR ||
01541        base[size-1] != YY_END_OF_BUFFER_CHAR )
01542     /* They forgot to leave room for the EOB's. */
01543     return 0;
01544 
01545   b = (YY_BUFFER_STATE) yyalloc(sizeof( struct yy_buffer_state )  );
01546   if ( ! b )
01547     YY_FATAL_ERROR( "out of dynamic memory in yy_scan_buffer()" );
01548 
01549   b->yy_buf_size = size - 2;  /* "- 2" to take care of EOB's */
01550   b->yy_buf_pos = b->yy_ch_buf = base;
01551   b->yy_is_our_buffer = 0;
01552   b->yy_input_file = 0;
01553   b->yy_n_chars = b->yy_buf_size;
01554   b->yy_is_interactive = 0;
01555   b->yy_at_bol = 1;
01556   b->yy_fill_buffer = 0;
01557   b->yy_buffer_status = YY_BUFFER_NEW;
01558 
01559   yy_switch_to_buffer(b  );
01560 
01561   return b;
01562 }
01563 
01564 /** Setup the input buffer state to scan a string. The next call to yylex() will
01565  * scan from a @e copy of @a str.
01566  * @param yystr a NUL-terminated string to scan
01567  * 
01568  * @return the newly allocated buffer state object.
01569  * @note If you want to scan bytes that may contain NUL values, then use
01570  *       yy_scan_bytes() instead.
01571  */
01572 YY_BUFFER_STATE yy_scan_string (yyconst char * yystr )
01573 {
01574     
01575   return yy_scan_bytes(yystr,strlen(yystr) );
01576 }
01577 
01578 /** Setup the input buffer state to scan the given bytes. The next call to yylex() will
01579  * scan from a @e copy of @a bytes.
01580  * @param yybytes the byte buffer to scan
01581  * @param _yybytes_len the number of bytes in the buffer pointed to by @a bytes.
01582  * 
01583  * @return the newly allocated buffer state object.
01584  */
01585 YY_BUFFER_STATE yy_scan_bytes  (yyconst char * yybytes, int  _yybytes_len )
01586 {
01587   YY_BUFFER_STATE b;
01588   char *buf;
01589   yy_size_t n;
01590   int i;
01591     
01592   /* Get memory for full buffer, including space for trailing EOB's. */
01593   n = _yybytes_len + 2;
01594   buf = (char *) yyalloc(n  );
01595   if ( ! buf )
01596     YY_FATAL_ERROR( "out of dynamic memory in yy_scan_bytes()" );
01597 
01598   for ( i = 0; i < _yybytes_len; ++i )
01599     buf[i] = yybytes[i];
01600 
01601   buf[_yybytes_len] = buf[_yybytes_len+1] = YY_END_OF_BUFFER_CHAR;
01602 
01603   b = yy_scan_buffer(buf,n );
01604   if ( ! b )
01605     YY_FATAL_ERROR( "bad buffer in yy_scan_bytes()" );
01606 
01607   /* It's okay to grow etc. this buffer, and we should throw it
01608    * away when we're done.
01609    */
01610   b->yy_is_our_buffer = 1;
01611 
01612   return b;
01613 }
01614 
01615 #ifndef YY_EXIT_FAILURE
01616 #define YY_EXIT_FAILURE 2
01617 #endif
01618 
01619 static void yy_fatal_error (yyconst char* msg )
01620 {
01621       (void) fprintf( stderr, "%s\n", msg );
01622   exit( YY_EXIT_FAILURE );
01623 }
01624 
01625 /* Redefine yyless() so it works in section 3 code. */
01626 
01627 #undef yyless
01628 #define yyless(n) \
01629   do \
01630     { \
01631     /* Undo effects of setting up yytext. */ \
01632         int yyless_macro_arg = (n); \
01633         YY_LESS_LINENO(yyless_macro_arg);\
01634     yytext[yyleng] = (yy_hold_char); \
01635     (yy_c_buf_p) = yytext + yyless_macro_arg; \
01636     (yy_hold_char) = *(yy_c_buf_p); \
01637     *(yy_c_buf_p) = '\0'; \
01638     yyleng = yyless_macro_arg; \
01639     } \
01640   while ( 0 )
01641 
01642 /* Accessor  methods (get/set functions) to struct members. */
01643 
01644 /** Get the current line number.
01645  * 
01646  */
01647 int yyget_lineno  (void)
01648 {
01649         
01650     return yylineno;
01651 }
01652 
01653 /** Get the input stream.
01654  * 
01655  */
01656 FILE *yyget_in  (void)
01657 {
01658         return yyin;
01659 }
01660 
01661 /** Get the output stream.
01662  * 
01663  */
01664 FILE *yyget_out  (void)
01665 {
01666         return yyout;
01667 }
01668 
01669 /** Get the length of the current token.
01670  * 
01671  */
01672 int yyget_leng  (void)
01673 {
01674         return yyleng;
01675 }
01676 
01677 /** Get the current token.
01678  * 
01679  */
01680 
01681 char *yyget_text  (void)
01682 {
01683         return yytext;
01684 }
01685 
01686 /** Set the current line number.
01687  * @param line_number
01688  * 
01689  */
01690 void yyset_lineno (int  line_number )
01691 {
01692     
01693     yylineno = line_number;
01694 }
01695 
01696 /** Set the input stream. This does not discard the current
01697  * input buffer.
01698  * @param in_str A readable stream.
01699  * 
01700  * @see yy_switch_to_buffer
01701  */
01702 void yyset_in (FILE *  in_str )
01703 {
01704         yyin = in_str ;
01705 }
01706 
01707 void yyset_out (FILE *  out_str )
01708 {
01709         yyout = out_str ;
01710 }
01711 
01712 int yyget_debug  (void)
01713 {
01714         return yy_flex_debug;
01715 }
01716 
01717 void yyset_debug (int  bdebug )
01718 {
01719         yy_flex_debug = bdebug ;
01720 }
01721 
01722 static int yy_init_globals (void)
01723 {
01724         /* Initialization is the same as for the non-reentrant scanner.
01725      * This function is called from yylex_destroy(), so don't allocate here.
01726      */
01727 
01728     /* We do not touch yylineno unless the option is enabled. */
01729     yylineno =  1;
01730     
01731     (yy_buffer_stack) = 0;
01732     (yy_buffer_stack_top) = 0;
01733     (yy_buffer_stack_max) = 0;
01734     (yy_c_buf_p) = (char *) 0;
01735     (yy_init) = 0;
01736     (yy_start) = 0;
01737 
01738 /* Defined in main.c */
01739 #ifdef YY_STDINIT
01740     yyin = stdin;
01741     yyout = stdout;
01742 #else
01743     yyin = (FILE *) 0;
01744     yyout = (FILE *) 0;
01745 #endif
01746 
01747     /* For future reference: Set errno on error, since we are called by
01748      * yylex_init()
01749      */
01750     return 0;
01751 }
01752 
01753 /* yylex_destroy is for both reentrant and non-reentrant scanners. */
01754 int yylex_destroy  (void)
01755 {
01756     
01757     /* Pop the buffer stack, destroying each element. */
01758   while(YY_CURRENT_BUFFER){
01759     yy_delete_buffer(YY_CURRENT_BUFFER  );
01760     YY_CURRENT_BUFFER_LVALUE = NULL;
01761     yypop_buffer_state();
01762   }
01763 
01764   /* Destroy the stack itself. */
01765   yyfree((yy_buffer_stack) );
01766   (yy_buffer_stack) = NULL;
01767 
01768     /* Reset the globals. This is important in a non-reentrant scanner so the next time
01769      * yylex() is called, initialization will occur. */
01770     yy_init_globals( );
01771 
01772     return 0;
01773 }
01774 
01775 /*
01776  * Internal utility routines.
01777  */
01778 
01779 #ifndef yytext_ptr
01780 static void yy_flex_strncpy (char* s1, yyconst char * s2, int n )
01781 {
01782   register int i;
01783   for ( i = 0; i < n; ++i )
01784     s1[i] = s2[i];
01785 }
01786 #endif
01787 
01788 #ifdef YY_NEED_STRLEN
01789 static int yy_flex_strlen (yyconst char * s )
01790 {
01791   register int n;
01792   for ( n = 0; s[n]; ++n )
01793     ;
01794 
01795   return n;
01796 }
01797 #endif
01798 
01799 void *yyalloc (yy_size_t  size )
01800 {
01801   return (void *) malloc( size );
01802 }
01803 
01804 void *yyrealloc  (void * ptr, yy_size_t  size )
01805 {
01806   /* The cast to (char *) in the following accommodates both
01807    * implementations that use char* generic pointers, and those
01808    * that use void* generic pointers.  It works with the latter
01809    * because both ANSI C and C++ allow castless assignment from
01810    * any pointer type to void*, and deal with argument conversions
01811    * as though doing an assignment.
01812    */
01813   return (void *) realloc( (char *) ptr, size );
01814 }
01815 
01816 void yyfree (void * ptr )
01817 {
01818   free( (char *) ptr ); /* see yyrealloc() for (char *) cast */
01819 }
01820 
01821 #define YYTABLES_NAME "yytables"
01822 
01823 #line 34 "getChainPotential_lexer.l"
01824 
01825 
01826 
01827 void do_stuff_to_keep_errors_from_happening_but_dont_ever_get_called(void) {
01828   yyunput('\0', NULL);
01829   input();
01830 }
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Defines