Skip to content
Snippets Groups Projects
Gmsh.yy.cpp 71.8 KiB
Newer Older
#line 2 "Gmsh.yy.cpp"
/* A lexical scanner generated by flex */

/* Scanner skeleton version:
Christophe Geuzaine's avatar
 
Christophe Geuzaine committed
 * $Header: /cvsroot/gmsh/Parser/Gmsh.yy.cpp,v 1.335 2007-11-08 19:30:32 geuzaine Exp $
 */

#define FLEX_SCANNER
#define YY_FLEX_MAJOR_VERSION 2
#define YY_FLEX_MINOR_VERSION 5

#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>
Christophe Geuzaine's avatar
 
Christophe Geuzaine committed
#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 */

#if __STDC__

#define YY_USE_PROTOS
#define YY_USE_CONST

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

#ifdef __TURBOC__
 #pragma warn -rch
 #pragma warn -use
#include <io.h>
#include <stdlib.h>
#define YY_USE_CONST
#define YY_USE_PROTOS
#endif

#ifdef YY_USE_CONST
#define yyconst const
#else
#define yyconst
#endif


#ifdef YY_USE_PROTOS
#define YY_PROTO(proto) proto
#else
#define YY_PROTO(proto) ()
#endif

/* Returned upon end-of-file. */
#define YY_NULL 0

/* Promotes a possibly negative, possibly signed char to an unsigned
 * integer for use as an array index.  If the signed char is negative,
 * we want to instead treat it as an 8-bit unsigned char, hence the
 * double cast.
 */
#define YY_SC_TO_UI(c) ((unsigned int) (unsigned char) c)

/* 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 yy_start = 1 + 2 *

/* Translate the current start state into a value that can be later handed
 * to BEGIN to return to the state.  The YYSTATE alias is for lex
 * compatibility.
 */
#define YY_START ((yy_start - 1) / 2)
#define YYSTATE YY_START

/* 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 yyrestart( yyin )

#define YY_END_OF_BUFFER_CHAR 0

/* Size of default input buffer. */
#define YY_BUF_SIZE 16384

typedef struct yy_buffer_state *YY_BUFFER_STATE;

extern int yyleng;
extern FILE *yyin, *yyout;

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

/* The funky do-while in the following #define is used to turn the definition
 * int a single C statement (which needs a semi-colon terminator).  This
 * avoids problems with code like:
 *
 * 	if ( condition_holds )
 *		yyless( 5 );
 *	else
 *		do_something_else();
 *
 * 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 yyless() call.
 */

/* Return all but the first 'n' matched characters back to the input stream. */

#define yyless(n) \
	do \
		{ \
		/* Undo effects of setting up yytext. */ \
		*yy_cp = yy_hold_char; \
		yy_c_buf_p = yy_cp = yy_bp + n - YY_MORE_ADJ; \
		YY_DO_BEFORE_ACTION; /* set up yytext again */ \
		} \
	while ( 0 )

#define unput(c) yyunput( c, yytext_ptr )

/* The following is because we cannot portably get our hands on size_t
 * (without autoconf's help, which isn't available because we want
 * flex-generated scanners to compile on their own).
 */
typedef unsigned int yy_size_t;


struct yy_buffer_state
	{
	FILE *yy_input_file;

	char *yy_ch_buf;		/* input buffer */
	char *yy_buf_pos;		/* current position in input buffer */

	/* Size of input buffer in bytes, not including room for EOB
	 * characters.
	 */
	yy_size_t yy_buf_size;

	/* Number of characters read into yy_ch_buf, not including EOB
	 * characters.
	 */
	int yy_n_chars;

	/* Whether we "own" the buffer - i.e., we know we created it,
	 * and can realloc() it to grow it, and should free() it to
	 * delete it.
	 */
	int yy_is_our_buffer;

	/* Whether this is an "interactive" input source; if so, and
	 * if we're using stdio for input, then we want to use getc()
	 * instead of fread(), to make sure we stop fetching input after
	 * each newline.
	 */
	int yy_is_interactive;

	/* Whether we're considered to be at the beginning of a line.
	 * If so, '^' rules will be active on the next match, otherwise
	 * not.
	 */
	int yy_at_bol;

	/* Whether to try to fill the input buffer when we reach the
	 * end of it.
	 */
	int yy_fill_buffer;

	int yy_buffer_status;
#define YY_BUFFER_NEW 0
#define YY_BUFFER_NORMAL 1
	/* When an EOF's been seen but there's still some text to process
	 * then we mark the buffer as YY_EOF_PENDING, to indicate that we
	 * shouldn't try reading from the input source any more.  We might
	 * still have a bunch of tokens to match, though, because of
	 * possible backing-up.
	 *
	 * When we actually see the EOF, we change the status to "new"
	 * (via yyrestart()), so that the user can continue scanning by
	 * just pointing yyin at a new input file.
	 */
#define YY_BUFFER_EOF_PENDING 2
	};

static YY_BUFFER_STATE yy_current_buffer = 0;

/* 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 yy_current_buffer


/* yy_hold_char holds the character lost when yytext is formed. */
static char yy_hold_char;

static int yy_n_chars;		/* number of characters read into yy_ch_buf */


int yyleng;

/* Points to current character in buffer. */
static char *yy_c_buf_p = (char *) 0;
static int yy_init = 1;		/* whether we need to initialize */
static int yy_start = 0;	/* start state number */

/* Flag which is used to allow yywrap()'s to do buffer switches
 * instead of setting up a fresh yyin.  A bit of a hack ...
 */
static int yy_did_buffer_switch_on_eof;

void yyrestart YY_PROTO(( FILE *input_file ));

void yy_switch_to_buffer YY_PROTO(( YY_BUFFER_STATE new_buffer ));
void yy_load_buffer_state YY_PROTO(( void ));
YY_BUFFER_STATE yy_create_buffer YY_PROTO(( FILE *file, int size ));
void yy_delete_buffer YY_PROTO(( YY_BUFFER_STATE b ));
void yy_init_buffer YY_PROTO(( YY_BUFFER_STATE b, FILE *file ));
void yy_flush_buffer YY_PROTO(( YY_BUFFER_STATE b ));
#define YY_FLUSH_BUFFER yy_flush_buffer( yy_current_buffer )

