/* A lexical scanner generated by flex */

/* scanner skeleton version:
 * $Header: /usr/fsys/odin/a/vern/flex/RCS/flex.skel,v 2.16 90/08/03 14:09:36 vern Exp $
 */

#define FLEX_SCANNER

#include <stdio.h>


/* cfront 1.2 defines "c_plusplus" instead of "__cplusplus" */
#ifdef c_plusplus
#ifndef __cplusplus
#define __cplusplus
#endif
#endif


#ifdef __cplusplus

#include <stdlib.h>
#include <unistd.h>

/* use prototypes in function declarations */
#define YY_USE_PROTOS

/* the "const" storage-class-modifier is valid */
#define YY_USE_CONST

#else	/* ! __cplusplus */

#ifdef __STDC__

#ifdef __GNUC__
#include <stddef.h>
void *malloc( size_t );
void free( void* );
#else
#include <stdlib.h>
#include <unistd.h>
#endif	/* __GNUC__ */

#define YY_USE_PROTOS
#define YY_USE_CONST

#endif	/* __STDC__ */
#endif	/* ! __cplusplus */


#ifdef __TURBOC__
#define YY_USE_CONST
#endif


#ifndef YY_USE_CONST
#define const
#endif


#ifdef YY_USE_PROTOS
#define YY_PROTO(proto) proto
#else
#define YY_PROTO(proto) ()
/* we can't get here if it's an ANSI C compiler, or a C++ compiler,
 * so it's got to be a K&R compiler, and therefore there's no standard
 * place from which to include these definitions
 */
char *malloc();
int free();
int read();
#endif


/* amount of stuff to slurp up with each read */
#ifndef YY_READ_BUF_SIZE
#define YY_READ_BUF_SIZE 8192
#endif

/* returned upon end-of-file */
#define YY_END_TOK 0

/* copy whatever the last rule matched to the standard output */

/* cast to (char *) is because for 8-bit chars, ConfParsertext is (unsigned char *) */
/* this used to be an fputs(), but since the string might contain NUL's,
 * we now use fwrite()
 */
#define ECHO (void) fwrite( (char *) ConfParsertext, ConfParserleng, 1, ConfParserout )

/* gets input and stuffs it into "buf".  number of characters read, or YY_NULL,
 * is returned in "result".
 */
#define YY_INPUT(buf,result,max_size) \
	if ( (result = read( fileno(ConfParserin), (char *) buf, max_size )) < 0 ) \
	    YY_FATAL_ERROR( "read() in flex scanner failed" );
#define YY_NULL 0

/* no semi-colon after return; correct usage is to write "ConfParserterminate();" -
 * we don't want an extra ';' after the "return" because that will cause
 * some compilers to complain about unreachable statements.
 */
#define ConfParserterminate() return ( YY_NULL )

/* report a fatal error */

/* The funky do-while is used to turn this macro definition into
 * a single C statement (which needs a semi-colon terminator).
 * This avoids problems with code like:
 *
 * 	if ( something_happens )
 *		YY_FATAL_ERROR( "oops, the something happened" );
 *	else
 *		everything_okay();
 *
 * Prior to using the do-while the compiler would get upset at the
 * "else" because it interpreted the "if" statement as being all
 * done when it reached the ';' after the YY_FATAL_ERROR() call.
 */

#define YY_FATAL_ERROR(msg) \
	do \
		{ \
		(void) fputs( msg, stderr ); \
		(void) putc( '\n', stderr ); \
		exit( 1 ); \
		} \
	while ( 0 )

/* default ConfParserwrap function - always treat EOF as an EOF */
#define ConfParserwrap() 1

/* enter a start condition.  This macro really ought to take a parameter,
 * but we do it the disgusting crufty way forced on us by the ()-less
 * definition of BEGIN
 */
#define BEGIN ConfParser_start = 1 + 2 *

/* action number for EOF rule of a given start state */
#define YY_STATE_EOF(state) (YY_END_OF_BUFFER + state + 1)

/* special action meaning "start processing a new file" */
#define YY_NEW_FILE \
	do \
		{ \
		ConfParser_init_buffer( ConfParser_current_buffer, ConfParserin ); \
		ConfParser_load_buffer_state(); \
		} \
	while ( 0 )

/* default declaration of generated scanner - a define so the user can
 * easily add parameters
 */
#define YY_DECL int ConfParserlex YY_PROTO(( void )) 

/* code executed at the end of each rule */
#define YY_BREAK break;

#define YY_END_OF_BUFFER_CHAR 0

#ifndef YY_BUF_SIZE
#define YY_BUF_SIZE (YY_READ_BUF_SIZE * 2) /* size of default input buffer */
#endif

typedef struct ConfParser_buffer_state *YY_BUFFER_STATE;

#define YY_CHAR char
# line 1 "utils/ConfLexer.ll"
#define INITIAL 0
/* -*- C++ -*-
 */
# line 4 "utils/ConfLexer.ll"
#include "dmem/dnew.hh"

#include <string.h> 

#include "utils/ArgList.hh"
#include "utils/ConfParser_tab.hh"
#include "utils/Symbol.hh"

static size_t s_lineNumber;

size_t ll_getLine() {
  return s_lineNumber;
}

void ll_reset() {
  s_lineNumber = 1;
}

static Symbol str_val;

#define COMMENT 1
#define STRING 2
# line 40 "utils/ConfLexer.ll"

/* done after the current pattern has been matched and before the
 * corresponding action - sets up ConfParsertext
 */
