#define yyFlexLexer JHTMLFlexLexer
#define yywrap JHTMLwrap

#line 5 "code/JHTMLScannerL.cc"
/* A lexical scanner generated by flex */

/* Scanner skeleton version:
 * $Header: /home/daffy/u0/vern/flex/RCS/flex.skl,v 2.91 96/09/10 16:58:48 vern Exp $
 */

#define FLEX_SCANNER
#define YY_FLEX_MAJOR_VERSION 2
#define YY_FLEX_MINOR_VERSION 5



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


#ifdef __cplusplus

#include <stdlib.h>
class istream;
#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;

#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_RESTORE_YY_MORE_OFFSET \
		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
	{
	istream* 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
	};


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



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;
#define yytext_ptr yytext
#define YY_INTERACTIVE

#include <FlexLexer.h>
int yyFlexLexer::yylex()
	{
	LexerError( "yyFlexLexer::yylex invoked but %option yyclass used" );
	return 0;
	}

#define YY_DECL int JHTMLScanner::yylex()


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

#define YY_NUM_RULES 131
#define YY_END_OF_BUFFER 132
static yyconst short int yy_accept[588] =
    {   0,
        0,    0,    0,    0,    0,    0,   28,   28,    0,    0,
        0,    0,    0,    0,    0,    0,    0,    0,  132,    5,
        4,    4,    3,    1,   10,    8,    9,   26,   26,   28,
       27,   14,   11,   13,   12,   17,   16,   15,   21,   18,
       20,   19,   24,   22,   23,   29,   29,   29,   29,   29,
       29,   29,   29,   29,   29,   29,   29,   29,   29,   29,
       29,   29,   29,   29,   29,   29,   29,   29,   29,   29,
       29,   29,   29,   29,   29,    5,    4,    4,    0,    0,
        0,   10,    8,    0,   28,   14,   11,   13,   21,   18,
       24,   30,    0,    0,    0,    0,    0,    0,    0,    0,

        0,    0,    0,    0,    0,    0,    0,    0,    0,    0,
        0,    0,    0,    0,    0,    0,    0,    0,    0,    0,
        0,    0,    0,    0,    0,    0,    0,    0,    0,    0,
        0,    0,    0,    0,    0,    0,    0,    0,    0,    0,
        0,    0,    0,   32,    0,    0,    0,    0,    0,    0,
        0,   31,    0,    0,    0,    0,    0,    0,    0,    0,
        0,    0,    0,    0,    0,    0,    0,    0,    0,    0,
        0,    0,    0,    0,    0,    0,    0,    0,    0,    0,
        0,    0,    0,    0,    0,    0,    0,   25,   30,   30,
        0,    0,    0,    0,    0,    0,    0,    0,   40,    0,

        0,    0,    0,    0,    0,    0,    0,    0,    0,    0,
        0,    0,    0,    0,    0,    0,    0,    0,    0,    0,
        0,    0,    0,    0,    0,   33,    0,    0,    0,    0,
        0,    0,    0,    0,    0,   39,    0,    0,    0,    0,
       41,    0,    0,   32,    0,    0,    0,    0,    0,    0,
        0,   31,    0,    0,    0,    0,   36,    0,    0,    0,
        0,    0,    0,    0,    0,    0,    0,    0,    0,    0,
       38,    0,   37,    0,    0,    0,    0,    0,    0,    0,
       35,    0,    0,   34,    0,    0,    2,    0,   30,    0,
        0,    0,    0,    0,    0,   54,    0,   40,    0,    0,

        0,   55,    0,    0,    0,   56,    0,    0,    0,    0,
        0,    0,   57,    0,    0,    0,    0,   58,    0,    0,
        0,    0,    0,    0,   33,    0,    0,   59,    0,    0,
        0,   44,   46,    0,   39,    0,    0,    0,    0,   41,
       60,    0,    0,    0,    0,    0,    0,   61,    0,   48,
        0,    0,   43,   36,    0,    0,    0,    0,   47,   53,
        0,    0,   62,   52,    0,    0,   42,    0,   38,   45,
       37,   49,   50,   51,    0,    0,    0,    0,    0,    0,
       35,   63,    0,   34,   64,    0,    0,   75,    0,   73,
        0,   74,    0,   54,    0,    0,   76,    0,   55,    0,

       77,    0,   56,    0,    0,   78,    0,    0,    0,   57,
       80,    0,   79,    0,   58,    0,    0,   82,   68,   84,
        0,   83,    0,   59,    0,    0,   70,   44,   46,    0,
        0,    0,   85,    0,   60,    0,    0,    0,   86,   65,
        0,    0,   61,   67,   48,   69,    0,   43,    0,    0,
       87,    0,   47,   53,    0,    0,   62,   52,    0,   66,
       42,   71,   45,   49,   50,   51,   81,   89,   72,    0,
       88,    0,   63,    0,   64,    0,    0,    6,   75,   99,
       73,   98,   74,  100,  101,  103,   76,  102,  105,   77,
      104,  106,  108,   78,  107,  110,  109,   80,  112,   79,

      111,  113,  115,   82,   68,   84,  114,   83,  116,   91,
      117,   70,   90,  126,  119,   85,  118,   95,   94,   96,
      121,   86,   65,  120,   97,   67,   69,   93,  122,  124,
       87,  123,  127,  125,   92,   66,   71,   81,   89,   72,
      129,   88,  128,  130,    7,   99,   98,  100,  101,  103,
      102,  105,  104,  106,  108,  107,  110,  109,  112,  111,
      113,  115,  114,  116,   91,  117,   90,  126,  119,  118,
       95,   94,   96,  121,  120,   97,   93,  122,  124,  123,
      127,  125,   92,  129,  128,  130,    0
    } ;

static yyconst int yy_ec[256] =
    {   0,
        1,    1,    1,    1,    1,    1,    1,    1,    2,    3,
        2,    2,    2,    1,    1,    1,    1,    1,    1,    1,
        1,    1,    1,    1,    1,    1,    1,    1,    1,    1,
        1,    2,    4,    5,    6,    1,    1,    7,    1,    1,
        1,    1,    1,    1,    8,    1,    9,   10,   11,   12,
       13,   14,   10,   10,   10,   10,   10,    1,   15,   16,
       17,   18,    1,    1,   19,    1,   20,    1,   21,    1,
        1,   22,   23,    1,    1,    1,    1,   24,   25,    1,
        1,   26,    1,   27,   28,    1,    1,    1,   29,    1,
        1,    1,    1,    1,    1,    1,   30,   31,   32,   33,

       34,   35,   36,   37,   38,    1,    1,   39,   40,   41,
       42,   43,   44,   45,   46,   47,   48,   49,    1,   50,
       51,   52,    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,    1,    1
    } ;

static yyconst int yy_meta[53] =
    {   0,
        1,    2,    2,    1,    3,    1,    4,    1,    1,    1,
        1,    1,    1,    1,    1,    5,    6,    7,    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
    } ;

static yyconst short int yy_base[602] =
    {   0,
        0,    2,    8,   10,  712,  711,  700,  699,   12,   17,
        3,   18,   30,   36,   17,   20,   54,    0,  716,    0,
       38,  105,  721,    2,    0,   44,  721,  721,  707,    0,
      721,    0,   47,   49,  721,  721,  721,  721,    0,  107,
      721,  721,    0,  721,  721,  721,  101,   95,  682,   90,
       98,  666,  103,  690,  122,  681,  141,  665,  113,   85,
      132,  664,  661,  160,   94,   99,  125,  155,  118,  659,
      102,  161,  128,  175,  176,    0,  180,  214,  697,  697,
      659,    0,  216,  685,    0,    0,  218,  223,    0,  225,
        0,  221,  663,  669,  662,  654,  660,  659,  656,  661,

      672,  661,  654,  646,  650,  657,  650,  642,  646,  647,
      652,  645,  637,  642,  642,  639,  653,  645,  638,  630,
      634,  641,  640,  115,  632,  625,  626,  630,  629,  626,
      616,  630,  143,  620,  617,  625,  611,  627,  620,  612,
      619,  615,  624,  638,  620,  613,  600,  604,  600,  607,
      602,  630,  612,  205,  597,  595,  603,  608,  601,  593,
      604,  597,  597,  594,  588,  584,  583,  588,  585,  592,
      595,  575,  582,  585,  581,  582,  589,  582,  574,  579,
      577,  584,  574,  574,  570,  604,  577,  721,  229,  721,
      572,  561,  563,  577,  565,  566,  565,  570,  587,  553,

      555,  569,  559,  549,  551,  565,  555,  554,  544,  546,
      560,  559,  549,  548,  560,  537,  539,  553,  543,  533,
      532,  534,  531,  539,  546,  560,  533,  534,  533,  540,
      537,  531,  521,  516,  521,  550,  526,  515,  517,  531,
      545,  520,  526,  721,  509,  511,  523,  524,  519,  513,
      503,  721,  505,  504,  515,  504,  531,  506,  496,  498,
      512,  134,  511,  501,  500,  508,  491,  495,  488,  486,
      518,  485,  516,  234,  492,  484,  494,  479,  481,  495,
      509,  484,  474,  506,  481,  474,  721,  500,  502,  480,
      468,  482,  464,  476,  478,  495,  471,  721,  461,  475,

      457,  490,  457,  471,  453,  486,  467,  452,  466,  448,
      450,  462,  479,  469,  445,  459,  441,  474,  441,  440,
      454,  451,  448,  434,  721,  446,  448,  465,  449,  440,
      438,  461,  460,  440,  721,  440,  425,  439,  421,  721,
      454,   31,  421,  435,  427,  416,  418,  448,  420,  446,
      418,  417,  443,  721,  424,  409,  423,  405,  438,  437,
      405,  417,  434,  433,  407,  413,  430,  402,  721,  428,
      721,  427,  426,  425,  403,  397,  391,  389,  403,  385,
      721,  418,  385,  721,  416,  396,  246,  414,  394,  412,
      392,  410,  390,  721,  384,  388,  406,  386,  721,  385,

      403,  383,  721,  382,  381,  399,  379,  375,  377,  721,
      395,  375,  393,  373,  721,  372,  371,  389,  388,  387,
      367,  385,  365,  721,  353,  358,  381,  721,  721,  354,
      360,  359,  377,  357,  721,  185,  376,  355,  373,  372,
      352,  338,  721,  369,  721,  368,  335,  721,  347,  346,
      364,  344,  721,  721,  340,  342,  721,  721,  334,  359,
      721,  358,  721,  721,  721,  721,  357,  356,  355,  335,
      353,  333,  721,  332,  721,  347,  248,  721,  721,  349,
      721,  348,  721,  347,  346,  345,  721,  344,  343,  721,
      342,  341,  340,  721,  339,  338,  337,  721,  336,  721,

      335,  334,  333,  721,  721,  721,  332,  721,  331,  330,
      326,  721,  325,  320,  318,  721,  313,  301,  297,  296,
      294,  721,  721,  214,  207,  721,  721,  199,  197,  178,
      721,  163,  144,  129,  103,  721,  721,  721,  721,  721,
       38,  721,   16,    2,  721,  721,  721,  721,  721,  721,
      721,  721,  721,  721,  721,  721,  721,  721,  721,  721,
      721,  721,  721,  721,  721,  721,  721,  721,  721,  721,
      721,  721,  721,  721,  721,  721,  721,  721,  721,  721,
      721,  721,  721,  721,  721,  721,  721,  251,  258,  265,
      272,  279,  286,  293,  300,  307,  314,  320,  326,  331,

      337
    } ;