YY_BUFFER_STATE yy_scan_buffer YY_PROTO(( char *base, yy_size_t size ));
YY_BUFFER_STATE yy_scan_string YY_PROTO(( yyconst char *yy_str ));
YY_BUFFER_STATE yy_scan_bytes YY_PROTO(( yyconst char *bytes, int len ));

static void *yy_flex_alloc YY_PROTO(( yy_size_t ));
static void *yy_flex_realloc YY_PROTO(( void *, yy_size_t ));
static void yy_flex_free YY_PROTO(( void * ));

#define yy_new_buffer yy_create_buffer

#define yy_set_interactive(is_interactive) \
	{ \
	if ( ! yy_current_buffer ) \
		yy_current_buffer = yy_create_buffer( yyin, YY_BUF_SIZE ); \
	yy_current_buffer->yy_is_interactive = is_interactive; \
	}

#define yy_set_bol(at_bol) \
	{ \
	if ( ! yy_current_buffer ) \
		yy_current_buffer = yy_create_buffer( yyin, YY_BUF_SIZE ); \
	yy_current_buffer->yy_at_bol = at_bol; \
	}

#define YY_AT_BOL() (yy_current_buffer->yy_at_bol)

typedef unsigned char YY_CHAR;
FILE *yyin = (FILE *) 0, *yyout = (FILE *) 0;
typedef int yy_state_type;
extern char *yytext;
#define yytext_ptr yytext

static yy_state_type yy_get_previous_state YY_PROTO(( void ));
static yy_state_type yy_try_NUL_trans YY_PROTO(( yy_state_type current_state ));
static int yy_get_next_buffer YY_PROTO(( void ));
static void yy_fatal_error YY_PROTO(( yyconst char msg[] ));

/* Done after the current pattern has been matched and before the
 * corresponding action - sets up yytext.
 */
#define YY_DO_BEFORE_ACTION \
	yytext_ptr = yy_bp; \
	yyleng = (int) (yy_cp - yy_bp); \
	yy_hold_char = *yy_cp; \
	*yy_cp = '\0'; \
	yy_c_buf_p = yy_cp;

Christophe Geuzaine's avatar
 
Christophe Geuzaine committed
#define YY_NUM_RULES 149
#define YY_END_OF_BUFFER 150
static yyconst short int yy_accept[640] =
Christophe Geuzaine's avatar
 
Christophe Geuzaine committed
        0,    0,  150,  148,    1,    1,  148,    5,  148,    6,
      148,  148,  148,  148,  148,  143,   20,    2,  148,   15,
      148,  147,  147,  147,  147,  147,  147,  147,  147,  147,
      147,  147,  147,  147,  147,  147,  147,  147,  147,  147,
      147,  147,  147,  148,   27,   23,   18,   24,   16,   25,
       17,    0,  145,    3,    4,   19,  144,  143,    0,   28,
       26,   29,  147,  147,  147,  147,  147,  147,  147,  147,
      147,  147,  147,  147,  147,  147,  147,  147,  147,  147,
      147,  147,  147,  147,  147,  147,  147,  147,  147,  147,
      147,  147,  147,  147,  147,  147,  147,  147,   87,   86,

      147,  147,  147,  147,  147,  147,  147,  147,  147,  147,
      147,  103,  147,  147,  147,  147,  147,  147,  147,  147,
      147,  147,  147,  147,  147,  147,  139,  140,  147,  147,
      147,  147,  147,  147,  147,  147,   22,   21,    0,  144,
        0,    0,  146,  147,  147,  147,  147,  147,  147,  147,
      147,  147,  147,  147,  147,  147,  147,  147,  147,  147,
      147,  147,   51,  147,  147,  147,  147,  147,  147,  147,
      147,   63,  147,  147,  147,  147,  147,   76,  147,  147,
      147,  147,  147,  147,  147,  147,  147,  147,  147,  147,
      147,  147,   94,  147,  147,  147,  147,  147,  147,  147,

      147,  147,  147,  147,  147,  147,  147,  147,  147,  147,
      147,  147,  147,  147,  118,  147,  147,  147,  147,  147,
      147,  147,  147,  133,  147,  147,  147,  147,  147,  147,
        0,  145,    0,    0,  144,   30,  147,  147,  147,  147,
       34,   36,  147,  147,  147,  147,   43,   58,  147,   46,
      147,  147,  147,  147,  147,  147,  147,   50,  147,  147,
       62,  147,  147,  147,  147,  147,   71,  147,   72,  147,
      147,   75,  147,  147,  147,   79,   83,   84,  147,  147,
      147,  147,  147,  147,  147,   92,  147,   93,  147,  147,
      147,  147,  147,  147,  147,  147,  147,  147,  147,  147,

      147,  147,  115,  147,  147,  147,  147,  129,  119,  147,
      147,  147,  117,  147,  147,  147,  147,  147,  147,  142,
      132,  147,  147,  147,  147,  147,   10,    9,    8,  147,
       12,   14,    0,  144,   32,  147,  147,  147,   38,  147,
      147,  147,  147,  147,  147,  147,  147,   54,  147,  147,
      147,  147,  147,  147,  147,  147,   69,  147,  147,   73,
       74,  147,  147,  147,   85,  147,  147,   89,  147,  147,
      147,   95,  147,  147,  147,  100,  101,  147,  147,  104,
      147,  105,  147,  147,  106,  147,  147,  147,  147,  147,
      114,  147,  147,  147,  147,  147,  147,  147,  147,  147,

      147,  135,  147,  136,  147,   11,  147,   13,  147,   31,
       35,   37,  147,  147,   41,  147,  147,  147,  147,   47,
      147,  147,  147,  147,  147,   59,   60,  147,  147,  147,
       68,  147,  147,  147,  147,  147,  147,  147,  147,   90,
       96,   91,  147,  147,   97,  147,  147,  111,  147,  147,
      110,  147,  147,  116,  113,  120,  121,  147,  125,  147,
      147,  147,  147,  147,  147,  147,  147,  137,    7,  147,
       39,  147,   44,  147,  147,  147,  147,  147,  147,   49,
       53,  147,  147,   65,  147,  147,  147,   66,  147,  147,
      147,  147,  147,  147,  147,  147,  147,  147,  147,  147,

      147,  147,  147,  124,  147,  147,  147,  122,  147,  147,
      147,  147,  147,  147,   42,  147,  147,  147,  147,  147,
      147,  147,   64,   67,  147,   77,  147,  147,  147,   78,
      147,  147,   98,   99,  147,  102,  147,  138,  147,  147,
      147,  147,  147,  123,  147,  147,  147,  147,   40,  147,
      147,  147,   48,  147,  147,   61,   70,  147,  147,  147,
      147,   88,  147,  147,  147,  112,  126,  147,  147,  134,
      147,  131,  147,  147,   57,  147,   55,  147,  147,  147,
      147,  147,  108,  147,  147,  147,  128,  147,  147,   45,
      147,   56,  147,  147,  147,  147,  109,  107,  127,  130,

      147,  147,  147,  147,  147,  147,  147,  147,  147,  147,
      147,  147,  147,   52,  147,  147,  147,  147,  147,  147,
      147,  147,  147,   33,  147,  147,  147,  147,  147,  147,
      147,  147,   80,   81,   82,  147,  147,  141,    0
    } ;