#define YY_DO_BEFORE_ACTION \
	ConfParsertext = ConfParser_bp; \
	ConfParserleng = ConfParser_cp - ConfParser_bp; \
	ConfParser_hold_char = *ConfParser_cp; \
	*ConfParser_cp = '\0'; \
	ConfParser_c_buf_p = ConfParser_cp;

#define EOB_ACT_CONTINUE_SCAN 0
#define EOB_ACT_END_OF_FILE 1
#define EOB_ACT_LAST_MATCH 2

/* return all but the first 'n' matched characters back to the input stream */
#define ConfParserless(n) \
	do \
		{ \
		/* undo effects of setting up ConfParsertext */ \
		*ConfParser_cp = ConfParser_hold_char; \
		ConfParser_c_buf_p = ConfParser_cp = ConfParser_bp + n; \
		YY_DO_BEFORE_ACTION; /* set up ConfParsertext again */ \
		} \
	while ( 0 )

#define unput(c) ConfParserunput( c, ConfParsertext )


struct ConfParser_buffer_state
    {
    FILE *ConfParser_input_file;

    YY_CHAR *ConfParser_ch_buf;		/* input buffer */
    YY_CHAR *ConfParser_buf_pos;	/* current position in input buffer */

    /* size of input buffer in bytes, not including room for EOB characters*/
    int ConfParser_buf_size;	

    /* number of characters read into ConfParser_ch_buf, not including EOB characters */
    int ConfParser_n_chars;

    int ConfParser_eof_status;		/* whether we've seen an EOF on this buffer */
#define EOF_NOT_SEEN 0
    /* "pending" happens when the EOF has been seen but there's still
     * some text process
     */
#define EOF_PENDING 1
#define EOF_DONE 2
    };

static YY_BUFFER_STATE ConfParser_current_buffer;

/* we provide macros for accessing buffer states in case in the
 * future we want to put the buffer states in a more general
 * "scanner state"
 */
#define YY_CURRENT_BUFFER ConfParser_current_buffer


/* ConfParser_hold_char holds the character lost when ConfParsertext is formed */
static YY_CHAR ConfParser_hold_char;

static int ConfParser_n_chars;		/* number of characters read into ConfParser_ch_buf */



#ifndef YY_USER_ACTION
#define YY_USER_ACTION
#endif

#ifndef YY_USER_INIT
#define YY_USER_INIT
#endif

extern YY_CHAR *ConfParsertext;
extern int ConfParserleng;
extern FILE *ConfParserin, *ConfParserout;

YY_CHAR *ConfParsertext;
int ConfParserleng;

FILE *ConfParserin = (FILE *) stdin, *ConfParserout = (FILE *) stdout;

#define YY_END_OF_BUFFER 25
struct ConfParser_trans_info
    {
    short ConfParser_verify;
    short ConfParser_nxt;
    };