static yyconst short int yy_def[602] =
    {   0,
      588,  588,  589,  589,  590,  590,  591,  591,  592,  592,
      593,  593,  594,  594,  595,  595,  587,   17,  587,  596,
      587,  587,  587,  587,  597,  587,  587,  587,  587,  598,
      587,  599,  587,  587,  587,  587,  587,  587,  600,  587,
      587,  587,  601,  587,  587,  587,  587,  587,  587,  587,
      587,  587,  587,  587,  587,  587,  587,  587,  587,  587,
      587,  587,  587,  587,  587,  587,  587,  587,  587,  587,
      587,  587,  587,  587,  587,  596,  587,  587,  587,  587,
      587,  597,  587,  587,  598,  599,  587,  587,  600,  587,
      601,  587,  587,  587,  587,  587,  587,  587,  587,  587,

      587,  587,  587,  587,  587,  587,  587,  587,  587,  587,
      587,  587,  587,  587,  587,  587,  587,  587,  587,  587,
      587,  587,  587,  587,  587,  587,  587,  587,  587,  587,
      587,  587,  587,  587,  587,  587,  587,  587,  587,  587,
      587,  587,  587,  587,  587,  587,  587,  587,  587,  587,
      587,  587,  587,  587,  587,  587,  587,  587,  587,  587,
      587,  587,  587,  587,  587,  587,  587,  587,  587,  587,
      587,  587,  587,  587,  587,  587,  587,  587,  587,  587,
      587,  587,  587,  587,  587,  587,  587,  587,  587,  587,
      587,  587,  587,  587,  587,  587,  587,  587,  587,  587,

      587,  587,  587,  587,  587,  587,  587,  587,  587,  587,
      587,  587,  587,  587,  587,  587,  587,  587,  587,  587,
      587,  587,  587,  587,  587,  587,  587,  587,  587,  587,
      587,  587,  587,  587,  587,  587,  587,  587,  587,  587,
      587,  587,  587,  587,  587,  587,  587,  587,  587,  587,
      587,  587,  587,  587,  587,  587,  587,  587,  587,  587,
      587,  587,  587,  587,  587,  587,  587,  587,  587,  587,
      587,  587,  587,  587,  587,  587,  587,  587,  587,  587,
      587,  587,  587,  587,  587,  587,  587,  587,  587,  587,
      587,  587,  587,  587,  587,  587,  587,  587,  587,  587,

      587,  587,  587,  587,  587,  587,  587,  587,  587,  587,
      587,  587,  587,  587,  587,  587,  587,  587,  587,  587,
      587,  587,  587,  587,  587,  587,  587,  587,  587,  587,
      587,  587,  587,  587,  587,  587,  587,  587,  587,  587,
      587,  587,  587,  587,  587,  587,  587,  587,  587,  587,
      587,  587,  587,  587,  587,  587,  587,  587,  587,  587,
      587,  587,  587,  587,  587,  587,  587,  587,  587,  587,
      587,  587,  587,  587,  587,  587,  587,  587,  587,  587,
      587,  587,  587,  587,  587,  587,  587,  587,  587,  587,
      587,  587,  587,  587,  587,  587,  587,  587,  587,  587,

      587,  587,  587,  587,  587,  587,  587,  587,  587,  587,
      587,  587,  587,  587,  587,  587,  587,  587,  587,  587,
      587,  587,  587,  587,  587,  587,  587,  587,  587,  587,
      587,  587,  587,  587,  587,  587,  587,  587,  587,  587,
      587,  587,  587,  587,  587,  587,  587,  587,  587,  587,
      587,  587,  587,  587,  587,  587,  587,  587,  587,  587,
      587,  587,  587,  587,  587,  587,  587,  587,  587,  587,
      587,  587,  587,  587,  587,  587,  587,  587,  587,  587,
      587,  587,  587,  587,  587,  587,  587,  587,  587,  587,
      587,  587,  587,  587,  587,  587,  587,  587,  587,  587,

      587,  587,  587,  587,  587,  587,  587,  587,  587,  587,
      587,  587,  587,  587,  587,  587,  587,  587,  587,  587,
      587,  587,  587,  587,  587,  587,  587,  587,  587,  587,
      587,  587,  587,  587,  587,  587,  587,  587,  587,  587,
      587,  587,  587,  587,  587,  587,  587,  587,  587,  587,
      587,  587,  587,  587,  587,  587,  587,  587,  587,  587,
      587,  587,  587,  587,  587,  587,  587,  587,  587,  587,
      587,  587,  587,  587,  587,  587,  587,  587,  587,  587,
      587,  587,  587,  587,  587,  587,    0,  587,  587,  587,
      587,  587,  587,  587,  587,  587,  587,  587,  587,  587,

      587
    } ;

static yyconst short int yy_nxt[774] =
    {   0,
      587,   21,   22,   21,   22,   80,   23,   37,   23,   26,
       26,   26,   26,   33,   33,   24,  586,   24,   33,   33,
       38,   44,   37,   45,   44,   27,   45,   27,   34,   35,
      585,   40,   40,   34,   35,   38,   41,   40,   40,   77,
       77,  436,   41,  437,   81,   83,   83,   42,   87,   87,
       88,   88,  584,   42,   46,   46,   46,   46,   46,   47,
       46,   46,   46,   46,   46,   46,   46,   46,   46,   46,
       46,   46,   48,   49,   50,   46,   51,   52,   53,   46,
       54,   55,   56,   57,   58,   59,   60,   61,   62,   63,
       46,   64,   65,   66,   67,   68,   69,   70,   71,   72,

       73,   74,   46,   46,   75,   46,   78,   77,   90,   90,
       92,   92,   92,   92,   92,   93,  101,  583,  136,  102,
       79,  103,  137,  151,   94,  104,   95,  106,  153,  107,
       96,  169,  111,  108,  112,  170,  154,  105,  113,   97,
      152,   98,   99,  582,  132,  109,  133,  165,  114,  115,
      116,  118,  222,  119,  134,  155,  166,  120,  581,  167,
      135,  138,  223,  139,  175,  176,  156,  140,  359,  121,
      123,  157,  124,  360,  125,  232,  126,  580,  141,  142,
      127,   77,   77,  233,  158,  128,  159,  129,  130,  145,
      160,  146,  579,  147,  171,  148,  518,  172,  519,  161,

      162,  163,  164,  149,  177,  182,  178,  150,  173,  183,
      179,  578,  174,  577,  180,   78,   77,   83,   83,   87,
       87,  576,  181,  184,   88,   88,   90,   90,  575,   79,
      189,  189,  189,  189,  189,  190,  254,  255,  289,  289,
      289,  289,  289,  190,  372,  373,  374,  477,  478,  477,
      478,   20,   20,   20,   20,   20,   20,   20,   25,   25,
       25,   25,   25,   25,   25,   28,   28,   28,   28,   28,
       28,   28,   30,   30,   30,   30,   30,   30,   30,   32,
       32,   32,   32,   32,   32,   32,   36,   36,   36,   36,
       36,   36,   36,   39,   39,   39,   39,   39,   39,   39,

       43,   43,   43,   43,   43,   43,   43,   76,  574,   76,
      573,  572,   76,   76,   82,  571,   82,   82,   82,   82,
       85,   85,   85,   85,   85,   85,   86,  570,   86,   86,
       86,   89,  569,   89,  568,   89,   89,   91,   91,  567,
      566,   91,   91,   91,  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,
      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,  491,  490,  489,  488,
      487,  486,  485,  484,  483,  482,  481,  480,  479,  476,
      475,  474,  473,  472,  471,  470,  469,  468,  467,  466,
      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,  435,  434,
      433,  432,  431,  430,  429,  428,  427,  426,  425,  424,
      423,  422,  421,  420,  419,  418,  417,  416,  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,  190,  387,  386,  385,
      384,  383,  382,  381,  380,  379,  378,  377,  376,  375,
      371,  370,  369,  368,  367,  366,  365,  364,  363,  362,
      361,  358,  357,  356,  355,  354,  353,  352,  351,  350,
      349,  348,  347,  346,  345,  344,  343,  342,  341,  340,
      339,  338,  337,  336,  335,  334,  333,  332,  331,  330,
      329,  328,  327,  326,  325,  324,  323,  322,  321,  320,
      319,  318,  317,  316,  315,  314,  313,  312,  311,  310,
      309,  308,  307,  306,  305,  304,  303,  302,  301,  300,

      299,  298,  297,  296,  295,  294,  293,  292,  291,  290,
      288,  287,  286,  285,  284,  283,  282,  281,  280,  279,
      278,  277,  276,  275,  274,  273,  272,  271,  270,  269,
      268,  267,  266,  265,  264,  263,  262,  261,  260,  259,
      258,  257,  256,  253,  252,  251,  250,  249,  248,  247,
      246,  245,  244,  243,  242,  241,  240,  239,  238,  237,
      236,  235,  234,  231,  230,  229,  228,  227,  226,  225,
      224,  221,  220,  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,  188,  187,  186,  185,  168,  144,  143,  131,
      122,  117,  110,  100,   84,  587,   31,   31,   29,   29,
       19,  587,  587,  587,  587,  587,  587,  587,  587,  587,
      587,  587,  587,  587,  587,  587,  587,  587,  587,  587,
      587,  587,  587,  587,  587,  587,  587,  587,  587,  587,
      587,  587,  587,  587,  587,  587,  587,  587,  587,  587,
      587,  587,  587,  587,  587,  587,  587,  587,  587,  587,
      587,  587,  587
    } ;