static yyconst int yy_ec[256] =
    {   0,
        1,    1,    1,    1,    1,    1,    1,    1,    2,    3,
        1,    2,    2,    1,    1,    1,    1,    1,    1,    1,
Christophe Geuzaine's avatar
 
Christophe Geuzaine committed
        1,    2,    4,    5,    1,    1,    1,    6,    7,    1,
        1,    8,    9,    1,   10,   11,   12,   13,   14,   15,
       16,   17,   17,   17,   17,   17,   17,   18,   19,   20,
       21,   22,    1,    1,   23,   24,   25,   26,   27,   28,
       29,   30,   31,   32,   33,   34,   35,   36,   37,   38,
       39,   40,   41,   42,   43,   44,   45,   39,   39,   39,
Christophe Geuzaine's avatar
 
Christophe Geuzaine committed
        1,    1,    1,    1,   46,    1,   47,   48,   49,   50,
Christophe Geuzaine's avatar
 
Christophe Geuzaine committed

Christophe Geuzaine's avatar
 
Christophe Geuzaine committed
       51,   52,   53,   54,   55,   39,   56,   57,   58,   59,
       60,   61,   62,   63,   64,   65,   66,   67,   68,   69,
       70,   71,    1,   72,    1,    1,    1,    1,    1,    1,
        1,    1,    1,    1,    1,    1,    1,    1,    1,    1,
        1,    1,    1,    1,    1,    1,    1,    1,    1,    1,
        1,    1,    1,    1,    1,    1,    1,    1,    1,    1,
        1,    1,    1,    1,    1,    1,    1,    1,    1,    1,
        1,    1,    1,    1,    1,    1,    1,    1,    1,    1,
        1,    1,    1,    1,    1,    1,    1,    1,    1,    1,
        1,    1,    1,    1,    1,    1,    1,    1,    1,    1,

        1,    1,    1,    1,    1,    1,    1,    1,    1,    1,
        1,    1,    1,    1,    1,    1,    1,    1,    1,    1,
        1,    1,    1,    1,    1,    1,    1,    1,    1,    1,
        1,    1,    1,    1,    1,    1,    1,    1,    1,    1,
        1,    1,    1,    1,    1,    1,    1,    1,    1,    1,
        1,    1,    1,    1,    1
    } ;

Christophe Geuzaine's avatar
 
Christophe Geuzaine committed
static yyconst int yy_meta[73] =
Christophe Geuzaine's avatar
 
Christophe Geuzaine committed
        1,    1,    1,    1,    1,    1,    1,    1,    1,    1,
        1,    1,    2,    2,    2,    2,    2,    1,    1,    1,
        1,    1,    2,    2,    2,    2,    2,    2,    2,    2,
        2,    2,    2,    2,    2,    2,    2,    2,    2,    2,
        2,    2,    2,    2,    2,    2,    2,    2,    2,    2,
        2,    2,    2,    2,    2,    2,    2,    2,    2,    2,
Christophe Geuzaine's avatar
 
Christophe Geuzaine committed
        2,    2,    2,    2,    2,    2,    2,    2,    2,    2,
        2,    1
Christophe Geuzaine's avatar
 
Christophe Geuzaine committed
static yyconst short int yy_base[641] =
Christophe Geuzaine's avatar
 