typedef const struct ConfParser_trans_info *ConfParser_state_type;
static const struct ConfParser_trans_info ConfParser_transition[555] =
    {
      0, 299900,      0,   536,      0,     0,      0,   534,      1,   126,
      2,   128,      3,   132,      4,   134,      5,   136,      6,   126,
      7,   157,      8,   159,      9,   162,     10,   164,     11,   178,
     12,   178,     13,   126,     14,   178,     15,   178,     16,   178,
     17,   178,     18,   178,     19,   178,      0,     0,      0,   513,
      1,   105,      2,   107,      3,   111,      4,   113,      5,   115,
      6,   105,      7,   136,      8,   138,      9,   141,     10,   143,
     11,   157,     12,   157,     13,   105,     14,   157,     15,   157,
     16,   157,     17,   157,     18,   157,     19,   157,      0,     4,
      0,   492,      1,   157,      2,   157,      3,   178,      4,   157,

      5,   157,      6,   199,      7,   157,      8,   157,      9,   157,
     10,   157,     11,   157,     12,   157,     13,   157,     14,   157,
     15,   157,     16,   157,     17,   157,     18,   157,     19,   157,
      0,     4,      0,   471,      1,   136,      2,   136,      3,   157,
      4,   136,      5,   136,      6,   178,      7,   136,      8,   136,
      9,   136,     10,   136,     11,   136,     12,   136,     13,   136,
     14,   136,     15,   136,     16,   136,     17,   136,     18,   136,
     19,   136,      0,     0,      0,   450,      1,   178,      2,   178,
      3,   178,      4,    96,      5,   178,      6,   178,      7,   178,
      8,   178,      9,   178,     10,   178,     11,   178,     12,   178,

     13,   199,     14,   178,     15,   178,     16,   178,     17,   178,
     18,   178,     19,   178,      0,     0,      0,   429,      1,   157,
      2,   157,      3,   157,      4,    75,      5,   157,      6,   157,
      7,   157,      8,   157,      9,   157,     10,   157,     11,   157,
     12,   157,     13,   178,     14,   157,     15,   157,     16,   157,
     17,   157,     18,   157,     19,   157,      0,    23,      0,   408,
      0,    18,      0,   406,      0,     0,      2,    54,      0,    19,
      0,   402,      0,     7,      0,   400,      0,     1,      0,   398,
      1,   168,      2,   168,      0,     0,      4,   168,      5,   168,
      6,   168,      7,   168,      8,   168,      9,   168,     10,   168,

     11,   168,     12,   168,     13,   168,     14,   168,     15,   168,
     16,   168,     17,   168,     18,   168,     19,   168,      0,    23,
      0,   377,      0,    23,      0,   375,      0,     0,      0,    23,
      0,   372,      0,    21,      0,   370,      8,   168,      0,     0,
     10,   171,      6,   171,     10,   172,      0,     0,      9,   183,
      8,   202,      0,     0,     10,   164,      0,     0,     12,   204,
      0,    20,      0,   356,      0,    17,      0,   354,      0,    18,
      0,   352,      0,     0,      2,     0,      0,     0,      0,     0,
      0,     0,     10,   192,     11,   192,     12,   192,      0,     0,
     14,   192,     15,   192,     16,   192,     17,   192,     18,   192,

     19,   192,      0,     4,      0,   335,      1,   192,      2,   192,
      3,   192,      4,   192,      5,   192,      6,   213,      7,   192,
      8,   192,      9,   192,     10,   192,     11,   192,     12,   192,
     13,   192,     14,   192,     15,   192,     16,   192,     17,   192,
     18,   192,     19,   192,      0,     4,      0,   314,      1,   171,
      2,   171,      3,   171,      4,   171,      5,   171,      6,   192,
      7,   171,      8,   171,      9,   171,     10,   171,     11,   171,
     12,   171,     13,   171,     14,   171,     15,   171,     16,   171,
     17,   171,     18,   171,     19,   171,      0,    24,      0,   293,
      1,   150,      2,   150,      3,   150,      4,   150,      5,   150,

      6,   150,      7,   150,      8,   150,      9,   131,     10,   150,
     11,   150,     12,   150,     13,   150,     14,   150,     15,   150,
     16,   150,     17,   150,     18,   150,     19,   150,      0,     8,
      0,   272,      1,   171,      2,   171,      3,   171,      0,     0,
      5,   171,      6,   171,      7,   171,      8,   171,      9,   171,
     10,   171,     11,   171,     12,   171,      0,     0,     14,   171,
     15,   171,     16,   171,     17,   171,     18,   171,     19,   171,
      0,    24,      0,   251,      1,    91,      2,    91,      3,    91,
      4,    91,      5,    91,      6,    91,      7,    91,      8,    91,
      9,    91,     10,   171,     11,    91,     12,    91,     13,    91,

     14,   173,     15,   175,     16,   177,     17,   179,     18,   183,
     19,   185,      0,     1,      0,   230,      1,     0,      2,     0,
      0,     0,      4,     0,      5,     0,      6,     0,      7,     0,
      8,     0,      9,     0,     10,     0,     11,     0,     12,     0,
     13,     0,     14,     0,     15,     0,     16,     0,     17,     0,
     18,     0,     19,     0,      0,     0,      0,   209,      0,     0,
      0,    21,      0,   206,      0,     0,      0,    22,      0,   203,
      0,     3,      0,   201,      0,     0,     10,     6,      8,    38,
      0,     0,     10,     0,      0,     0,     12,    40,     10,     0,
      0,     0,     12,   139,      0,     2,      0,   189,      1,   129,

      2,   129,      0,     0,      4,   129,      5,   129,      6,   129,
      7,   129,      8,   129,      9,   129,     10,   129,     11,   129,
     12,   129,     13,   129,     14,   129,     15,   129,     16,   129,
     17,   129,     18,   129,     19,   129,      0,    22,      0,   168,
      0,     0,      0,   166,      0,    20,      0,   164,      0,     6,
      0,   162,      0,    15,      0,   160,      7,   129,     10,   -35,
      0,     0,     12,   129,      0,     0,     10,     0,     11,     0,
     12,     0,      0,     0,     14,     0,     15,     0,     16,     0,
     17,     0,     18,     0,     19,     0,      0,     4,      0,   143,
      1,     0,      2,     0,      3,     0,      4,     0,      5,     0,

      6,    21,      7,     0,      8,     0,      9,     0,     10,     0,
     11,     0,     12,     0,     13,     0,     14,     0,     15,     0,
     16,     0,     17,     0,     18,     0,     19,     0,      0,     0,
      0,   122,      1,   -21,      2,   -21,      3,   -21,      4,   -21,
      5,   -21,      6,   -21,      7,   -21,      8,   -21,      0,     0,
     10,   -21,     11,   -21,     12,   -21,     13,   -21,     14,   -21,
     15,   -21,     16,   -21,     17,   -21,     18,   -21,     19,   -21,
      0,     8,      0,   101,      1,     0,      2,     0,      3,     0,
      0,     0,      5,     0,      6,     0,      7,     0,      8,     0,
      9,     0,     10,     0,     11,     0,     12,     0,      0,     0,

     14,     0,     15,     0,     16,     0,     17,     0,     18,     0,
     19,     0,      0,    16,      0,    80,      0,    14,      0,    78,
      0,    13,      0,    76,      0,    11,      0,    74,      0,    12,
      0,    72,      0,     0,     10,     0,      0,     9,      0,    68,
      0,    10,      0,    66,      0,     0,      0,    64,      0,     0,
      0,     0,      0,     2,      0,    60,      1,     0,      2,     0,
      7,    29,      4,     0,      5,     0,      6,     0,      7,     0,
      8,     0,      9,     0,     10,     0,     11,     0,     12,     0,
     13,     0,     14,     0,     15,     0,     16,     0,     17,     0,
     18,     0,     19,     0,      0,     0,      0,    39,      0,     0,

      0,    37,      0,     0,      0,    35,      0,     0,      0,    33,
      7,     6,      0,    22,      0,    30,      0,    22,      0,    28,
     10,     7,      0,     0,     10,     7,      0,     0,     10,    12,
      0,    22,      0,    21,     10,     0,      0,     0,     10,     0,
      0,     0,      0,     0,      0,     0,      0,     0,      0,     0,
      0,     0,     10,     0,      0,     0,      0,     0,      0,     0,
      0,     0,      0,     0,      0,     0,      0,     0,      0,     0,
      0,     0,     20,    25,      1,     0,    };