static yyconst short int yy_chk[774] =
    {   0,
        0,    1,    1,    2,    2,   24,    1,   11,    2,    3,
        3,    4,    4,    9,    9,    1,  544,    2,   10,   10,
       11,   15,   12,   15,   16,    3,   16,    4,    9,    9,
      543,   13,   13,   10,   10,   12,   13,   14,   14,   21,
       21,  342,   14,  342,   24,   26,   26,   13,   33,   33,
       34,   34,  541,   14,   17,   17,   17,   17,   17,   17,
       17,   17,   17,   17,   17,   17,   17,   17,   17,   17,
       17,   17,   17,   17,   17,   17,   17,   17,   17,   17,
       17,   17,   17,   17,   17,   17,   17,   17,   17,   17,
       17,   17,   17,   17,   17,   17,   17,   17,   17,   17,

       17,   17,   17,   17,   17,   17,   22,   22,   40,   40,
       47,   47,   47,   47,   47,   48,   50,  535,   60,   50,
       22,   50,   60,   65,   48,   50,   48,   51,   66,   51,
       48,   71,   53,   51,   53,   71,   66,   50,   53,   48,
       65,   48,   48,  534,   59,   51,   59,   69,   53,   53,
       53,   55,  124,   55,   59,   67,   69,   55,  533,   69,
       59,   61,  124,   61,   73,   73,   67,   61,  262,   55,
       57,   67,   57,  262,   57,  133,   57,  532,   61,   61,
       57,   77,   77,  133,   68,   57,   68,   57,   57,   64,
       68,   64,  530,   64,   72,   64,  436,   72,  436,   68,

       68,   68,   68,   64,   74,   75,   74,   64,   72,   75,
       74,  529,   72,  528,   74,   78,   78,   83,   83,   87,
       87,  525,   74,   75,   88,   88,   90,   90,  524,   78,
       92,   92,   92,   92,   92,   92,  154,  154,  189,  189,
      189,  189,  189,  189,  274,  274,  274,  387,  387,  477,
      477,  588,  588,  588,  588,  588,  588,  588,  589,  589,
      589,  589,  589,  589,  589,  590,  590,  590,  590,  590,
      590,  590,  591,  591,  591,  591,  591,  591,  591,  592,
      592,  592,  592,  592,  592,  592,  593,  593,  593,  593,
      593,  593,  593,  594,  594,  594,  594,  594,  594,  594,

      595,  595,  595,  595,  595,  595,  595,  596,  521,  596,
      520,  519,  596,  596,  597,  518,  597,  597,  597,  597,
      598,  598,  598,  598,  598,  598,  599,  517,  599,  599,
      599,  600,  515,  600,  514,  600,  600,  601,  601,  513,
      511,  601,  601,  601,  510,  509,  507,  503,  502,  501,
      499,  497,  496,  495,  493,  492,  491,  489,  488,  486,
      485,  484,  482,  480,  476,  474,  472,  471,  470,  469,
      468,  467,  462,  460,  459,  456,  455,  452,  451,  450,
      449,  447,  446,  444,  442,  441,  440,  439,  438,  437,
      434,  433,  432,  431,  430,  427,  426,  425,  423,  422,

      421,  420,  419,  418,  417,  416,  414,  413,  412,  411,
      409,  408,  407,  406,  405,  404,  402,  401,  400,  398,
      397,  396,  395,  393,  392,  391,  390,  389,  388,  386,
      385,  383,  382,  380,  379,  378,  377,  376,  375,  374,
      373,  372,  370,  368,  367,  366,  365,  364,  363,  362,
      361,  360,  359,  358,  357,  356,  355,  353,  352,  351,
      350,  349,  348,  347,  346,  345,  344,  343,  341,  339,
      338,  337,  336,  334,  333,  332,  331,  330,  329,  328,
      327,  326,  324,  323,  322,  321,  320,  319,  318,  317,
      316,  315,  314,  313,  312,  311,  310,  309,  308,  307,

      306,  305,  304,  303,  302,  301,  300,  299,  297,  296,
      295,  294,  293,  292,  291,  290,  289,  288,  286,  285,
      284,  283,  282,  281,  280,  279,  278,  277,  276,  275,
      273,  272,  271,  270,  269,  268,  267,  266,  265,  264,
      263,  261,  260,  259,  258,  257,  256,  255,  254,  253,
      251,  250,  249,  248,  247,  246,  245,  243,  242,  241,
      240,  239,  238,  237,  236,  235,  234,  233,  232,  231,
      230,  229,  228,  227,  226,  225,  224,  223,  222,  221,
      220,  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,
      187,  186,  185,  184,  183,  182,  181,  180,  179,  178,
      177,  176,  175,  174,  173,  172,  171,  170,  169,  168,
      167,  166,  165,  164,  163,  162,  161,  160,  159,  158,
      157,  156,  155,  153,  152,  151,  150,  149,  148,  147,
      146,  145,  144,  143,  142,  141,  140,  139,  138,  137,
      136,  135,  134,  132,  131,  130,  129,  128,  127,  126,
      125,  123,  122,  121,  120,  119,  118,  117,  116,  115,
      114,  113,  112,  111,  110,  109,  108,  107,  106,  105,
      104,  103,  102,  101,  100,   99,   98,   97,   96,   95,

       94,   93,   84,   81,   80,   79,   70,   63,   62,   58,
       56,   54,   52,   49,   29,   19,    8,    7,    6,    5,
      587,  587,  587,  587,  587,  587,  587,  587,  587,  587,
      587,  587,  587,  587,  587,  587,  587,  587,  587,  587,
      587,  587,  587,  587,  587,  587,  587,  587,  587,  587,
      587,  587,  587,  587,  587,  587,  587,  587,  587,  587,
      587,  587,  587,  587,  587,  587,  587,  587,  587,  587,
      587,  587,  587
    } ;

/* 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
#define YY_RESTORE_YY_MORE_OFFSET
#line 1 "code/JHTMLScannerL.l"
#define INITIAL 0
#line 2 "code/JHTMLScannerL.l"
/*
Copyright © 1998 by John Lindal. All rights reserved.

This scanner reads an HTML file and calls the
following virtual functions:

	HandleHTMLWord
		Insert the given word.

	HandleHTMLWhitespace
		Insert whitespace as appropriate.

	HandleHTMLTag
		Handle the tag with the given name and attributes.

	HandleHTMLComment
		Handle the given comment.

	HandleHTMLError
		The specified error occurred.
*/

#define _H_JHTMLScannerL

#include <JHTMLScanner.h>
#include <JStringPtrMap.h>
#include <JString.h>
#include <stdlib.h>
#include <jAssert.h>

// This is the easiest way to keep track of our position in the text.

#define YY_USER_ACTION	UpdatePosition();

#define HANDLE_CHAR(c)	if (!HandleChar(c)) { return 0; }
#define YY_STACK_USED 1
#define TAG_STATE 1
#define COMMENT_STATE 2
#define TOSS_TAG_STATE 3

#define ATTR_NAME_STATE 4

#define INIT_ATTR_VALUE_STATE 5
#define UNQUOTED_ATTR_VALUE_STATE 6
#define QUOTED_ATTR_VALUE_STATE 7

#define CHAR_ESC_STATE 8

#line 750 "code/JHTMLScannerL.cc"

/* 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 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
#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
#define ECHO LexerOutput( yytext, yyleng )
#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 ( (result = LexerInput( (char *) buf, max_size )) < 0 ) \
		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) LexerError( msg )
#endif

/* Default declaration of generated scanner - a define so the user can
 * easily add parameters.
 */
#ifndef YY_DECL
#define YY_DECL int yyFlexLexer::yylex()
#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;
	register char *yy_cp, *yy_bp;
	register int yy_act;

#line 49 "code/JHTMLScannerL.l"



	BEGIN(INITIAL);


#line 884 "code/JHTMLScannerL.cc"

	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 = &cin;

		if ( ! yyout )
			yyout = &cout;

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

		yy_load_buffer_state();
		}

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

		/* Support of yytext. */
		*yy_cp = yy_hold_char;

		/* yy_bp points to the position in yy_ch_buf of the start of
		 * the current run.
		 */
		yy_bp = yy_cp;

		yy_current_state = yy_start;