Christophe Geuzaine committed
        0,    0,  761,  762,  762,  762,  739,  762,  753,  762,
      737,   64,   65,   63,   75,   77,  762,  762,  736,  735,
      734,   46,   48,   65,   66,   65,   80,   67,   45,   90,
        0,  695,   92,   46,  687,  689,  101,   94,  108,  135,
      687,  690,  698,  676,  762,  762,  762,  762,  762,  762,
      762,  736,  170,  762,  762,  762,  177,  192,  201,  762,
      762,  762,    0,  686,  690,  695,  688,  106,  681,  670,
      674,  681,   79,  683,  690,  673,  166,  678,  677,  686,
      671,  674,  680,  680,  170,  680,  676,  666,  665,  661,
      664,  681,  656,  673,  669,  661,  656,  674,    0,  650,

      654,  102,  654,  653,  115,  680,  660,  646,  658,  644,
      636,    0,   35,  172,  121,  646,   32,  639,  646,  642,
      642,  184,  637,  636,  635,  639,    0,    0,  661,  636,
      631,  643,  645,  636,  633,  621,  762,  762,  235,  240,
      249,  255,  260,  624,  640,  171,  627,  626,  621,  626,
      627,  622,  619,  622,  620,  620,  613,  626,  623,  613,
      140,  609,  617,  619,  622,  600,  610,  611,  149,  608,
      599,    0,  600,  598,  604,  600,  609,    0,  609,  627,
      612,  605,  603,  602,  592,  624,  599,  584,  614,  596,
      593,  594,  630,  582,  596,  575,  592,  588,  591,  573,

      577,  582,  575,  586,  567,  580,  571,  576,  578,  567,
      560,  578,  573,  555,  568,  570,  565,  564,  553,  254,
      565,  558,  588,  560,  562,  565,  552,  551,  543,  232,
      269,  287,  296,  301,  308,    0,  544,  547,  551,  558,
        0,  589,  556,  547,  550,  550,    0,    0,  533,    0,
      551,  540,  533,  532,  539,  536,  542,    0,  526,  525,
        0,  534,  527,  527,  534,  530,    0,  518,    0,  533,
      519,    0,  516,  534,  532,    0,    0,    0,  513,  537,
      513,  511,  514,  510,  507,    0,  558,    0,  159,  513,
      505,  505,  509,  511,  514,  509,  498,  499,  517,  497,

      494,  495,    0,  499,  493,  490,  504,    0,    0,  490,
      493,  492,    0,  503,  486,  497,  498,  499,  494,    0,
        0,  480,  473,  478,  488,  482,    0,  482,    0,  487,
      480,    0,  313,  318,  491,  471,  475,  474,    0,  483,
      472,  467,  110,  472,  479,  476,  475,  483,  465,  472,
      467,  470,  469,  470,  168,  455,    0,  467,  466,    0,
        0,  460,  199,  457,    0,  475,  448,    0,  452,  446,
      455,    0,  461,  452,  446,    0,    0,  454,  455,    0,
      444,    0,  461,  446,    0,  448,  448,  450,  438,  445,
        0,  444,  443,  428,  427,  440,  433,  424,  439,  422,

      432,    0,  284,    0,  434,    0,  431,    0,  428,    0,
        0,  467,  416,  429,    0,  416,  419,  420,  411,    0,
      416,  427,  422,  403,  412,    0,    0,  423,  191,  414,
        0,  413,  416,  406,  257,  442,  398,  426,  411,    0,
        0,    0,  402,  389,    0,  394,  411,    0,  396,  405,
        0,  391,  399,    0,    0,    0,    0,  401,    0,  400,
      404,  384,  398,  385,  387,  391,  398,    0,    0,  379,
        0,  383,    0,  372,  388,  400,  388,  389,  389,    0,
        0,  389,  370,    0,  370,  384,  385,    0,  372,  398,
      393,  386,  376,  392,  376,  368,  372,  359,  364,  366,

      351,  354,  358,    0,  361,  350,  351,    0,  343,  355,
      352,  345,  355,  345,    0,  383,  346,  342,  353,  346,
      337,  354,    0,    0,  341,    0,  362,  361,  372,    0,
      373,  330,    0,    0,  339,    0,  342,    0,  337,  340,
      321,  334,  337,    0,  337,  331,  334,  347,    0,  323,
      324,  326,    0,  329,  328,    0,    0,  338,  337,  346,
      333,    0,  325,  310,  312,    0,    0,  304,  320,    0,
      304,    0,  307,  298,    0,  302,    0,  301,  318,  317,
      316,  330,    0,  309,  300,  307,    0,  306,  291,    0,
      290,    0,  310,  309,  308,  314,    0,    0,    0,    0,

      295,  294,  321,  320,  319,  309,  284,  294,  302,  300,
      299,  292,  278,    0,  278,  267,  266,  257,  233,  259,
      256,  247,  236,    0,  223,  202,  185,  172,  143,  123,
       97,   96,    0,    0,    0,   78,   80,    0,  762,   96
Christophe Geuzaine's avatar
 
Christophe Geuzaine committed
static yyconst short int yy_def[641] =
Christophe Geuzaine's avatar
 