static const struct ConfParser_trans_info *ConfParser_start_state_list[7] =
    {
    &ConfParser_transition[1],
    &ConfParser_transition[3],
    &ConfParser_transition[24],
    &ConfParser_transition[45],
    &ConfParser_transition[66],
    &ConfParser_transition[87],
    &ConfParser_transition[108],


    } ;

static const YY_CHAR ConfParser_ec[128] =
    {   0,
        1,    1,    1,    1,    1,    1,    1,    1,    2,    3,
        1,    1,    2,    1,    1,    1,    1,    1,    1,    1,
        1,    1,    1,    1,    1,    1,    1,    1,    1,    1,
        1,    2,    1,    4,    5,    1,    1,    1,    1,    1,
        1,    6,    7,    1,    7,    8,    9,   10,   10,   10,
       10,   10,   10,   10,   10,   10,   10,    1,    1,    1,
        1,    1,    1,    1,   11,   11,   11,   11,   12,   11,
       11,   11,   11,   11,   11,   11,   11,   11,   11,   11,
       11,   11,   11,   11,   11,   11,   11,   11,   11,   11,
        1,   13,    1,    1,   11,    1,   11,   14,   11,   11,

       12,   15,   11,   11,   11,   11,   11,   11,   11,   16,
       11,   11,   11,   17,   11,   18,   11,   19,   11,   11,
       11,   11,    1,    1,    1,    1,    1
    } ;

static ConfParser_state_type ConfParser_last_accepting_state;
static YY_CHAR *ConfParser_last_accepting_cpos;

/* the intent behind this definition is that it'll catch
 * any uses of REJECT which flex missed
 */
#define REJECT reject_used_but_not_detected
#define ConfParsermore() ConfParsermore_used_but_not_detected
#define YY_MORE_ADJ 0

/* these variables are all declared out here so that section 3 code can
 * manipulate them
 */
/* points to current character in buffer */
static YY_CHAR *ConfParser_c_buf_p = (YY_CHAR *) 0;
static int ConfParser_init = 1;		/* whether we need to initialize */
static int ConfParser_start = 0;	/* start state number */

/* flag which is used to allow ConfParserwrap()'s to do buffer switches
 * instead of setting up a fresh ConfParserin.  A bit of a hack ...
 */
static int ConfParser_did_buffer_switch_on_eof;

static ConfParser_state_type ConfParser_get_previous_state YY_PROTO(( void ));
static ConfParser_state_type ConfParser_try_NUL_trans YY_PROTO(( ConfParser_state_type current_state ));
static int ConfParser_get_next_buffer YY_PROTO(( void ));
static void ConfParserunput YY_PROTO(( YY_CHAR c, YY_CHAR *buf_ptr ));
void ConfParserrestart YY_PROTO(( FILE *input_file ));
void ConfParser_switch_to_buffer YY_PROTO(( YY_BUFFER_STATE new_buffer ));
void ConfParser_load_buffer_state YY_PROTO(( void ));
YY_BUFFER_STATE ConfParser_create_buffer YY_PROTO(( FILE *file, int size ));
void ConfParser_delete_buffer YY_PROTO(( YY_BUFFER_STATE b ));
void ConfParser_init_buffer YY_PROTO(( YY_BUFFER_STATE b, FILE *file ));

#define ConfParser_new_buffer ConfParser_create_buffer

#ifdef __cplusplus
static int ConfParserinput YY_PROTO(( void ));
#else
static int input YY_PROTO(( void ));
#endif