yy_match:
		do
			{
			register YY_CHAR yy_c = yy_ec[YY_SC_TO_UI(*yy_cp)];
			if ( yy_accept[yy_current_state] )
				{
				yy_last_accepting_state = yy_current_state;
				yy_last_accepting_cpos = yy_cp;
				}
			while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state )
				{
				yy_current_state = (int) yy_def[yy_current_state];
				if ( yy_current_state >= 588 )
					yy_c = yy_meta[(unsigned int) yy_c];
				}
			yy_current_state = yy_nxt[yy_base[yy_current_state] + (unsigned int) yy_c];
			++yy_cp;
			}
		while ( yy_base[yy_current_state] != 721 );

yy_find_action:
		yy_act = yy_accept[yy_current_state];
		if ( yy_act == 0 )
			{ /* have to back up */
			yy_cp = yy_last_accepting_cpos;
			yy_current_state = yy_last_accepting_state;
			yy_act = yy_accept[yy_current_state];
			}

		YY_DO_BEFORE_ACTION;


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


		switch ( yy_act )
	{ /* beginning of action switch */
			case 0: /* must back up */
			/* undo the effects of YY_DO_BEFORE_ACTION */
			*yy_cp = yy_hold_char;
			yy_cp = yy_last_accepting_cpos;
			yy_current_state = yy_last_accepting_state;
			goto yy_find_action;

case 1:
YY_RULE_SETUP
#line 55 "code/JHTMLScannerL.l"
{
	NewTag();
	BEGIN(TAG_STATE);
	}
	YY_BREAK
case 2:
YY_RULE_SETUP
#line 60 "code/JHTMLScannerL.l"
{
	itsCommentRange.first = itsMatchRange.first;
	BEGIN(COMMENT_STATE);
	}
	YY_BREAK
case 3:
YY_RULE_SETUP
#line 65 "code/JHTMLScannerL.l"
{
	yy_push_state(CHAR_ESC_STATE);
	}
	YY_BREAK
case 4:
YY_RULE_SETUP
#line 69 "code/JHTMLScannerL.l"
{
	if (!HandleHTMLWhitespace(yytext, itsMatchRange))
		{
		return 0;
		}
	}
	YY_BREAK
case 5:
YY_RULE_SETUP
#line 76 "code/JHTMLScannerL.l"
{
	if (!HandleHTMLWord(yytext, itsMatchRange))
		{
		return 0;
		}
	}
	YY_BREAK
/* This catches and ignores the newline when <pre> is on a separate line */
case 6:
YY_RULE_SETUP
#line 85 "code/JHTMLScannerL.l"
{
	NewTag();
	(itsTagInfo->name).Set("pre");
	if (!TagFinished())
		{
		return 0;
		}
	}
	YY_BREAK
case 7:
YY_RULE_SETUP
#line 94 "code/JHTMLScannerL.l"
{
	NewTag();
	(itsTagInfo->name).Set("/pre");
	if (!TagFinished())
		{
		return 0;
		}
	}
	YY_BREAK
/* This grabs the name of the tag and looks for attributes */

case 8:
YY_RULE_SETUP
#line 109 "code/JHTMLScannerL.l"
/* ignore */
	YY_BREAK
case 9:
YY_RULE_SETUP
#line 111 "code/JHTMLScannerL.l"
{
	if (!TagFinished())
		{
		return 0;
		}
	BEGIN(INITIAL);
	}
	YY_BREAK
case 10:
YY_RULE_SETUP
#line 119 "code/JHTMLScannerL.l"
{
	(itsTagInfo->name).Set(yytext, yyleng);
	(itsTagInfo->name).ToLower();
	BEGIN(ATTR_NAME_STATE);
	}
	YY_BREAK

/* This grabs the attribute name and looks for a value */

case 11:
YY_RULE_SETUP
#line 133 "code/JHTMLScannerL.l"
/* ignore */
	YY_BREAK
case 12:
YY_RULE_SETUP
#line 135 "code/JHTMLScannerL.l"
{
	if (!TagFinished())
		{
		return 0;
		}
	BEGIN(INITIAL);
	}
	YY_BREAK
case 13:
YY_RULE_SETUP
#line 143 "code/JHTMLScannerL.l"
{
	if ((itsTagInfo->lastAttr).IsEmpty())
		{
		if (!HandleHTMLError(kEmptyAttrName, "*** empty attribute name ***", JIndexRange()))
			{
			return 0;
			}
		BEGIN(TOSS_TAG_STATE);
		}
	else
		{
		BEGIN(INIT_ATTR_VALUE_STATE);
		}
	}
	YY_BREAK
case 14:
YY_RULE_SETUP
#line 158 "code/JHTMLScannerL.l"
{
	(itsTagInfo->lastAttr).Set(yytext, yyleng);
	(itsTagInfo->lastAttr).ToLower();
	JString* s = NULL;
	(itsTagInfo->attr).SetElement(itsTagInfo->lastAttr, s);
	}
	YY_BREAK

/* This checks whether or not the attribute value is quoted */

case 15:
YY_RULE_SETUP
#line 173 "code/JHTMLScannerL.l"
{
	if (!TagFinished())
		{
		return 0;
		}
	BEGIN(INITIAL);
	}
	YY_BREAK
case 16:
YY_RULE_SETUP
#line 181 "code/JHTMLScannerL.l"
{
	BEGIN(QUOTED_ATTR_VALUE_STATE);
	}
	YY_BREAK
case 17:
YY_RULE_SETUP
#line 185 "code/JHTMLScannerL.l"
{
	yyless(0);
	itsMatchRange.Set(itsMatchRange.first-1, itsMatchRange.first-1);
	BEGIN(UNQUOTED_ATTR_VALUE_STATE);
	}
	YY_BREAK

/* This grabs the attribute value */

case 18:
YY_RULE_SETUP
#line 199 "code/JHTMLScannerL.l"
{
	SaveAttributeValue();
	BEGIN(ATTR_NAME_STATE);
	}
	YY_BREAK
case 19:
YY_RULE_SETUP
#line 204 "code/JHTMLScannerL.l"
{
	SaveAttributeValue();
	if (!TagFinished())
		{
		return 0;
		}
	BEGIN(INITIAL);
	}
	YY_BREAK
case 20:
YY_RULE_SETUP
#line 213 "code/JHTMLScannerL.l"
{
	yy_push_state(CHAR_ESC_STATE);
	}
	YY_BREAK
case 21:
YY_RULE_SETUP
#line 217 "code/JHTMLScannerL.l"
{
	(itsTagInfo->valueBuffer).Append(yytext, yyleng);
	}
	YY_BREAK

/* This grabs the quoted attribute value */

case 22:
YY_RULE_SETUP
#line 229 "code/JHTMLScannerL.l"
{
	SaveAttributeValue();
	BEGIN(ATTR_NAME_STATE);
	}
	YY_BREAK
case 23:
YY_RULE_SETUP
#line 234 "code/JHTMLScannerL.l"
{
	yy_push_state(CHAR_ESC_STATE);
	}
	YY_BREAK
case 24:
YY_RULE_SETUP
#line 238 "code/JHTMLScannerL.l"
{
	(itsTagInfo->valueBuffer).Append(yytext, yyleng);
	}
	YY_BREAK

/* This slurps up a comment */

case 25:
YY_RULE_SETUP
#line 250 "code/JHTMLScannerL.l"
{
	itsCommentRange.last = itsMatchRange.last;
	if (!HandleHTMLComment(itsCommentRange))
		{
		return 0;
		}
	BEGIN(INITIAL);
	}
	YY_BREAK
case 26:
YY_RULE_SETUP
#line 259 "code/JHTMLScannerL.l"
/* ignore everything inside comments */
	YY_BREAK
case YY_STATE_EOF(COMMENT_STATE):
#line 261 "code/JHTMLScannerL.l"
{
	itsCommentRange.last = itsMatchRange.last;
	HandleHTMLComment(itsCommentRange);
	yyterminate();
	}
	YY_BREAK

/* This tosses the remainder of the tag if an error occurs */

case 27:
YY_RULE_SETUP
#line 275 "code/JHTMLScannerL.l"
{
	if (!TagFinished())		/* this goes here so JHTMLStyler gets the correct range */
		{
		return 0;
		}
	BEGIN(INITIAL);
	}
	YY_BREAK
case 28:
YY_RULE_SETUP
#line 283 "code/JHTMLScannerL.l"
/* ignore everything inside tag */
	YY_BREAK

/* This converts legal character escapes (&) */
/* Unlike the rest of HTML, these are case sensitive */

case 29:
YY_RULE_SETUP
#line 294 "code/JHTMLScannerL.l"
{
	yyless(0);			/* if nothing else matches, don't change the stream */
	itsMatchRange.Set(itsMatchRange.first-1, itsMatchRange.first-1);
	HANDLE_CHAR('&');
	}
	YY_BREAK
case YY_STATE_EOF(CHAR_ESC_STATE):
#line 300 "code/JHTMLScannerL.l"
{
	/* itsMatchRange is correct because is isn't changed by <<EOF>> */
	HANDLE_CHAR('&');
	yyterminate();
	}
	YY_BREAK
case 30:
YY_RULE_SETUP
#line 306 "code/JHTMLScannerL.l"
{
	HANDLE_CHAR(atoi(yytext+1));
	}
	YY_BREAK
case 31:
YY_RULE_SETUP
#line 310 "code/JHTMLScannerL.l"
HANDLE_CHAR('<');		/* less than */
	YY_BREAK
case 32:
YY_RULE_SETUP
#line 311 "code/JHTMLScannerL.l"
HANDLE_CHAR('>');		/* greater than */
	YY_BREAK
case 33:
YY_RULE_SETUP
#line 313 "code/JHTMLScannerL.l"
HANDLE_CHAR('&');		/* ampersand */
	YY_BREAK
case 34:
YY_RULE_SETUP
#line 314 "code/JHTMLScannerL.l"
HANDLE_CHAR('\xA5');	/* currency: yen */
	YY_BREAK
case 35:
YY_RULE_SETUP
#line 315 "code/JHTMLScannerL.l"
HANDLE_CHAR('\xA8');	/* umlaut */
	YY_BREAK
case 36:
YY_RULE_SETUP
#line 316 "code/JHTMLScannerL.l"
HANDLE_CHAR('\xAC');	/* logical not */
	YY_BREAK
case 37:
YY_RULE_SETUP
#line 317 "code/JHTMLScannerL.l"
HANDLE_CHAR('\xAD');	/* subscript dash */
	YY_BREAK
case 38:
YY_RULE_SETUP
#line 318 "code/JHTMLScannerL.l"
HANDLE_CHAR('\xAE');	/* registered trademark */
	YY_BREAK
case 39:
YY_RULE_SETUP
#line 319 "code/JHTMLScannerL.l"
HANDLE_CHAR('\xB0');	/* degrees */
	YY_BREAK
case 40:
YY_RULE_SETUP
#line 320 "code/JHTMLScannerL.l"
HANDLE_CHAR('\xD0');	/* Icelandic (capital) */
	YY_BREAK
case 41:
YY_RULE_SETUP
#line 321 "code/JHTMLScannerL.l"
HANDLE_CHAR('\xF0');	/* Icelandic (lowercase) */
	YY_BREAK
case 42:
YY_RULE_SETUP
#line 323 "code/JHTMLScannerL.l"
HANDLE_CHAR('"');		/* double quote */
	YY_BREAK
case 43:
YY_RULE_SETUP
#line 324 "code/JHTMLScannerL.l"
HANDLE_CHAR(' ');		/* non-breaking space */
	YY_BREAK
case 44:
YY_RULE_SETUP
#line 325 "code/JHTMLScannerL.l"
HANDLE_CHAR('\xA2');	/* cents */
	YY_BREAK
case 45:
YY_RULE_SETUP
#line 326 "code/JHTMLScannerL.l"
HANDLE_CHAR('\xA7');	/* part */
	YY_BREAK
case 46:
YY_RULE_SETUP
#line 327 "code/JHTMLScannerL.l"
HANDLE_CHAR('\xA9');	/* copyright */
	YY_BREAK
case 47:
YY_RULE_SETUP
#line 328 "code/JHTMLScannerL.l"
HANDLE_CHAR('\xAA');	/* superscript underline a */
	YY_BREAK
case 48:
YY_RULE_SETUP
#line 329 "code/JHTMLScannerL.l"
HANDLE_CHAR('\xAF');	/* superscript dash */
	YY_BREAK
case 49:
YY_RULE_SETUP
#line 330 "code/JHTMLScannerL.l"
HANDLE_CHAR('\xB9');	/* superscript 1 */
	YY_BREAK
case 50:
YY_RULE_SETUP
#line 331 "code/JHTMLScannerL.l"
HANDLE_CHAR('\xB2');	/* superscript 2 */
	YY_BREAK
case 51:
YY_RULE_SETUP
#line 332 "code/JHTMLScannerL.l"
HANDLE_CHAR('\xB3');	/* superscript 3 */
	YY_BREAK
case 52:
YY_RULE_SETUP
#line 333 "code/JHTMLScannerL.l"
HANDLE_CHAR('\xB6');	/* paragraph */
	YY_BREAK
case 53:
YY_RULE_SETUP
#line 334 "code/JHTMLScannerL.l"
HANDLE_CHAR('\xBA');	/* superscript underline o */
	YY_BREAK
case 54:
YY_RULE_SETUP
#line 335 "code/JHTMLScannerL.l"
HANDLE_CHAR('\xC4');	/* upper case umlauts */
	YY_BREAK
case 55:
YY_RULE_SETUP
#line 336 "code/JHTMLScannerL.l"
HANDLE_CHAR('\xCB');
	YY_BREAK
case 56:
YY_RULE_SETUP
#line 337 "code/JHTMLScannerL.l"
HANDLE_CHAR('\xCF');
	YY_BREAK
case 57:
YY_RULE_SETUP
#line 338 "code/JHTMLScannerL.l"
HANDLE_CHAR('\xD6');
	YY_BREAK
case 58:
YY_RULE_SETUP
#line 339 "code/JHTMLScannerL.l"
HANDLE_CHAR('\xDC');
	YY_BREAK
case 59:
YY_RULE_SETUP
#line 340 "code/JHTMLScannerL.l"
HANDLE_CHAR('\xE4');	/* lower case umlauts */
	YY_BREAK
case 60:
YY_RULE_SETUP
#line 341 "code/JHTMLScannerL.l"
HANDLE_CHAR('\xEB');
	YY_BREAK
case 61:
YY_RULE_SETUP
#line 342 "code/JHTMLScannerL.l"
HANDLE_CHAR('\xEF');
	YY_BREAK
case 62:
YY_RULE_SETUP
#line 343 "code/JHTMLScannerL.l"
HANDLE_CHAR('\xF6');
	YY_BREAK
case 63:
YY_RULE_SETUP
#line 344 "code/JHTMLScannerL.l"
HANDLE_CHAR('\xFC');
	YY_BREAK
case 64:
YY_RULE_SETUP
#line 345 "code/JHTMLScannerL.l"
HANDLE_CHAR('\xFF');	/* they really did leave out Yuml */
	YY_BREAK
case 65:
YY_RULE_SETUP
#line 347 "code/JHTMLScannerL.l"
HANDLE_CHAR('\xA1');	/* i */
	YY_BREAK
case 66:
YY_RULE_SETUP
#line 348 "code/JHTMLScannerL.l"
HANDLE_CHAR('\xA3');	/* currency: pound */
	YY_BREAK
case 67:
YY_RULE_SETUP
#line 349 "code/JHTMLScannerL.l"
HANDLE_CHAR('\xAB');	/* << */
	YY_BREAK
case 68:
YY_RULE_SETUP
#line 350 "code/JHTMLScannerL.l"
HANDLE_CHAR('\xB4');	/* accent mark */
	YY_BREAK
case 69:
YY_RULE_SETUP
#line 351 "code/JHTMLScannerL.l"
HANDLE_CHAR('\xB5');	/* greek mu */
	YY_BREAK
case 70:
YY_RULE_SETUP
#line 352 "code/JHTMLScannerL.l"
HANDLE_CHAR('\xB8');	/* accent mark */
	YY_BREAK
case 71:
YY_RULE_SETUP
#line 353 "code/JHTMLScannerL.l"
HANDLE_CHAR('\xBB');	/* >> */
	YY_BREAK
case 72:
YY_RULE_SETUP
#line 354 "code/JHTMLScannerL.l"
HANDLE_CHAR('\xD7');	/* multiplication sign */
	YY_BREAK
case 73:
YY_RULE_SETUP
#line 355 "code/JHTMLScannerL.l"
HANDLE_CHAR('\xC2');	/* upper case modified characters */
	YY_BREAK
case 74:
YY_RULE_SETUP
#line 356 "code/JHTMLScannerL.l"
HANDLE_CHAR('\xC5');
	YY_BREAK
case 75:
YY_RULE_SETUP
#line 357 "code/JHTMLScannerL.l"
HANDLE_CHAR('\xC6');
	YY_BREAK
case 76:
YY_RULE_SETUP
#line 358 "code/JHTMLScannerL.l"
HANDLE_CHAR('\xCA');
	YY_BREAK
case 77:
YY_RULE_SETUP
#line 359 "code/JHTMLScannerL.l"
HANDLE_CHAR('\xCE');
	YY_BREAK
case 78:
YY_RULE_SETUP
#line 360 "code/JHTMLScannerL.l"
HANDLE_CHAR('\xD4');
	YY_BREAK
case 79:
YY_RULE_SETUP
#line 361 "code/JHTMLScannerL.l"
HANDLE_CHAR('\xDB');
	YY_BREAK
case 80:
YY_RULE_SETUP
#line 362 "code/JHTMLScannerL.l"
HANDLE_CHAR('\xDE');
	YY_BREAK
case 81:
YY_RULE_SETUP
#line 363 "code/JHTMLScannerL.l"
HANDLE_CHAR('\xDF');	/* German double s */
	YY_BREAK
case 82:
YY_RULE_SETUP
#line 364 "code/JHTMLScannerL.l"
HANDLE_CHAR('\xE2');	/* lower case modified characters */
	YY_BREAK
case 83:
YY_RULE_SETUP
#line 365 "code/JHTMLScannerL.l"
HANDLE_CHAR('\xE5');
	YY_BREAK
case 84:
YY_RULE_SETUP
#line 366 "code/JHTMLScannerL.l"
HANDLE_CHAR('\xE6');
	YY_BREAK
case 85:
YY_RULE_SETUP
#line 367 "code/JHTMLScannerL.l"
HANDLE_CHAR('\xEA');
	YY_BREAK
case 86:
YY_RULE_SETUP
#line 368 "code/JHTMLScannerL.l"
HANDLE_CHAR('\xEE');
	YY_BREAK
case 87:
YY_RULE_SETUP
#line 369 "code/JHTMLScannerL.l"
HANDLE_CHAR('\xF4');
	YY_BREAK
case 88:
YY_RULE_SETUP
#line 370 "code/JHTMLScannerL.l"
HANDLE_CHAR('\xFB');
	YY_BREAK
case 89:
YY_RULE_SETUP
#line 371 "code/JHTMLScannerL.l"
HANDLE_CHAR('\xFE');
	YY_BREAK
case 90:
YY_RULE_SETUP
#line 373 "code/JHTMLScannerL.l"
HANDLE_CHAR('\xA4');	/* currency: star */
	YY_BREAK
case 91:
YY_RULE_SETUP
#line 374 "code/JHTMLScannerL.l"
HANDLE_CHAR('\xA6');	/* vertical bar */
	YY_BREAK
case 92:
YY_RULE_SETUP
#line 375 "code/JHTMLScannerL.l"
HANDLE_CHAR('\xB1');	/* plus minus */
	YY_BREAK
case 93:
YY_RULE_SETUP
#line 376 "code/JHTMLScannerL.l"
HANDLE_CHAR('\xB7');	/* dot */
	YY_BREAK
case 94:
YY_RULE_SETUP
#line 377 "code/JHTMLScannerL.l"
HANDLE_CHAR('\xBC');	/* 1/4 */
	YY_BREAK
case 95:
YY_RULE_SETUP
#line 378 "code/JHTMLScannerL.l"
HANDLE_CHAR('\xBD');	/* 1/2 */
	YY_BREAK
case 96:
YY_RULE_SETUP
#line 379 "code/JHTMLScannerL.l"
HANDLE_CHAR('\xBE');	/* 3/4 */
	YY_BREAK
case 97:
YY_RULE_SETUP
#line 380 "code/JHTMLScannerL.l"
HANDLE_CHAR('\xBF');	/* upside down question mark */
	YY_BREAK
case 98:
YY_RULE_SETUP
#line 381 "code/JHTMLScannerL.l"
HANDLE_CHAR('\xC0');
	YY_BREAK
case 99:
YY_RULE_SETUP
#line 382 "code/JHTMLScannerL.l"
HANDLE_CHAR('\xC1');
	YY_BREAK
case 100:
YY_RULE_SETUP
#line 383 "code/JHTMLScannerL.l"
HANDLE_CHAR('\xC3');
	YY_BREAK
case 101:
YY_RULE_SETUP
#line 384 "code/JHTMLScannerL.l"
HANDLE_CHAR('\xC7');
	YY_BREAK
case 102:
YY_RULE_SETUP
#line 385 "code/JHTMLScannerL.l"
HANDLE_CHAR('\xC8');
	YY_BREAK
case 103:
YY_RULE_SETUP
#line 386 "code/JHTMLScannerL.l"
HANDLE_CHAR('\xC9');
	YY_BREAK
case 104:
YY_RULE_SETUP
#line 387 "code/JHTMLScannerL.l"
HANDLE_CHAR('\xCC');
	YY_BREAK
case 105:
YY_RULE_SETUP
#line 388 "code/JHTMLScannerL.l"
HANDLE_CHAR('\xCD');
	YY_BREAK
case 106:
YY_RULE_SETUP
#line 389 "code/JHTMLScannerL.l"
HANDLE_CHAR('\xD1');
	YY_BREAK
case 107:
YY_RULE_SETUP
#line 390 "code/JHTMLScannerL.l"
HANDLE_CHAR('\xD2');
	YY_BREAK
case 108:
YY_RULE_SETUP
#line 391 "code/JHTMLScannerL.l"
HANDLE_CHAR('\xD3');
	YY_BREAK
case 109:
YY_RULE_SETUP
#line 392 "code/JHTMLScannerL.l"
HANDLE_CHAR('\xD5');
	YY_BREAK
case 110:
YY_RULE_SETUP
#line 393 "code/JHTMLScannerL.l"
HANDLE_CHAR('\xD8');
	YY_BREAK
case 111:
YY_RULE_SETUP
#line 394 "code/JHTMLScannerL.l"
HANDLE_CHAR('\xD9');
	YY_BREAK
case 112:
YY_RULE_SETUP
#line 395 "code/JHTMLScannerL.l"
HANDLE_CHAR('\xDA');
	YY_BREAK
case 113:
YY_RULE_SETUP
#line 396 "code/JHTMLScannerL.l"
HANDLE_CHAR('\xDD');
	YY_BREAK
case 114:
YY_RULE_SETUP
#line 397 "code/JHTMLScannerL.l"
HANDLE_CHAR('\xE0');
	YY_BREAK
case 115:
YY_RULE_SETUP
#line 398 "code/JHTMLScannerL.l"
HANDLE_CHAR('\xE1');
	YY_BREAK
case 116:
YY_RULE_SETUP
#line 399 "code/JHTMLScannerL.l"
HANDLE_CHAR('\xE3');
	YY_BREAK
case 117:
YY_RULE_SETUP
#line 400 "code/JHTMLScannerL.l"
HANDLE_CHAR('\xE7');
	YY_BREAK
case 118:
YY_RULE_SETUP
#line 401 "code/JHTMLScannerL.l"
HANDLE_CHAR('\xE8');
	YY_BREAK
case 119:
YY_RULE_SETUP
#line 402 "code/JHTMLScannerL.l"
HANDLE_CHAR('\xE9');
	YY_BREAK
case 120:
YY_RULE_SETUP
#line 403 "code/JHTMLScannerL.l"
HANDLE_CHAR('\xEC');
	YY_BREAK
case 121:
YY_RULE_SETUP
#line 404 "code/JHTMLScannerL.l"
HANDLE_CHAR('\xED');
	YY_BREAK
case 122:
YY_RULE_SETUP
#line 405 "code/JHTMLScannerL.l"
HANDLE_CHAR('\xF1');
	YY_BREAK
case 123:
YY_RULE_SETUP
#line 406 "code/JHTMLScannerL.l"
HANDLE_CHAR('\xF2');
	YY_BREAK
case 124:
YY_RULE_SETUP
#line 407 "code/JHTMLScannerL.l"
HANDLE_CHAR('\xF3');
	YY_BREAK
case 125:
YY_RULE_SETUP
#line 408 "code/JHTMLScannerL.l"
HANDLE_CHAR('\xF5');
	YY_BREAK
case 126:
YY_RULE_SETUP
#line 409 "code/JHTMLScannerL.l"
HANDLE_CHAR('\xF7');	/* division sign */
	YY_BREAK
case 127:
YY_RULE_SETUP
#line 410 "code/JHTMLScannerL.l"
HANDLE_CHAR('\xF8');
	YY_BREAK
case 128:
YY_RULE_SETUP
#line 411 "code/JHTMLScannerL.l"
HANDLE_CHAR('\xF9');
	YY_BREAK
case 129:
YY_RULE_SETUP
#line 412 "code/JHTMLScannerL.l"
HANDLE_CHAR('\xFA');
	YY_BREAK
case 130:
YY_RULE_SETUP
#line 413 "code/JHTMLScannerL.l"
HANDLE_CHAR('\xFD');
	YY_BREAK

case 131:
YY_RULE_SETUP
#line 417 "code/JHTMLScannerL.l"
YY_FATAL_ERROR( "flex scanner jammed" );
	YY_BREAK
#line 1782 "code/JHTMLScannerL.cc"
case YY_STATE_EOF(INITIAL):
case YY_STATE_EOF(TAG_STATE):
case YY_STATE_EOF(TOSS_TAG_STATE):
case YY_STATE_EOF(ATTR_NAME_STATE):
case YY_STATE_EOF(INIT_ATTR_VALUE_STATE):
case YY_STATE_EOF(UNQUOTED_ATTR_VALUE_STATE):
case YY_STATE_EOF(QUOTED_ATTR_VALUE_STATE):
	yyterminate();

	case YY_END_OF_BUFFER:
		{
		/* Amount of text matched not including the EOB char. */
		int yy_amount_of_matched_text = (int) (yy_cp - yytext_ptr) - 1;

		/* Undo the effects of YY_DO_BEFORE_ACTION. */
		*yy_cp = yy_hold_char;
		YY_RESTORE_YY_MORE_OFFSET

		if ( yy_current_buffer->yy_buffer_status == YY_BUFFER_NEW )
			{
			/* We're scanning a new file or input source.  It's
			 * possible that this happened because the user
			 * just pointed yyin at a new source and called
			 * yylex().  If so, then we have to assure
			 * consistency between yy_current_buffer and our
			 * globals.  Here is the right place to do so, because
			 * this is the first action (other than possibly a
			 * back-up) that will match for the new input source.
			 */
			yy_n_chars = yy_current_buffer->yy_n_chars;
			yy_current_buffer->yy_input_file = yyin;
			yy_current_buffer->yy_buffer_status = YY_BUFFER_NORMAL;
			}

		/* Note that here we test for yy_c_buf_p "<=" to the position
		 * of the first EOB in the buffer, since yy_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 input().
		 */
		if ( yy_c_buf_p <= &yy_current_buffer->yy_ch_buf[yy_n_chars] )
			{ /* This was really a NUL. */
			yy_state_type yy_next_state;

			yy_c_buf_p = yytext_ptr + yy_amount_of_matched_text;

			yy_current_state = yy_get_previous_state();

			/* Okay, we're now positioned to make the NUL
			 * transition.  We couldn't have
			 * yy_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).
			 */

			yy_next_state = yy_try_NUL_trans( yy_current_state );

			yy_bp = yytext_ptr + YY_MORE_ADJ;

			if ( yy_next_state )
				{
				/* Consume the NUL. */
				yy_cp = ++yy_c_buf_p;
				yy_current_state = yy_next_state;
				goto yy_match;
				}

			else
				{
				yy_cp = yy_c_buf_p;
				goto yy_find_action;
				}
			}

		else switch ( yy_get_next_buffer() )
			{
			case EOB_ACT_END_OF_FILE:
				{
				yy_did_buffer_switch_on_eof = 0;

				if ( yywrap() )
					{
					/* Note: because we've taken care in
					 * yy_get_next_buffer() to have set up
					 * yytext, we can now set up
					 * yy_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.
					 */
					yy_c_buf_p = yytext_ptr + YY_MORE_ADJ;

					yy_act = YY_STATE_EOF(YY_START);
					goto do_action;
					}

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

			case EOB_ACT_CONTINUE_SCAN:
				yy_c_buf_p =
					yytext_ptr + yy_amount_of_matched_text;

				yy_current_state = yy_get_previous_state();

				yy_cp = yy_c_buf_p;
				yy_bp = yytext_ptr + YY_MORE_ADJ;
				goto yy_match;

			case EOB_ACT_LAST_MATCH:
				yy_c_buf_p =
				&yy_current_buffer->yy_ch_buf[yy_n_chars];

				yy_current_state = yy_get_previous_state();

				yy_cp = yy_c_buf_p;
				yy_bp = yytext_ptr + YY_MORE_ADJ;
				goto yy_find_action;
			}
		break;
		}

	default:
		YY_FATAL_ERROR(
			"fatal flex scanner internal error--no action found" );
	} /* end of action switch */
		} /* end of scanning one token */
	} /* end of yylex */