Christophe Geuzaine committed
      639,    1,  639,  639,  639,  639,  639,  639,  639,  639,
      639,  639,  639,  639,  639,  639,  639,  639,  639,  639,
      639,  640,  640,  640,  640,  640,  640,  640,  640,  640,
      640,  640,  640,  640,  640,  640,  640,  640,  640,  640,
      640,  640,  640,  639,  639,  639,  639,  639,  639,  639,
      639,  639,  639,  639,  639,  639,  639,  639,  639,  639,
      639,  639,  640,  640,  640,  640,  640,  640,  640,  640,
      640,  640,  640,  640,  640,  640,  640,  640,  640,  640,
      640,  640,  640,  640,  640,  640,  640,  640,  640,  640,
      640,  640,  640,  640,  640,  640,  640,  640,  640,  640,

      640,  640,  640,  640,  640,  640,  640,  640,  640,  640,
      640,  640,  640,  640,  640,  640,  640,  640,  640,  640,
      640,  640,  640,  640,  640,  640,  640,  640,  640,  640,
      640,  640,  640,  640,  640,  640,  639,  639,  639,  639,
      639,  639,  639,  640,  640,  640,  640,  640,  640,  640,
      640,  640,  640,  640,  640,  640,  640,  640,  640,  640,
      640,  640,  640,  640,  640,  640,  640,  640,  640,  640,
      640,  640,  640,  640,  640,  640,  640,  640,  640,  640,
      640,  640,  640,  640,  640,  640,  640,  640,  640,  640,
      640,  640,  640,  640,  640,  640,  640,  640,  640,  640,

      640,  640,  640,  640,  640,  640,  640,  640,  640,  640,
      640,  640,  640,  640,  640,  640,  640,  640,  640,  640,
      640,  640,  640,  640,  640,  640,  640,  640,  640,  640,
      639,  639,  639,  639,  639,  640,  640,  640,  640,  640,
      640,  640,  640,  640,  640,  640,  640,  640,  640,  640,
      640,  640,  640,  640,  640,  640,  640,  640,  640,  640,
      640,  640,  640,  640,  640,  640,  640,  640,  640,  640,
      640,  640,  640,  640,  640,  640,  640,  640,  640,  640,
      640,  640,  640,  640,  640,  640,  640,  640,  640,  640,
      640,  640,  640,  640,  640,  640,  640,  640,  640,  640,

      640,  640,  640,  640,  640,  640,  640,  640,  640,  640,
      640,  640,  640,  640,  640,  640,  640,  640,  640,  640,
      640,  640,  640,  640,  640,  640,  640,  640,  640,  640,
      640,  640,  639,  639,  640,  640,  640,  640,  640,  640,
      640,  640,  640,  640,  640,  640,  640,  640,  640,  640,
      640,  640,  640,  640,  640,  640,  640,  640,  640,  640,
      640,  640,  640,  640,  640,  640,  640,  640,  640,  640,
      640,  640,  640,  640,  640,  640,  640,  640,  640,  640,
      640,  640,  640,  640,  640,  640,  640,  640,  640,  640,
      640,  640,  640,  640,  640,  640,  640,  640,  640,  640,

      640,  640,  640,  640,  640,  640,  640,  640,  640,  640,
      640,  640,  640,  640,  640,  640,  640,  640,  640,  640,
      640,  640,  640,  640,  640,  640,  640,  640,  640,  640,
      640,  640,  640,  640,  640,  640,  640,  640,  640,  640,
      640,  640,  640,  640,  640,  640,  640,  640,  640,  640,
      640,  640,  640,  640,  640,  640,  640,  640,  640,  640,
      640,  640,  640,  640,  640,  640,  640,  640,  640,  640,
      640,  640,  640,  640,  640,  640,  640,  640,  640,  640,
      640,  640,  640,  640,  640,  640,  640,  640,  640,  640,
      640,  640,  640,  640,  640,  640,  640,  640,  640,  640,

      640,  640,  640,  640,  640,  640,  640,  640,  640,  640,
      640,  640,  640,  640,  640,  640,  640,  640,  640,  640,
      640,  640,  640,  640,  640,  640,  640,  640,  640,  640,
      640,  640,  640,  640,  640,  640,  640,  640,  640,  640,
      640,  640,  640,  640,  640,  640,  640,  640,  640,  640,
      640,  640,  640,  640,  640,  640,  640,  640,  640,  640,
      640,  640,  640,  640,  640,  640,  640,  640,  640,  640,
      640,  640,  640,  640,  640,  640,  640,  640,  640,  640,
      640,  640,  640,  640,  640,  640,  640,  640,  640,  640,
      640,  640,  640,  640,  640,  640,  640,  640,  640,  640,

      640,  640,  640,  640,  640,  640,  640,  640,  640,  640,
      640,  640,  640,  640,  640,  640,  640,  640,  640,  640,
      640,  640,  640,  640,  640,  640,  640,  640,  640,  640,
      640,  640,  640,  640,  640,  640,  640,  640,    0,  639
Christophe Geuzaine's avatar
 
Christophe Geuzaine committed
static yyconst short int yy_nxt[835] =
        4,    5,    6,    7,    8,    9,   10,   11,   12,   13,
Christophe Geuzaine's avatar
 
Christophe Geuzaine committed
       14,   15,   16,   16,   16,   16,   16,   17,   18,   19,
       20,   21,   22,   23,   24,   25,   26,   27,   28,   29,
Christophe Geuzaine's avatar
 
Christophe Geuzaine committed
       30,   31,   32,   33,   34,   35,   36,   37,   31,   38,
Christophe Geuzaine's avatar
 
Christophe Geuzaine committed
       39,   40,   41,   42,   31,   31,   31,   31,   31,   31,
       31,   31,   31,   31,   31,   31,   31,   31,   43,   31,
Christophe Geuzaine's avatar
 
Christophe Geuzaine committed
       31,   31,   31,   31,   31,   31,   31,   31,   31,   31,
Christophe Geuzaine's avatar
 
Christophe Geuzaine committed
       31,   44,   48,   52,   50,   53,   53,   53,   53,   53,
Christophe Geuzaine's avatar
 