YY_DECL
    {
    register ConfParser_state_type ConfParser_current_state;
    register YY_CHAR *ConfParser_cp, *ConfParser_bp;
    register int ConfParser_act;




    if ( ConfParser_init )
	{
	YY_USER_INIT;

	if ( ! ConfParser_start )
	    ConfParser_start = 1;	/* first start state */

	if ( ! ConfParserin )
	    ConfParserin = stdin;

	if ( ! ConfParserout )
	    ConfParserout = stdout;

	if ( ConfParser_current_buffer )
	    ConfParser_init_buffer( ConfParser_current_buffer, ConfParserin );
	else
	    ConfParser_current_buffer = ConfParser_create_buffer( ConfParserin, YY_BUF_SIZE );

	ConfParser_load_buffer_state();

	ConfParser_init = 0;
	}

    while ( 1 )		/* loops until end-of-file is reached */
	{
	ConfParser_cp = ConfParser_c_buf_p;

	/* support of ConfParsertext */
	*ConfParser_cp = ConfParser_hold_char;

	/* ConfParser_bp points to the position in ConfParser_ch_buf of the start of the
	 * current run.
	 */
	ConfParser_bp = ConfParser_cp;

	ConfParser_current_state = ConfParser_start_state_list[ConfParser_start];
ConfParser_match:
	{
	register const struct ConfParser_trans_info *ConfParser_trans_info;

	register YY_CHAR ConfParser_c;

	for ( ConfParser_c = ConfParser_ec[*ConfParser_cp];
	      (ConfParser_trans_info = &ConfParser_current_state[ConfParser_c])->ConfParser_verify == ConfParser_c;
	      ConfParser_c = ConfParser_ec[*++ConfParser_cp] )
	    {
	    ConfParser_current_state += ConfParser_trans_info->ConfParser_nxt;

	    if ( ConfParser_current_state[-1].ConfParser_nxt )
		{
		ConfParser_last_accepting_state = ConfParser_current_state;
		ConfParser_last_accepting_cpos = ConfParser_cp;
		}
	    }
	}

ConfParser_find_action:
	ConfParser_act = ConfParser_current_state[-1].ConfParser_nxt;

	YY_DO_BEFORE_ACTION;
	YY_USER_ACTION;

do_action:	/* this label is used only to access EOF actions */


	switch ( ConfParser_act )
	    {
	    case 0: /* must backtrack */
	    /* undo the effects of YY_DO_BEFORE_ACTION */
	    *ConfParser_cp = ConfParser_hold_char;
	    ConfParser_cp = ConfParser_last_accepting_cpos + 1;
	    ConfParser_current_state = ConfParser_last_accepting_state;
	    goto ConfParser_find_action;

case 1:
# line 42 "utils/ConfLexer.ll"
{}
	YY_BREAK
case 2:
# line 43 "utils/ConfLexer.ll"
{}
	YY_BREAK
case 3:
# line 44 "utils/ConfLexer.ll"
{ BEGIN COMMENT; }
	YY_BREAK
case 4:
# line 46 "utils/ConfLexer.ll"
{}
	YY_BREAK
case 5:
# line 47 "utils/ConfLexer.ll"
{ ++s_lineNumber; }
	YY_BREAK
case 6:
# line 48 "utils/ConfLexer.ll"
{ BEGIN INITIAL; }
	YY_BREAK
case 7:
# line 50 "utils/ConfLexer.ll"
{ BEGIN STRING; 
                        str_val.clear(); 
                      }
	YY_BREAK
case 8:
# line 53 "utils/ConfLexer.ll"
{ str_val += ConfParsertext; 
                      }
	YY_BREAK
case 9:
# line 55 "utils/ConfLexer.ll"
{ str_val += '\t'; 
                      }
	YY_BREAK
case 10:
# line 57 "utils/ConfLexer.ll"
{ str_val += '\v'; 
                      }
	YY_BREAK
case 11:
# line 59 "utils/ConfLexer.ll"
{ str_val += '\n'; 
                      }
	YY_BREAK
case 12:
# line 61 "utils/ConfLexer.ll"
{ str_val += '\r'; 
                      }
	YY_BREAK
case 13:
# line 63 "utils/ConfLexer.ll"
{ str_val += '\f'; 
                      }
	YY_BREAK
case 14:
# line 65 "utils/ConfLexer.ll"
{ str_val += '\b'; 
                      }
	YY_BREAK
case 15:
# line 67 "utils/ConfLexer.ll"
{ str_val += ConfParsertext[1]; 
                      }
	YY_BREAK
case 16:
# line 69 "utils/ConfLexer.ll"
{ char val = (char)strtol(ConfParsertext+1, (char**)NULL, 0);
                        str_val += val;
                      }
	YY_BREAK
case 17:
# line 72 "utils/ConfLexer.ll"
{ BEGIN INITIAL;
                        ConfParserlval.str = (char *)calloc(strlen(str_val.c_str())+1, 
						    sizeof(char));
                        strcpy(ConfParserlval.str, str_val.c_str()); 
			return LString; 
                      }
	YY_BREAK
case 18:
# line 79 "utils/ConfLexer.ll"
{}
	YY_BREAK
case 19:
# line 80 "utils/ConfLexer.ll"
{ ++s_lineNumber; }
	YY_BREAK
case 20:
# line 82 "utils/ConfLexer.ll"
{ ConfParserlval.str = (char *)calloc(strlen(ConfParsertext)+1, 
					sizeof(char));
            strcpy(ConfParserlval.str, ConfParsertext); 
	    return LSymbol; 
          }
	YY_BREAK
case 21:
# line 87 "utils/ConfLexer.ll"
{ ConfParserlval.str = (char *)calloc(strlen(ConfParsertext)+1, 
					sizeof(char));
            strcpy(ConfParserlval.str, ConfParsertext); 
	    return LInteger; 
          }
	YY_BREAK
case 22:
# line 92 "utils/ConfLexer.ll"
{ ConfParserlval.str = (char *)calloc(strlen(ConfParsertext)+1, 
					 sizeof(char));
             strcpy(ConfParserlval.str, ConfParsertext); 
	     return LFloat; 
           }
	YY_BREAK
case 23:
# line 98 "utils/ConfLexer.ll"
{ return *ConfParsertext; }
	YY_BREAK
case 24:
# line 100 "utils/ConfLexer.ll"
ECHO;
	YY_BREAK
case YY_STATE_EOF(INITIAL):
case YY_STATE_EOF(COMMENT):
case YY_STATE_EOF(STRING):
    ConfParserterminate();

	    case YY_END_OF_BUFFER:
		{
		/* amount of text matched not including the EOB char */
		int ConfParser_amount_of_matched_text = ConfParser_cp - ConfParsertext - 1;

		/* undo the effects of YY_DO_BEFORE_ACTION */
		*ConfParser_cp = ConfParser_hold_char;

		/* note that here we test for ConfParser_c_buf_p "<=" to the position
		 * of the first EOB in the buffer, since ConfParser_c_buf_p will
		 * already have been incremented past the NUL character
		 * (since all states make transitions on EOB to the end-
		 * of-buffer state).  Contrast this with the test in ConfParserinput().
		 */
		if ( ConfParser_c_buf_p <= &ConfParser_current_buffer->ConfParser_ch_buf[ConfParser_n_chars] )
		    /* this was really a NUL */
		    {
		    ConfParser_state_type ConfParser_next_state;

		    ConfParser_c_buf_p = ConfParsertext + ConfParser_amount_of_matched_text;

		    ConfParser_current_state = ConfParser_get_previous_state();

		    /* okay, we're now positioned to make the
		     * NUL transition.  We couldn't have
		     * ConfParser_get_previous_state() go ahead and do it
		     * for us because it doesn't know how to deal
		     * with the possibility of jamming (and we
		     * don't want to build jamming into it because
		     * then it will run more slowly)
		     */

		    ConfParser_next_state = ConfParser_try_NUL_trans( ConfParser_current_state );

		    ConfParser_bp = ConfParsertext + YY_MORE_ADJ;

		    if ( ConfParser_next_state )
			{
			/* consume the NUL */
			ConfParser_cp = ++ConfParser_c_buf_p;
			ConfParser_current_state = ConfParser_next_state;
			goto ConfParser_match;
			}

		    else
			{
			    ConfParser_cp = ConfParser_c_buf_p;
			goto ConfParser_find_action;
			}
		    }

		else switch ( ConfParser_get_next_buffer() )
		    {
		    case EOB_ACT_END_OF_FILE:
			{
			ConfParser_did_buffer_switch_on_eof = 0;

			if ( ConfParserwrap() )
			    {
			    /* note: because we've taken care in
			     * ConfParser_get_next_buffer() to have set up ConfParsertext,
			     * we can now set up ConfParser_c_buf_p so that if some
			     * total hoser (like flex itself) wants
			     * to call the scanner after we return the
			     * YY_NULL, it'll still work - another YY_NULL
			     * will get returned.
			     */
			    ConfParser_c_buf_p = ConfParsertext + YY_MORE_ADJ;

			    ConfParser_act = YY_STATE_EOF((ConfParser_start - 1) / 2);
			    goto do_action;
			    }

			else
			    {
			    if ( ! ConfParser_did_buffer_switch_on_eof )
				YY_NEW_FILE;
			    }
			}
			break;

		    case EOB_ACT_CONTINUE_SCAN:
			ConfParser_c_buf_p = ConfParsertext + ConfParser_amount_of_matched_text;

			ConfParser_current_state = ConfParser_get_previous_state();

			ConfParser_cp = ConfParser_c_buf_p;
			ConfParser_bp = ConfParsertext + YY_MORE_ADJ;
			goto ConfParser_match;

		    case EOB_ACT_LAST_MATCH:
			ConfParser_c_buf_p =
			    &ConfParser_current_buffer->ConfParser_ch_buf[ConfParser_n_chars];

			ConfParser_current_state = ConfParser_get_previous_state();

			ConfParser_cp = ConfParser_c_buf_p;
			ConfParser_bp = ConfParsertext + YY_MORE_ADJ;
			goto ConfParser_find_action;
		    }
		break;
		}

	    default:
#ifdef FLEX_DEBUG
		printf( "action # %d\n", ConfParser_act );
#endif
		YY_FATAL_ERROR(
			"fatal flex scanner internal error--no action found" );
	    }
	}
    }