yyFlexLexer::yyFlexLexer( istream* arg_yyin, ostream* arg_yyout )
	{
	yyin = arg_yyin;
	yyout = arg_yyout;
	yy_c_buf_p = 0;
	yy_init = 1;
	yy_start = 0;
	yy_flex_debug = 0;
	yylineno = 1;	// this will only get updated if %option yylineno

	yy_did_buffer_switch_on_eof = 0;

	yy_looking_for_trail_begin = 0;
	yy_more_flag = 0;
	yy_more_len = 0;
	yy_more_offset = yy_prev_more_offset = 0;

	yy_start_stack_ptr = yy_start_stack_depth = 0;
	yy_start_stack = 0;

	yy_current_buffer = 0;

#ifdef YY_USES_REJECT
	yy_state_buf = new yy_state_type[YY_BUF_SIZE + 2];
#else
	yy_state_buf = 0;
#endif
	}

yyFlexLexer::~yyFlexLexer()
	{
	delete yy_state_buf;
	yy_delete_buffer( yy_current_buffer );
	}

void yyFlexLexer::switch_streams( istream* new_in, ostream* new_out )
	{
	if ( new_in )
		{
		yy_delete_buffer( yy_current_buffer );
		yy_switch_to_buffer( yy_create_buffer( new_in, YY_BUF_SIZE ) );
		}

	if ( new_out )
		yyout = new_out;
	}