Christophe Geuzaine committed
      210,  201,   54,  106,   49,   51,   55,   57,   69,   58,
       58,   58,   58,   58,   64,   56,  211,   63,   70,   95,

      202,   92,   65,   59,   96,  107,  638,   71,   66,   67,
       68,   73,  637,   72,   97,   74,   78,   93,   75,   76,
       79,   82,  636,   83,   77,   98,   86,   59,   80,   94,
       84,   81,  635,   85,   87,  154,   88,   89,  102,   90,
      116,   99,  103,  155,  117,   91,  104,  110,  100,  127,
      128,  105,  148,  118,  111,  112,  416,  113,  634,  119,
      114,  120,  121,  115,  417,  129,  189,  193,  122,  123,
      149,  190,  124,  125,  194,  207,  264,  126,  633,  265,
      208,  130,   53,   53,   53,   53,   53,  255,  131,  140,
      140,  140,  140,  140,  132,  238,  139,  133,  373,  374,

      256,  632,   57,  141,   58,   58,   58,   58,   58,  142,
      142,  239,  240,  143,  143,  143,  143,  143,   59,  159,
      139,  631,  160,  161,  171,  162,  203,  141,  204,  163,
      172,  429,  430,  435,  173,  205,  436,  216,  630,  206,
      217,  484,   59,  231,  231,  485,  218,  232,  232,  232,
      232,  232,  140,  140,  140,  140,  140,  234,  234,  629,
      628,  235,  235,  235,  235,  235,  233,  143,  143,  143,
      143,  143,  143,  143,  143,  143,  143,  627,  314,  490,
      327,  232,  232,  232,  232,  232,  626,  491,  328,  625,
      233,  315,  329,  316,  330,  331,  624,  623,  332,  232,

      232,  232,  232,  232,  333,  333,  622,  621,  334,  334,
      334,  334,  334,  235,  235,  235,  235,  235,  620,  317,
      235,  235,  235,  235,  235,  334,  334,  334,  334,  334,
      334,  334,  334,  334,  334,  466,  619,  618,  617,  616,
      467,  615,  614,  613,  612,  611,  610,  609,  608,  607,
      606,  605,  604,  603,  602,  601,  600,  599,  598,  597,
      596,  595,  594,  593,  592,  591,  590,  589,  588,  587,
      586,  585,  584,  583,  582,  581,  580,  579,  578,  577,
      576,  575,  574,  573,  572,  571,  570,  569,  568,  567,
      566,  565,  564,  563,  562,  561,  560,  559,  558,  557,

      556,  555,  554,  553,  552,  551,  550,  549,  548,  547,
      546,  545,  544,  543,  542,  541,  540,  539,  538,  537,
      536,  535,  534,  533,  532,  531,  530,  529,  528,  527,
      526,  525,  524,  523,  522,  521,  520,  519,  518,  517,
      516,  515,  514,  513,  512,  511,  510,  509,  508,  507,
      506,  505,  504,  503,  502,  501,  500,  499,  498,  497,
      496,  495,  494,  493,  492,  489,  488,  487,  486,  483,
      482,  481,  480,  479,  478,  477,  476,  475,  474,  473,
      472,  471,  470,  469,  468,  465,  464,  463,  462,  461,
      460,  459,  458,  457,  456,  455,  454,  453,  452,  451,

      450,  449,  448,  447,  446,  445,  444,  443,  442,  441,
      440,  439,  438,  437,  434,  433,  432,  431,  428,  427,
      426,  425,  424,  423,  422,  421,  420,  419,  418,  415,
      414,  413,  412,  411,  410,  409,  408,  407,  406,  405,
      404,  403,  402,  401,  400,  399,  398,  397,  396,  395,
      394,  393,  392,  391,  390,  389,  388,  387,  386,  385,
      384,  383,  382,  381,  380,  379,  378,  377,  376,  375,
      372,  371,  370,  369,  368,  367,  366,  365,  364,  363,
      362,  361,  360,  359,  358,  357,  356,  355,  354,  353,
      352,  351,  350,  349,  348,  347,  346,  345,  344,  343,

      342,  341,  340,  339,  338,  337,  336,  335,  326,  325,
      324,  323,  322,  321,  320,  319,  318,  313,  312,  311,
      310,  309,  308,  307,  306,  305,  304,  303,  302,  301,
      300,  299,  298,  297,  296,  295,  294,  293,  292,  291,
      290,  289,  288,  287,  286,  285,  284,  283,  282,  281,
      280,  279,  278,  277,  276,  275,  274,  273,  272,  271,
      270,  269,  268,  267,  266,  263,  262,  261,  260,  259,
      258,  257,  254,  253,  252,  251,  250,  249,  248,  247,
      246,  245,  244,  243,  242,  241,  237,  236,  230,  229,
      228,  227,  226,  225,  224,  223,  222,  221,  220,  219,

      215,  214,  213,  212,  209,  200,  199,  198,  197,  196,
      195,  192,  191,  188,  187,  186,  185,  184,  183,  182,
      181,  180,  179,  178,  177,  176,  175,  174,  170,  169,
      168,  167,  166,  165,  164,  158,  157,  156,  153,  152,
      151,  150,  147,  146,  145,  144,  138,  137,  136,  135,
      134,  109,  108,  101,   62,   61,   60,   47,   46,   45,
      639,    3,  639,  639,  639,  639,  639,  639,  639,  639,
      639,  639,  639,  639,  639,  639,  639,  639,  639,  639,
      639,  639,  639,  639,  639,  639,  639,  639,  639,  639,
      639,  639,  639,  639,  639,  639,  639,  639,  639,  639,

      639,  639,  639,  639,  639,  639,  639,  639,  639,  639,
      639,  639,  639,  639,  639,  639,  639,  639,  639,  639,
      639,  639,  639,  639,  639,  639,  639,  639,  639,  639,
      639,  639,  639,  639
Christophe Geuzaine's avatar
 