/* ConfParser_get_next_buffer - try to read in a new buffer
 *
 * synopsis
 *     int ConfParser_get_next_buffer();
 *     
 * returns a code representing an action
 *     EOB_ACT_LAST_MATCH - 
 *     EOB_ACT_CONTINUE_SCAN - continue scanning from current position
 *     EOB_ACT_END_OF_FILE - end of file
 */

static int ConfParser_get_next_buffer()

    {
    register YY_CHAR *dest = ConfParser_current_buffer->ConfParser_ch_buf;
    register YY_CHAR *source = ConfParsertext - 1; /* copy prev. char, too */
    register int number_to_move, i;
    int ret_val;

    if ( ConfParser_c_buf_p > &ConfParser_current_buffer->ConfParser_ch_buf[ConfParser_n_chars + 1] )
	YY_FATAL_ERROR(
		"fatal flex scanner internal error--end of buffer missed" );

    /* try to read more data */

    /* first move last chars to start of buffer */
    number_to_move = ConfParser_c_buf_p - ConfParsertext;

    for ( i = 0; i < number_to_move; ++i )
	*(dest++) = *(source++);

    if ( ConfParser_current_buffer->ConfParser_eof_status != EOF_NOT_SEEN )
	/* don't do the read, it's not guaranteed to return an EOF,
	 * just force an EOF
	 */
	ConfParser_n_chars = 0;

    else
	{
	int num_to_read = ConfParser_current_buffer->ConfParser_buf_size - number_to_move - 1;

	if ( num_to_read > YY_READ_BUF_SIZE )
	    num_to_read = YY_READ_BUF_SIZE;

	else if ( num_to_read <= 0 )
	    YY_FATAL_ERROR( "fatal error - scanner input buffer overflow" );

	/* read in more data */
	YY_INPUT( (&ConfParser_current_buffer->ConfParser_ch_buf[number_to_move]),
		  ConfParser_n_chars, num_to_read );
	}

    if ( ConfParser_n_chars == 0 )
	{
	if ( number_to_move == 1 )
	    {
	    ret_val = EOB_ACT_END_OF_FILE;
	    ConfParser_current_buffer->ConfParser_eof_status = EOF_DONE;
	    }

	else
	    {
	    ret_val = EOB_ACT_LAST_MATCH;
	    ConfParser_current_buffer->ConfParser_eof_status = EOF_PENDING;
	    }
	}

    else
	ret_val = EOB_ACT_CONTINUE_SCAN;

    ConfParser_n_chars += number_to_move;
    ConfParser_current_buffer->ConfParser_ch_buf[ConfParser_n_chars] = YY_END_OF_BUFFER_CHAR;
    ConfParser_current_buffer->ConfParser_ch_buf[ConfParser_n_chars + 1] = YY_END_OF_BUFFER_CHAR;

    /* ConfParsertext begins at the second character in ConfParser_ch_buf; the first
     * character is the one which preceded it before reading in the latest
     * buffer; it needs to be kept around in case it's a newline, so
     * ConfParser_get_previous_state() will have with '^' rules active
     */

    ConfParsertext = &ConfParser_current_buffer->ConfParser_ch_buf[1];

    return ( ret_val );
    }