#ifdef YY_INTERACTIVE
int yyFlexLexer::LexerInput( char* buf, int /* max_size */ )
#else
int yyFlexLexer::LexerInput( char* buf, int max_size )
#endif
	{
	if ( yyin->eof() || yyin->fail() )
		return 0;

#ifdef YY_INTERACTIVE
	yyin->get( buf[0] );

	if ( yyin->eof() )
		return 0;

	if ( yyin->bad() )
		return -1;

	return 1;

#else
	(void) yyin->read( buf, max_size );

	if ( yyin->bad() )
		return -1;
	else
		return yyin->gcount();
#endif
	}

void yyFlexLexer::LexerOutput( const char* buf, int size )
	{
	(void) yyout->write( buf, size );
	}

/* yy_get_next_buffer - try to read in a new 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
 */

int yyFlexLexer::yy_get_next_buffer()
	{
	register char *dest = yy_current_buffer->yy_ch_buf;
	register char *source = yytext_ptr;
	register int number_to_move, i;
	int ret_val;

	if ( yy_c_buf_p > &yy_current_buffer->yy_ch_buf[yy_n_chars + 1] )
		YY_FATAL_ERROR(
		"fatal flex scanner internal error--end of buffer missed" );

	if ( yy_current_buffer->yy_fill_buffer == 0 )
		{ /* Don't try to fill the buffer, so this is an EOF. */
		if ( yy_c_buf_p - yytext_ptr - YY_MORE_ADJ == 1 )
			{
			/* We matched a single character, the EOB, so
			 * treat this as a final EOF.
			 */
			return EOB_ACT_END_OF_FILE;
			}

		else
			{
			/* We matched some text prior to the EOB, first
			 * process it.
			 */
			return EOB_ACT_LAST_MATCH;
			}
		}

	/* Try to read more data. */

	/* First move last chars to start of buffer. */
	number_to_move = (int) (yy_c_buf_p - yytext_ptr) - 1;

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

	if ( yy_current_buffer->yy_buffer_status == YY_BUFFER_EOF_PENDING )
		/* don't do the read, it's not guaranteed to return an EOF,
		 * just force an EOF
		 */
		yy_current_buffer->yy_n_chars = yy_n_chars = 0;

	else
		{
		int num_to_read =
			yy_current_buffer->yy_buf_size - number_to_move - 1;

		while ( num_to_read <= 0 )
			{ /* Not enough room in the buffer - grow it. */
#ifdef YY_USES_REJECT
			YY_FATAL_ERROR(
"input buffer overflow, can't enlarge buffer because scanner uses REJECT" );
#else

			/* just a shorter name for the current buffer */
			YY_BUFFER_STATE b = yy_current_buffer;

			int yy_c_buf_p_offset =
				(int) (yy_c_buf_p - b->yy_ch_buf);

			if ( b->yy_is_our_buffer )
				{
				int new_size = b->yy_buf_size * 2;

				if ( new_size <= 0 )
					b->yy_buf_size += b->yy_buf_size / 8;
				else
					b->yy_buf_size *= 2;

				b->yy_ch_buf = (char *)
					/* Include room in for 2 EOB chars. */
					yy_flex_realloc( (void *) b->yy_ch_buf,
							 b->yy_buf_size + 2 );
				}
			else
				/* Can't grow it, we don't own it. */
				b->yy_ch_buf = 0;

			if ( ! b->yy_ch_buf )
				YY_FATAL_ERROR(
				"fatal error - scanner input buffer overflow" );

			yy_c_buf_p = &b->yy_ch_buf[yy_c_buf_p_offset];

			num_to_read = yy_current_buffer->yy_buf_size -
						number_to_move - 1;
#endif
			}

		if ( num_to_read > YY_READ_BUF_SIZE )
			num_to_read = YY_READ_BUF_SIZE;

		/* Read in more data. */
		YY_INPUT( (&yy_current_buffer->yy_ch_buf[number_to_move]),
			yy_n_chars, num_to_read );

		yy_current_buffer->yy_n_chars = yy_n_chars;
		}

	if ( yy_n_chars == 0 )
		{
		if ( number_to_move == YY_MORE_ADJ )
			{
			ret_val = EOB_ACT_END_OF_FILE;
			yyrestart( yyin );
			}

		else
			{
			ret_val = EOB_ACT_LAST_MATCH;
			yy_current_buffer->yy_buffer_status =
				YY_BUFFER_EOF_PENDING;
			}
		}

	else
		ret_val = EOB_ACT_CONTINUE_SCAN;

	yy_n_chars += number_to_move;
	yy_current_buffer->yy_ch_buf[yy_n_chars] = YY_END_OF_BUFFER_CHAR;
	yy_current_buffer->yy_ch_buf[yy_n_chars + 1] = YY_END_OF_BUFFER_CHAR;

	yytext_ptr = &yy_current_buffer->yy_ch_buf[0];

	return ret_val;
	}