Christophe Geuzaine committed
static yyconst short int yy_chk[835] =
    {   0,
        1,    1,    1,    1,    1,    1,    1,    1,    1,    1,
        1,    1,    1,    1,    1,    1,    1,    1,    1,    1,
        1,    1,    1,    1,    1,    1,    1,    1,    1,    1,
        1,    1,    1,    1,    1,    1,    1,    1,    1,    1,
        1,    1,    1,    1,    1,    1,    1,    1,    1,    1,
        1,    1,    1,    1,    1,    1,    1,    1,    1,    1,
        1,    1,    1,    1,    1,    1,    1,    1,    1,    1,
Christophe Geuzaine's avatar
 
Christophe Geuzaine committed
        1,    1,   12,   14,   13,   14,   14,   14,   14,   14,
Christophe Geuzaine's avatar
 
Christophe Geuzaine committed
      117,  113,   15,   34,   12,   13,   15,   16,   23,   16,
       16,   16,   16,   16,   22,   15,  117,  640,   23,   29,
Christophe Geuzaine's avatar
 
Christophe Geuzaine committed

Christophe Geuzaine's avatar
 
Christophe Geuzaine committed
      113,   28,   22,   16,   29,   34,  637,   23,   22,   22,
       22,   24,  636,   23,   29,   24,   25,   28,   24,   24,
       25,   26,  632,   26,   24,   30,   27,   16,   25,   28,
       26,   25,  631,   26,   27,   73,   27,   27,   33,   27,
Christophe Geuzaine's avatar
 
Christophe Geuzaine committed
       38,   30,   33,   73,   38,   27,   33,   37,   30,   40,
Christophe Geuzaine's avatar
 
Christophe Geuzaine committed
       40,   33,   68,   38,   37,   37,  343,   37,  630,   38,
       37,   39,   39,   37,  343,   40,  102,  105,   39,   39,
       68,  102,   39,   39,  105,  115,  169,   39,  629,  169,
      115,   40,   53,   53,   53,   53,   53,  161,   40,   57,
       57,   57,   57,   57,   40,  146,   53,   40,  289,  289,

      161,  628,   58,   57,   58,   58,   58,   58,   58,   59,
       59,  146,  146,   59,   59,   59,   59,   59,   58,   77,
       53,  627,   77,   77,   85,   77,  114,   57,  114,   77,
       85,  355,  355,  363,   85,  114,  363,  122,  626,  114,
      122,  429,   58,  139,  139,  429,  122,  139,  139,  139,
      139,  139,  140,  140,  140,  140,  140,  141,  141,  625,
      623,  141,  141,  141,  141,  141,  140,  142,  142,  142,
      142,  142,  143,  143,  143,  143,  143,  622,  220,  435,
      230,  231,  231,  231,  231,  231,  621,  435,  230,  620,
      140,  220,  230,  220,  230,  230,  619,  618,  230,  232,

      232,  232,  232,  232,  233,  233,  617,  616,  233,  233,
      233,  233,  233,  234,  234,  234,  234,  234,  615,  220,
      235,  235,  235,  235,  235,  333,  333,  333,  333,  333,
      334,  334,  334,  334,  334,  403,  613,  612,  611,  610,
      403,  609,  608,  607,  606,  605,  604,  603,  602,  601,
      596,  595,  594,  593,  591,  589,  588,  586,  585,  584,
      582,  581,  580,  579,  578,  576,  574,  573,  571,  569,
      568,  565,  564,  563,  561,  560,  559,  558,  555,  554,
      552,  551,  550,  548,  547,  546,  545,  543,  542,  541,
      540,  539,  537,  535,  532,  531,  529,  528,  527,  525,

      522,  521,  520,  519,  518,  517,  516,  514,  513,  512,
      511,  510,  509,  507,  506,  505,  503,  502,  501,  500,
      499,  498,  497,  496,  495,  494,  493,  492,  491,  490,
      489,  487,  486,  485,  483,  482,  479,  478,  477,  476,
      475,  474,  472,  470,  467,  466,  465,  464,  463,  462,
      461,  460,  458,  453,  452,  450,  449,  447,  446,  444,
      443,  439,  438,  437,  436,  434,  433,  432,  430,  428,
      425,  424,  423,  422,  421,  419,  418,  417,  416,  414,
      413,  412,  409,  407,  405,  401,  400,  399,  398,  397,
      396,  395,  394,  393,  392,  390,  389,  388,  387,  386,

      384,  383,  381,  379,  378,  375,  374,  373,  371,  370,
      369,  367,  366,  364,  362,  359,  358,  356,  354,  353,
      352,  351,  350,  349,  348,  347,  346,  345,  344,  342,
      341,  340,  338,  337,  336,  335,  331,  330,  328,  326,
      325,  324,  323,  322,  319,  318,  317,  316,  315,  314,
      312,  311,  310,  307,  306,  305,  304,  302,  301,  300,
      299,  298,  297,  296,  295,  294,  293,  292,  291,  290,
      287,  285,  284,  283,  282,  281,  280,  279,  275,  274,
      273,  271,  270,  268,  266,  265,  264,  263,  262,  260,
      259,  257,  256,  255,  254,  253,  252,  251,  249,  246,

      245,  244,  243,  242,  240,  239,  238,  237,  229,  228,
      227,  226,  225,  224,  223,  222,  221,  219,  218,  217,
      216,  215,  214,  213,  212,  211,  210,  209,  208,  207,
      206,  205,  204,  203,  202,  201,  200,  199,  198,  197,
      196,  195,  194,  193,  192,  191,  190,  189,  188,  187,
      186,  185,  184,  183,  182,  181,  180,  179,  177,  176,
      175,  174,  173,  171,  170,  168,  167,  166,  165,  164,
      163,  162,  160,  159,  158,  157,  156,  155,  154,  153,
      152,  151,  150,  149,  148,  147,  145,  144,  136,  135,
      134,  133,  132,  131,  130,  129,  126,  125,  124,  123,

      121,  120,  119,  118,  116,  111,  110,  109,  108,  107,
      106,  104,  103,  101,  100,   98,   97,   96,   95,   94,
       93,   92,   91,   90,   89,   88,   87,   86,   84,   83,
       82,   81,   80,   79,   78,   76,   75,   74,   72,   71,
       70,   69,   67,   66,   65,   64,   52,   44,   43,   42,
       41,   36,   35,   32,   21,   20,   19,   11,    9,    7,
        3,  639,  639,  639,  639,  639,  639,  639,  639,  639,
      639,  639,  639,  639,  639,  639,  639,  639,  639,  639,
      639,  639,  639,  639,  639,  639,  639,  639,  639,  639,
      639,  639,  639,  639,  639,  639,  639,  639,  639,  639,

      639,  639,  639,  639,  639,  639,  639,  639,  639,  639,
      639,  639,  639,  639,  639,  639,  639,  639,  639,  639,
      639,  639,  639,  639,  639,  639,  639,  639,  639,  639,
      639,  639,  639,  639
    } ;

static yy_state_type yy_last_accepting_state;
static char *yy_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 yymore() yymore_used_but_not_detected
#define YY_MORE_ADJ 0
char *yytext;
#line 1 "Gmsh.l"
#define INITIAL 0
#line 2 "Gmsh.l"
Christophe Geuzaine's avatar
 
Christophe Geuzaine committed
// $Id: Gmsh.yy.cpp,v 1.335 2007-11-08 19:30:32 geuzaine Exp $
Christophe Geuzaine's avatar
Christophe Geuzaine committed
// Copyright (C) 1997-2007 C. Geuzaine, J.-F. Remacle
//
// This program is free software; you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation; either version 2 of the License, or
// (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with this program; if not, write to the Free Software
// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
// USA.
// 
Christophe Geuzaine's avatar
 
Christophe Geuzaine committed
// Please report all bugs and problems to <gmsh@geuz.org>.
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <math.h>

#include "Gmsh.h"
Christophe Geuzaine's avatar
 
Christophe Geuzaine committed
char yyname[256] = "";
int  yylineno = 1;
int  yyerrorstate = 0;
Christophe Geuzaine's avatar
 