/* ConfParser_get_previous_state - get the state just before the EOB char was reached
 *
 * synopsis
 *     ConfParser_state_type ConfParser_get_previous_state();
 */

static ConfParser_state_type ConfParser_get_previous_state()

    {
    register ConfParser_state_type ConfParser_current_state;
    register YY_CHAR *ConfParser_cp;

    ConfParser_current_state = ConfParser_start_state_list[ConfParser_start];

    for ( ConfParser_cp = ConfParsertext + YY_MORE_ADJ; ConfParser_cp < ConfParser_c_buf_p; ++ConfParser_cp )
	{
	ConfParser_current_state += ConfParser_current_state[(*ConfParser_cp ? ConfParser_ec[*ConfParser_cp] : 1)].ConfParser_nxt;
	if ( ConfParser_current_state[-1].ConfParser_nxt )
	    {
	    ConfParser_last_accepting_state = ConfParser_current_state;
	    ConfParser_last_accepting_cpos = ConfParser_cp;
	    }
	}

    return ( ConfParser_current_state );
    }


/* ConfParser_try_NUL_trans - try to make a transition on the NUL character
 *
 * synopsis
 *     next_state = ConfParser_try_NUL_trans( current_state );
 */

#ifdef YY_USE_PROTOS
static ConfParser_state_type ConfParser_try_NUL_trans( register ConfParser_state_type ConfParser_current_state )
#else
static ConfParser_state_type ConfParser_try_NUL_trans( ConfParser_current_state )
register ConfParser_state_type ConfParser_current_state;
#endif

    {
    register int ConfParser_is_jam;
    register YY_CHAR *ConfParser_cp = ConfParser_c_buf_p;

    register int ConfParser_c = 1;
    register const struct ConfParser_trans_info *ConfParser_trans_info;

    ConfParser_trans_info = &ConfParser_current_state[ConfParser_c];
    ConfParser_current_state += ConfParser_trans_info->ConfParser_nxt;
    ConfParser_is_jam = (ConfParser_trans_info->ConfParser_verify != ConfParser_c);

    if ( ! ConfParser_is_jam )
	{
	if ( ConfParser_current_state[-1].ConfParser_nxt )
	    {
	    ConfParser_last_accepting_state = ConfParser_current_state;
	    ConfParser_last_accepting_cpos = ConfParser_cp;
	    }
	}

    return ( ConfParser_is_jam ? 0 : ConfParser_current_state );
    }


#ifdef YY_USE_PROTOS
static void ConfParserunput( YY_CHAR c, register YY_CHAR *ConfParser_bp )
#else
static void ConfParserunput( c, ConfParser_bp )
YY_CHAR c;
register YY_CHAR *ConfParser_bp;
#endif

    {
    register YY_CHAR *ConfParser_cp = ConfParser_c_buf_p;

    /* undo effects of setting up ConfParsertext */
    *ConfParser_cp = ConfParser_hold_char;

    if ( ConfParser_cp < ConfParser_current_buffer->ConfParser_ch_buf + 2 )
	{ /* need to shift things up to make room */
	register int number_to_move = ConfParser_n_chars + 2; /* +2 for EOB chars */
	register YY_CHAR *dest =
	    &ConfParser_current_buffer->ConfParser_ch_buf[ConfParser_current_buffer->ConfParser_buf_size + 2];
	register YY_CHAR *source =
	    &ConfParser_current_buffer->ConfParser_ch_buf[number_to_move];

	while ( source > ConfParser_current_buffer->ConfParser_ch_buf )
	    *--dest = *--source;

	ConfParser_cp += dest - source;
	ConfParser_bp += dest - source;
	ConfParser_n_chars = ConfParser_current_buffer->ConfParser_buf_size;

	if ( ConfParser_cp < ConfParser_current_buffer->ConfParser_ch_buf + 2 )
	    YY_FATAL_ERROR( "flex scanner push-back overflow" );
	}

    if ( ConfParser_cp > ConfParser_bp && ConfParser_cp[-1] == '\n' )
	ConfParser_cp[-2] = '\n';

    *--ConfParser_cp = c;

    /* note: the formal parameter *must* be called "ConfParser_bp" for this
     *       macro to now work correctly
     */
    YY_DO_BEFORE_ACTION; /* set up ConfParsertext again */
    }