/* yy_get_previous_state - get the state just before the EOB char was reached */

yy_state_type yyFlexLexer::yy_get_previous_state()
	{
	register yy_state_type yy_current_state;
	register char *yy_cp;

	yy_current_state = yy_start;

	for ( yy_cp = yytext_ptr + YY_MORE_ADJ; yy_cp < yy_c_buf_p; ++yy_cp )
		{
		register YY_CHAR yy_c = (*yy_cp ? yy_ec[YY_SC_TO_UI(*yy_cp)] : 1);
		if ( yy_accept[yy_current_state] )
			{
			yy_last_accepting_state = yy_current_state;
			yy_last_accepting_cpos = yy_cp;
			}
		while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state )
			{
			yy_current_state = (int) yy_def[yy_current_state];
			if ( yy_current_state >= 588 )
				yy_c = yy_meta[(unsigned int) yy_c];
			}
		yy_current_state = yy_nxt[yy_base[yy_current_state] + (unsigned int) yy_c];
		}

	return yy_current_state;
	}


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

yy_state_type yyFlexLexer::yy_try_NUL_trans( yy_state_type yy_current_state )
	{
	register int yy_is_jam;
	register char *yy_cp = yy_c_buf_p;

	register YY_CHAR yy_c = 1;
	if ( yy_accept[yy_current_state] )
		{
		yy_last_accepting_state = yy_current_state;
		yy_last_accepting_cpos = yy_cp;
		}
	while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state )
		{
		yy_current_state = (int) yy_def[yy_current_state];
		if ( yy_current_state >= 588 )
			yy_c = yy_meta[(unsigned int) yy_c];
		}
	yy_current_state = yy_nxt[yy_base[yy_current_state] + (unsigned int) yy_c];
	yy_is_jam = (yy_current_state == 587);

	return yy_is_jam ? 0 : yy_current_state;
	}