Christophe Geuzaine committed
int  yyviewindex = 0;

void   parsestring(char endchar);
char  *strsave(char *ptr);
void   skipcomments(void);
void   skipline(void);

#define YY_ALWAYS_INTERACTIVE 1

#define YY_INPUT(buf,result,max_size)					\
   if ( yy_current_buffer->yy_is_interactive )				\
     {									\
       int c = '*', n;							\
       for ( n = 0; n < max_size &&					\
	       (c = getc( yyin )) != EOF && c != '\n'; ++n )		\
	 buf[n] = (char) c;						\
       if ( c == '\n' ){						\
	 buf[n++] = (char) c;						\
	 yylineno++;							\
       }								\
       if ( c == EOF && ferror( yyin ) )				\
Christophe Geuzaine's avatar
 
Christophe Geuzaine committed
	 Msg(FATAL, "Input in flex scanner failed");			\
       result = n;							\
     }									\
   else if ( ((result = fread( buf, 1, max_size, yyin )) == 0)		\
	     && ferror( yyin ) )					\
Christophe Geuzaine's avatar
 
Christophe Geuzaine committed
     Msg(FATAL, "Input in flex scanner failed");
Christophe Geuzaine's avatar
 
Christophe Geuzaine committed
#line 823 "Gmsh.yy.cpp"

/* Macros after this point can all be overridden by user definitions in
 * section 1.
 */

#ifndef YY_SKIP_YYWRAP
#ifdef __cplusplus
extern "C" int yywrap YY_PROTO(( void ));
#else
extern int yywrap YY_PROTO(( void ));
#endif
#endif

#ifndef YY_NO_UNPUT
static void yyunput YY_PROTO(( int c, char *buf_ptr ));
#endif

#ifndef yytext_ptr
static void yy_flex_strncpy YY_PROTO(( char *, yyconst char *, int ));
#endif

#ifdef YY_NEED_STRLEN
static int yy_flex_strlen YY_PROTO(( yyconst char * ));
#endif

#ifndef YY_NO_INPUT
#ifdef __cplusplus
static int yyinput YY_PROTO(( void ));
#else
static int input YY_PROTO(( void ));
#endif
#endif

#if YY_STACK_USED
static int yy_start_stack_ptr = 0;
static int yy_start_stack_depth = 0;
static int *yy_start_stack = 0;
#ifndef YY_NO_PUSH_STATE
static void yy_push_state YY_PROTO(( int new_state ));
#endif
#ifndef YY_NO_POP_STATE
static void yy_pop_state YY_PROTO(( void ));
#endif
#ifndef YY_NO_TOP_STATE
static int yy_top_state YY_PROTO(( void ));
#endif

#else
#define YY_NO_PUSH_STATE 1
#define YY_NO_POP_STATE 1
#define YY_NO_TOP_STATE 1
#endif

#ifdef YY_MALLOC_DECL
YY_MALLOC_DECL
#else
#if __STDC__
#ifndef __cplusplus
#include <stdlib.h>
#endif
#else
/* Just try to get by without declaring the routines.  This will fail
 * miserably on non-ANSI systems for which sizeof(size_t) != sizeof(int)
 * or sizeof(void*) != sizeof(int).
 */
#endif
#endif

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

/* Copy whatever the last rule matched to the standard output. */

#ifndef ECHO
/* This used to be an fputs(), but since the string might contain NUL's,
 * we now use fwrite().
 */
#define ECHO (void) fwrite( yytext, yyleng, 1, yyout )
#endif

/* Gets input and stuffs it into "buf".  number of characters read, or YY_NULL,
 * is returned in "result".
 */
#ifndef YY_INPUT
#define YY_INPUT(buf,result,max_size) \
	if ( yy_current_buffer->yy_is_interactive ) \
		{ \
		int c = '*', n; \
		for ( n = 0; n < max_size && \
			     (c = getc( yyin )) != EOF && c != '\n'; ++n ) \
			buf[n] = (char) c; \
		if ( c == '\n' ) \
			buf[n++] = (char) c; \
		if ( c == EOF && ferror( yyin ) ) \
			YY_FATAL_ERROR( "input in flex scanner failed" ); \
		result = n; \
		} \
	else if ( ((result = fread( buf, 1, max_size, yyin )) == 0) \
		  && ferror( yyin ) ) \
		YY_FATAL_ERROR( "input in flex scanner failed" );
#endif

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

/* Number of entries by which start-condition stack grows. */
#ifndef YY_START_STACK_INCR
#define YY_START_STACK_INCR 25
#endif

/* Report a fatal error. */
#ifndef YY_FATAL_ERROR
#define YY_FATAL_ERROR(msg) yy_fatal_error( msg )
#endif

/* Default declaration of generated scanner - a define so the user can
 * easily add parameters.
 */
#ifndef YY_DECL
#define YY_DECL int yylex YY_PROTO(( void ))
#endif

/* Code executed at the beginning of each rule, after yytext and yyleng
 * have been set up.
 */
#ifndef YY_USER_ACTION
#define YY_USER_ACTION
#endif

/* Code executed at the end of each rule. */
#ifndef YY_BREAK
#define YY_BREAK break;
#endif

#define YY_RULE_SETUP \
	YY_USER_ACTION

YY_DECL
	{
	register yy_state_type yy_current_state;
Christophe Geuzaine's avatar
 
Christophe Geuzaine committed
	register char *yy_cp, *yy_bp;
Christophe Geuzaine's avatar
 
Christophe Geuzaine committed
#line 80 "Gmsh.l"
Christophe Geuzaine's avatar
 
Christophe Geuzaine committed
#line 977 "Gmsh.yy.cpp"

	if ( yy_init )
		{
		yy_init = 0;

#ifdef YY_USER_INIT
		YY_USER_INIT;
#endif

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

		if ( ! yyin )
			yyin = stdin;

		if ( ! yyout )
			yyout = stdout;

		if ( ! yy_current_buffer )
			yy_current_buffer =
				yy_create_buffer( yyin, YY_BUF_SIZE );

		yy_load_buffer_state();
		}