#ifdef __cplusplus
static int ConfParserinput()
#else
static int input()
#endif

    {
    int c;
    YY_CHAR *ConfParser_cp = ConfParser_c_buf_p;

    *ConfParser_cp = ConfParser_hold_char;

    if ( *ConfParser_c_buf_p == YY_END_OF_BUFFER_CHAR )
	{
	/* ConfParser_c_buf_p now points to the character we want to return.
	 * If this occurs *before* the EOB characters, then it's a
	 * valid NUL; if not, then we've hit the end of the buffer.
	 */
	if ( ConfParser_c_buf_p < &ConfParser_current_buffer->ConfParser_ch_buf[ConfParser_n_chars] )
	    /* this was really a NUL */
	    *ConfParser_c_buf_p = '\0';

	else
	    { /* need more input */
	    ConfParsertext = ConfParser_c_buf_p;
	    ++ConfParser_c_buf_p;

	    switch ( ConfParser_get_next_buffer() )
		{
		case EOB_ACT_END_OF_FILE:
		    {
		    if ( ConfParserwrap() )
			{
			ConfParser_c_buf_p = ConfParsertext + YY_MORE_ADJ;
			return ( EOF );
			}

		    YY_NEW_FILE;

#ifdef __cplusplus
		    return ( ConfParserinput() );
#else
		    return ( input() );
#endif
		    }
		    break;

		case EOB_ACT_CONTINUE_SCAN:
		    ConfParser_c_buf_p = ConfParsertext + YY_MORE_ADJ;
		    break;

		case EOB_ACT_LAST_MATCH:
#ifdef __cplusplus
		    YY_FATAL_ERROR( "unexpected last match in ConfParserinput()" );
#else
		    YY_FATAL_ERROR( "unexpected last match in input()" );
#endif
		}
	    }
	}

    c = *ConfParser_c_buf_p;
    ConfParser_hold_char = *++ConfParser_c_buf_p;

    return ( c );
    }


#ifdef YY_USE_PROTOS
void ConfParserrestart( FILE *input_file )
#else
void ConfParserrestart( input_file )
FILE *input_file;
#endif

    {
    ConfParser_init_buffer( ConfParser_current_buffer, input_file );
    ConfParser_load_buffer_state();
    }


#ifdef YY_USE_PROTOS
void ConfParser_switch_to_buffer( YY_BUFFER_STATE new_buffer )
#else
void ConfParser_switch_to_buffer( new_buffer )
YY_BUFFER_STATE new_buffer;
#endif

    {
    if ( ConfParser_current_buffer == new_buffer )
	return;

    if ( ConfParser_current_buffer )
	{
	/* flush out information for old buffer */
	*ConfParser_c_buf_p = ConfParser_hold_char;
	ConfParser_current_buffer->ConfParser_buf_pos = ConfParser_c_buf_p;
	ConfParser_current_buffer->ConfParser_n_chars = ConfParser_n_chars;
	}

    ConfParser_current_buffer = new_buffer;
    ConfParser_load_buffer_state();

    /* we don't actually know whether we did this switch during
     * EOF (ConfParserwrap()) processing, but the only time this flag
     * is looked at is after ConfParserwrap() is called, so it's safe
     * to go ahead and always set it.
     */
    ConfParser_did_buffer_switch_on_eof = 1;
    }


#ifdef YY_USE_PROTOS
void ConfParser_load_buffer_state( void )
#else
void ConfParser_load_buffer_state()
#endif

    {
    ConfParser_n_chars = ConfParser_current_buffer->ConfParser_n_chars;
    ConfParsertext = ConfParser_c_buf_p = ConfParser_current_buffer->ConfParser_buf_pos;
    ConfParserin = ConfParser_current_buffer->ConfParser_input_file;
    ConfParser_hold_char = *ConfParser_c_buf_p;
    }


#ifdef YY_USE_PROTOS
YY_BUFFER_STATE ConfParser_create_buffer( FILE *file, int size )
#else
YY_BUFFER_STATE ConfParser_create_buffer( file, size )
FILE *file;
int size;
#endif

    {
    YY_BUFFER_STATE b;

    b = (YY_BUFFER_STATE) malloc( sizeof( struct ConfParser_buffer_state ) );

    if ( ! b )
	YY_FATAL_ERROR( "out of dynamic memory in ConfParser_create_buffer()" );

    b->ConfParser_buf_size = size;

    /* ConfParser_ch_buf has to be 2 characters longer than the size given because
     * we need to put in 2 end-of-buffer characters.
     */
    b->ConfParser_ch_buf = (YY_CHAR *) malloc( (unsigned) (b->ConfParser_buf_size + 2) );

    if ( ! b->ConfParser_ch_buf )
	YY_FATAL_ERROR( "out of dynamic memory in ConfParser_create_buffer()" );

    ConfParser_init_buffer( b, file );

    return ( b );
    }


#ifdef YY_USE_PROTOS
void ConfParser_delete_buffer( YY_BUFFER_STATE b )
#else
void ConfParser_delete_buffer( b )
YY_BUFFER_STATE b;
#endif

    {
    if ( b == ConfParser_current_buffer )
	ConfParser_current_buffer = (YY_BUFFER_STATE) 0;

    free( (char *) b->ConfParser_ch_buf );
    free( (char *) b );
    }


#ifdef YY_USE_PROTOS
void ConfParser_init_buffer( YY_BUFFER_STATE b, FILE *file )
#else
void ConfParser_init_buffer( b, file )
YY_BUFFER_STATE b;
FILE *file;
#endif

    {
    b->ConfParser_input_file = file;

    /* we put in the '\n' and start reading from [1] so that an
     * initial match-at-newline will be true.
     */

    b->ConfParser_ch_buf[0] = '\n';
    b->ConfParser_n_chars = 1;

    /* we always need two end-of-buffer characters.  The first causes
     * a transition to the end-of-buffer state.  The second causes
     * a jam in that state.
     */
    b->ConfParser_ch_buf[1] = YY_END_OF_BUFFER_CHAR;
    b->ConfParser_ch_buf[2] = YY_END_OF_BUFFER_CHAR;

    b->ConfParser_buf_pos = &b->ConfParser_ch_buf[1];

    b->ConfParser_eof_status = EOF_NOT_SEEN;
    }
# line 100 "utils/ConfLexer.ll"