void yyFlexLexer::yyunput( int c, register char* yy_bp )
	{
	register char *yy_cp = yy_c_buf_p;

	/* undo effects of setting up yytext */
	*yy_cp = yy_hold_char;

	if ( yy_cp < yy_current_buffer->yy_ch_buf + 2 )
		{ /* need to shift things up to make room */
		/* +2 for EOB chars. */
		register int number_to_move = yy_n_chars + 2;
		register char *dest = &yy_current_buffer->yy_ch_buf[
					yy_current_buffer->yy_buf_size + 2];
		register char *source =
				&yy_current_buffer->yy_ch_buf[number_to_move];

		while ( source > yy_current_buffer->yy_ch_buf )
			*--dest = *--source;

		yy_cp += (int) (dest - source);
		yy_bp += (int) (dest - source);
		yy_current_buffer->yy_n_chars =
			yy_n_chars = yy_current_buffer->yy_buf_size;

		if ( yy_cp < yy_current_buffer->yy_ch_buf + 2 )
			YY_FATAL_ERROR( "flex scanner push-back overflow" );
		}

	*--yy_cp = (char) c;


	yytext_ptr = yy_bp;
	yy_hold_char = *yy_cp;
	yy_c_buf_p = yy_cp;
	}


int yyFlexLexer::yyinput()
	{
	int c;

	*yy_c_buf_p = yy_hold_char;

	if ( *yy_c_buf_p == YY_END_OF_BUFFER_CHAR )
		{
		/* yy_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 ( yy_c_buf_p < &yy_current_buffer->yy_ch_buf[yy_n_chars] )
			/* This was really a NUL. */
			*yy_c_buf_p = '\0';

		else
			{ /* need more input */
			int offset = yy_c_buf_p - yytext_ptr;
			++yy_c_buf_p;

			switch ( yy_get_next_buffer() )
				{
				case EOB_ACT_LAST_MATCH:
					/* This happens because yy_g_n_b()
					 * sees that we've accumulated a
					 * token and flags that we need to
					 * try matching the token before
					 * proceeding.  But for input(),
					 * there's no matching to consider.
					 * So convert the EOB_ACT_LAST_MATCH
					 * to EOB_ACT_END_OF_FILE.
					 */

					/* Reset buffer status. */
					yyrestart( yyin );

					/* fall through */

				case EOB_ACT_END_OF_FILE:
					{
					if ( yywrap() )
						return EOF;

					if ( ! yy_did_buffer_switch_on_eof )
						YY_NEW_FILE;
#ifdef __cplusplus
					return yyinput();
#else
					return input();
#endif
					}

				case EOB_ACT_CONTINUE_SCAN:
					yy_c_buf_p = yytext_ptr + offset;
					break;
				}
			}
		}

	c = *(unsigned char *) yy_c_buf_p;	/* cast for 8-bit char's */
	*yy_c_buf_p = '\0';	/* preserve yytext */
	yy_hold_char = *++yy_c_buf_p;


	return c;
	}


void yyFlexLexer::yyrestart( istream* input_file )
	{
	if ( ! yy_current_buffer )
		yy_current_buffer = yy_create_buffer( yyin, YY_BUF_SIZE );

	yy_init_buffer( yy_current_buffer, input_file );
	yy_load_buffer_state();
	}


void yyFlexLexer::yy_switch_to_buffer( YY_BUFFER_STATE new_buffer )
	{
	if ( yy_current_buffer == new_buffer )
		return;

	if ( yy_current_buffer )
		{
		/* Flush out information for old buffer. */
		*yy_c_buf_p = yy_hold_char;
		yy_current_buffer->yy_buf_pos = yy_c_buf_p;
		yy_current_buffer->yy_n_chars = yy_n_chars;
		}

	yy_current_buffer = new_buffer;
	yy_load_buffer_state();

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


void yyFlexLexer::yy_load_buffer_state()
	{
	yy_n_chars = yy_current_buffer->yy_n_chars;
	yytext_ptr = yy_c_buf_p = yy_current_buffer->yy_buf_pos;
	yyin = yy_current_buffer->yy_input_file;
	yy_hold_char = *yy_c_buf_p;
	}


YY_BUFFER_STATE yyFlexLexer::yy_create_buffer( istream* file, int size )
	{
	YY_BUFFER_STATE b;

	b = (YY_BUFFER_STATE) yy_flex_alloc( sizeof( struct yy_buffer_state ) );
	if ( ! b )
		YY_FATAL_ERROR( "out of dynamic memory in yy_create_buffer()" );

	b->yy_buf_size = size;

	/* yy_ch_buf has to be 2 characters longer than the size given because
	 * we need to put in 2 end-of-buffer characters.
	 */
	b->yy_ch_buf = (char *) yy_flex_alloc( b->yy_buf_size + 2 );
	if ( ! b->yy_ch_buf )
		YY_FATAL_ERROR( "out of dynamic memory in yy_create_buffer()" );

	b->yy_is_our_buffer = 1;

	yy_init_buffer( b, file );

	return b;
	}


void yyFlexLexer::yy_delete_buffer( YY_BUFFER_STATE b )
	{
	if ( ! b )
		return;

	if ( b == yy_current_buffer )
		yy_current_buffer = (YY_BUFFER_STATE) 0;

	if ( b->yy_is_our_buffer )
		yy_flex_free( (void *) b->yy_ch_buf );

	yy_flex_free( (void *) b );
	}


extern "C" int isatty YY_PROTO(( int ));
void yyFlexLexer::yy_init_buffer( YY_BUFFER_STATE b, istream* file )

	{
	yy_flush_buffer( b );

	b->yy_input_file = file;
	b->yy_fill_buffer = 1;

	b->yy_is_interactive = 0;
	}


void yyFlexLexer::yy_flush_buffer( YY_BUFFER_STATE b )
	{
	if ( ! b )
		return;

	b->yy_n_chars = 0;

	/* 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->yy_ch_buf[0] = YY_END_OF_BUFFER_CHAR;
	b->yy_ch_buf[1] = YY_END_OF_BUFFER_CHAR;

	b->yy_buf_pos = &b->yy_ch_buf[0];

	b->yy_at_bol = 1;
	b->yy_buffer_status = YY_BUFFER_NEW;

	if ( b == yy_current_buffer )
		yy_load_buffer_state();
	}


#ifndef YY_NO_SCAN_BUFFER
#endif


#ifndef YY_NO_SCAN_STRING
#endif


#ifndef YY_NO_SCAN_BYTES
#endif


#ifndef YY_NO_PUSH_STATE
void yyFlexLexer::yy_push_state( int new_state )
	{
	if ( yy_start_stack_ptr >= yy_start_stack_depth )
		{
		yy_size_t new_size;

		yy_start_stack_depth += YY_START_STACK_INCR;
		new_size = yy_start_stack_depth * sizeof( int );

		if ( ! yy_start_stack )
			yy_start_stack = (int *) yy_flex_alloc( new_size );

		else
			yy_start_stack = (int *) yy_flex_realloc(
					(void *) yy_start_stack, new_size );

		if ( ! yy_start_stack )
			YY_FATAL_ERROR(
			"out of memory expanding start-condition stack" );
		}

	yy_start_stack[yy_start_stack_ptr++] = YY_START;

	BEGIN(new_state);
	}
#endif


#ifndef YY_NO_POP_STATE
void yyFlexLexer::yy_pop_state()
	{
	if ( --yy_start_stack_ptr < 0 )
		YY_FATAL_ERROR( "start-condition stack underflow" );

	BEGIN(yy_start_stack[yy_start_stack_ptr]);
	}
#endif


#ifndef YY_NO_TOP_STATE
int yyFlexLexer::yy_top_state()
	{
	return yy_start_stack[yy_start_stack_ptr - 1];
	}
#endif

#ifndef YY_EXIT_FAILURE
#define YY_EXIT_FAILURE 2
#endif


void yyFlexLexer::LexerError( yyconst char msg[] )
	{
	cerr << msg << '\n';
	exit( YY_EXIT_FAILURE );
	}


/* Redefine yyless() so it works in section 3 code. */

#undef yyless
#define yyless(n) \
	do \
		{ \
		/* Undo effects of setting up yytext. */ \
		yytext[yyleng] = yy_hold_char; \
		yy_c_buf_p = yytext + n; \
		yy_hold_char = *yy_c_buf_p; \
		*yy_c_buf_p = '\0'; \
		yyleng = n; \
		} \
	while ( 0 )


/* Internal utility routines. */

#ifndef yytext_ptr
#ifdef YY_USE_PROTOS
static void yy_flex_strncpy( char *s1, yyconst char *s2, int n )
#else
static void yy_flex_strncpy( s1, s2, n )
char *s1;
yyconst char *s2;
int n;
#endif
	{
	register int i;
	for ( i = 0; i < n; ++i )
		s1[i] = s2[i];
	}
#endif

#ifdef YY_NEED_STRLEN
#ifdef YY_USE_PROTOS
static int yy_flex_strlen( yyconst char *s )
#else
static int yy_flex_strlen( s )
yyconst char *s;
#endif
	{
	register int n;
	for ( n = 0; s[n]; ++n )
		;

	return n;
	}
#endif


#ifdef YY_USE_PROTOS
static void *yy_flex_alloc( yy_size_t size )
#else
static void *yy_flex_alloc( size )
yy_size_t size;
#endif
	{
	return (void *) malloc( size );
	}

#ifdef YY_USE_PROTOS
static void *yy_flex_realloc( void *ptr, yy_size_t size )
#else
static void *yy_flex_realloc( ptr, size )
void *ptr;
yy_size_t size;
#endif
	{
	/* The cast to (char *) in the following accommodates both
	 * implementations that use char* generic pointers, and those
	 * that use void* generic pointers.  It works with the latter
	 * because both ANSI C and C++ allow castless assignment from
	 * any pointer type to void*, and deal with argument conversions
	 * as though doing an assignment.
	 */
	return (void *) realloc( (char *) ptr, size );
	}

#ifdef YY_USE_PROTOS
static void yy_flex_free( void *ptr )
#else
static void yy_flex_free( ptr )
void *ptr;
#endif
	{
	free( ptr );
	}

#if YY_MAIN
int main()
	{
	yylex();
	return 0;
	}
#endif
#line 417 "code/JHTMLScannerL.l"

