summaryrefslogtreecommitdiff
path: root/TAO/TAO_IDL/fe/lex.yy.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'TAO/TAO_IDL/fe/lex.yy.cpp')
-rw-r--r--TAO/TAO_IDL/fe/lex.yy.cpp2791
1 files changed, 0 insertions, 2791 deletions
diff --git a/TAO/TAO_IDL/fe/lex.yy.cpp b/TAO/TAO_IDL/fe/lex.yy.cpp
deleted file mode 100644
index 0f8f90f4934..00000000000
--- a/TAO/TAO_IDL/fe/lex.yy.cpp
+++ /dev/null
@@ -1,2791 +0,0 @@
-/* A lexical scanner generated by flex */
-
-/* Scanner skeleton version:
- * $Id$
- */
-
-#define FLEX_SCANNER
-#define TAO_YY_FLEX_MAJOR_VERSION 2
-#define TAO_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 "ace/OS.h"
-
-/* Use prototypes in function declarations. */
-#define TAO_YY_USE_PROTOS
-
-/* The "const" storage-class-modifier is valid. */
-#define TAO_YY_USE_CONST
-
-#else /* ! __cplusplus */
-
-#if __STDC__
-
-#define TAO_YY_USE_PROTOS
-#define TAO_YY_USE_CONST
-
-#endif /* __STDC__ */
-#endif /* ! __cplusplus */
-
-#ifdef __TURBOC__
- #pragma warn -rch
- #pragma warn -use
-#define TAO_YY_USE_CONST
-#define TAO_YY_USE_PROTOS
-#endif
-
-#ifdef TAO_YY_USE_CONST
-#define tao_yyconst const
-#else
-#define tao_yyconst
-#endif
-
-
-#ifdef TAO_YY_USE_PROTOS
-#define TAO_YY_PROTO(proto) proto
-#else
-#define TAO_YY_PROTO(proto) ()
-#endif
-
-/* Returned upon end-of-file. */
-#define TAO_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 TAO_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 tao_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 TAO_YYSTATE alias is for lex
- * compatibility.
- */
-#define TAO_YY_START ((tao_yy_start - 1) / 2)
-#define TAO_YYSTATE TAO_YY_START
-
-/* Action number for EOF rule of a given start state. */
-#define TAO_YY_STATE_EOF(state) (TAO_YY_END_OF_BUFFER + state + 1)
-
-/* Special action meaning "start processing a new file". */
-#define TAO_YY_NEW_FILE tao_yyrestart( tao_yyin )
-
-#define TAO_YY_END_OF_BUFFER_CHAR 0
-
-/* Size of default input buffer. */
-#define TAO_YY_BUF_SIZE 16384
-
-typedef struct tao_yy_buffer_state *TAO_YY_BUFFER_STATE;
-
-extern int tao_yyleng;
-extern FILE *tao_yyin, *tao_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 )
- * tao_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 tao_yyless() call.
- */
-
-/* Return all but the first 'n' matched characters back to the input stream. */
-
-#define tao_yyless(n) \
- do \
- { \
- /* Undo effects of setting up tao_yytext. */ \
- *tao_yy_cp = tao_yy_hold_char; \
- TAO_YY_RESTORE_TAO_YY_MORE_OFFSET \
- tao_yy_c_buf_p = tao_yy_cp = tao_yy_bp + n - TAO_YY_MORE_ADJ; \
- TAO_YY_DO_BEFORE_ACTION; /* set up tao_yytext again */ \
- } \
- while ( 0 )
-
-#define unput(c) tao_yyunput( c, tao_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 tao_yy_size_t;
-
-
-struct tao_yy_buffer_state
- {
- FILE *tao_yy_input_file;
-
- char *tao_yy_ch_buf; /* input buffer */
- char *tao_yy_buf_pos; /* current position in input buffer */
-
- /* Size of input buffer in bytes, not including room for EOB
- * characters.
- */
- tao_yy_size_t tao_yy_buf_size;
-
- /* Number of characters read into tao_yy_ch_buf, not including EOB
- * characters.
- */
- int tao_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 tao_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 tao_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 tao_yy_at_bol;
-
- /* Whether to try to fill the input buffer when we reach the
- * end of it.
- */
- int tao_yy_fill_buffer;
-
- int tao_yy_buffer_status;
-#define TAO_YY_BUFFER_NEW 0
-#define TAO_YY_BUFFER_NORMAL 1
- /* When an EOF's been seen but there's still some text to process
- * then we mark the buffer as TAO_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 tao_yyrestart()), so that the user can continue scanning by
- * just pointing tao_yyin at a new input file.
- */
-#define TAO_YY_BUFFER_EOF_PENDING 2
- };
-
-static TAO_YY_BUFFER_STATE tao_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 TAO_YY_CURRENT_BUFFER tao_yy_current_buffer
-
-
-/* tao_yy_hold_char holds the character lost when tao_yytext is formed. */
-static char tao_yy_hold_char;
-
-static int tao_yy_n_chars; /* number of characters read into tao_yy_ch_buf */
-
-
-int tao_yyleng;
-
-/* Points to current character in buffer. */
-static char *tao_yy_c_buf_p = (char *) 0;
-static int tao_yy_init = 1; /* whether we need to initialize */
-static int tao_yy_start = 0; /* start state number */
-
-/* Flag which is used to allow tao_yywrap()'s to do buffer switches
- * instead of setting up a fresh tao_yyin. A bit of a hack ...
- */
-static int tao_yy_did_buffer_switch_on_eof;
-
-void tao_yyrestart TAO_YY_PROTO(( FILE *input_file ));
-
-void tao_yy_switch_to_buffer TAO_YY_PROTO(( TAO_YY_BUFFER_STATE new_buffer ));
-void tao_yy_load_buffer_state TAO_YY_PROTO(( void ));
-TAO_YY_BUFFER_STATE tao_yy_create_buffer TAO_YY_PROTO(( FILE *file, int size ));
-void tao_yy_delete_buffer TAO_YY_PROTO(( TAO_YY_BUFFER_STATE b ));
-void tao_yy_init_buffer TAO_YY_PROTO(( TAO_YY_BUFFER_STATE b, FILE *file ));
-void tao_yy_flush_buffer TAO_YY_PROTO(( TAO_YY_BUFFER_STATE b ));
-#define TAO_YY_FLUSH_BUFFER tao_yy_flush_buffer( tao_yy_current_buffer )
-
-TAO_YY_BUFFER_STATE tao_yy_scan_buffer TAO_YY_PROTO(( char *base, tao_yy_size_t size ));
-TAO_YY_BUFFER_STATE tao_yy_scan_string TAO_YY_PROTO(( tao_yyconst char *tao_yy_str ));
-TAO_YY_BUFFER_STATE tao_yy_scan_bytes TAO_YY_PROTO(( tao_yyconst char *bytes, int len ));
-
-static void *tao_yy_flex_alloc TAO_YY_PROTO(( tao_yy_size_t ));
-static void *tao_yy_flex_realloc TAO_YY_PROTO(( void *, tao_yy_size_t ));
-static void tao_yy_flex_free TAO_YY_PROTO(( void * ));
-
-#define tao_yy_new_buffer tao_yy_create_buffer
-
-#define tao_yy_set_interactive(is_interactive) \
- { \
- if ( ! tao_yy_current_buffer ) \
- tao_yy_current_buffer = tao_yy_create_buffer( tao_yyin, TAO_YY_BUF_SIZE ); \
- tao_yy_current_buffer->tao_yy_is_interactive = is_interactive; \
- }
-
-#define tao_yy_set_bol(at_bol) \
- { \
- if ( ! tao_yy_current_buffer ) \
- tao_yy_current_buffer = tao_yy_create_buffer( tao_yyin, TAO_YY_BUF_SIZE ); \
- tao_yy_current_buffer->tao_yy_at_bol = at_bol; \
- }
-
-#define TAO_YY_AT_BOL() (tao_yy_current_buffer->tao_yy_at_bol)
-
-typedef unsigned char TAO_YY_CHAR;
-FILE *tao_yyin = (FILE *) 0, *tao_yyout = (FILE *) 0;
-typedef int tao_yy_state_type;
-extern char tao_yytext[];
-
-
-static tao_yy_state_type tao_yy_get_previous_state TAO_YY_PROTO(( void ));
-static tao_yy_state_type tao_yy_try_NUL_trans TAO_YY_PROTO(( tao_yy_state_type current_state ));
-static int tao_yy_get_next_buffer TAO_YY_PROTO(( void ));
-static void tao_yy_fatal_error TAO_YY_PROTO(( tao_yyconst char msg[] ));
-
-/* Done after the current pattern has been matched and before the
- * corresponding action - sets up tao_yytext.
- */
-#define TAO_YY_DO_BEFORE_ACTION \
- tao_yytext_ptr = tao_yy_bp; \
- tao_yyleng = (int) (tao_yy_cp - tao_yy_bp); \
- tao_yy_hold_char = *tao_yy_cp; \
- *tao_yy_cp = '\0'; \
- if ( tao_yyleng >= TAO_YYLMAX ) \
- TAO_YY_FATAL_ERROR( "token too large, exceeds TAO_YYLMAX" ); \
- tao_yy_flex_strncpy( tao_yytext, tao_yytext_ptr, tao_yyleng + 1 ); \
- tao_yy_c_buf_p = tao_yy_cp;
-
-#define TAO_YY_NUM_RULES 82
-#define TAO_YY_END_OF_BUFFER 83
-static tao_yyconst short int tao_yy_accept[412] =
- { 0,
- 79, 79, 83, 81, 79, 80, 80, 81, 81, 81,
- 81, 81, 56, 52, 81, 81, 81, 48, 48, 48,
- 48, 48, 48, 48, 48, 48, 48, 48, 48, 48,
- 48, 48, 48, 48, 48, 48, 48, 48, 48, 81,
- 80, 79, 0, 57, 0, 0, 0, 0, 55, 51,
- 49, 78, 0, 49, 56, 0, 0, 0, 52, 47,
- 45, 46, 48, 48, 0, 0, 48, 48, 48, 48,
- 48, 48, 48, 48, 48, 48, 48, 48, 48, 48,
- 42, 48, 48, 48, 48, 48, 48, 48, 48, 48,
- 48, 48, 48, 48, 48, 48, 48, 48, 48, 48,
-
- 48, 48, 48, 0, 73, 0, 0, 0, 0, 0,
- 0, 0, 59, 0, 59, 0, 0, 55, 0, 51,
- 0, 49, 0, 77, 77, 49, 0, 50, 54, 48,
- 0, 58, 0, 0, 0, 48, 48, 1, 48, 48,
- 48, 48, 48, 48, 48, 48, 48, 48, 48, 48,
- 48, 48, 48, 48, 48, 48, 48, 43, 48, 48,
- 48, 48, 48, 48, 48, 48, 48, 48, 48, 48,
- 48, 48, 48, 48, 48, 0, 0, 0, 0, 0,
- 0, 62, 60, 0, 0, 53, 0, 49, 50, 48,
- 0, 63, 0, 39, 48, 48, 48, 18, 25, 48,
-
- 48, 48, 48, 48, 12, 48, 48, 33, 48, 48,
- 22, 48, 48, 48, 48, 48, 48, 48, 48, 48,
- 48, 48, 48, 48, 48, 48, 48, 48, 48, 48,
- 29, 48, 48, 0, 0, 0, 0, 0, 0, 74,
- 0, 0, 0, 0, 0, 60, 0, 61, 0, 40,
- 0, 0, 48, 48, 48, 9, 48, 48, 48, 48,
- 48, 20, 41, 48, 48, 48, 28, 48, 48, 48,
- 48, 48, 48, 23, 48, 48, 48, 48, 48, 48,
- 16, 48, 48, 26, 48, 69, 0, 0, 0, 0,
- 0, 0, 0, 0, 0, 0, 64, 0, 48, 48,
-
- 48, 48, 32, 48, 21, 48, 48, 2, 30, 44,
- 48, 35, 3, 48, 48, 13, 11, 48, 17, 48,
- 48, 48, 48, 48, 67, 0, 0, 0, 0, 0,
- 0, 0, 0, 0, 0, 0, 0, 48, 48, 27,
- 7, 19, 48, 48, 34, 48, 48, 48, 48, 10,
- 48, 48, 14, 0, 75, 75, 0, 71, 0, 0,
- 70, 0, 0, 0, 0, 0, 0, 31, 48, 48,
- 48, 4, 15, 36, 48, 24, 48, 0, 0, 0,
- 68, 0, 0, 0, 0, 0, 0, 5, 6, 8,
- 48, 38, 0, 65, 65, 0, 76, 76, 0, 0,
-
- 0, 48, 0, 0, 0, 37, 72, 0, 66, 66,
- 0
- } ;
-
-static tao_yyconst int tao_yy_ec[256] =
- { 0,
- 1, 1, 1, 1, 1, 1, 1, 1, 2, 3,
- 1, 1, 4, 1, 1, 1, 1, 1, 1, 1,
- 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
- 1, 5, 1, 6, 7, 1, 1, 1, 8, 1,
- 1, 9, 10, 1, 11, 12, 13, 14, 15, 15,
- 15, 15, 15, 15, 15, 16, 16, 17, 1, 18,
- 19, 20, 21, 1, 22, 23, 23, 23, 24, 25,
- 26, 26, 26, 26, 26, 27, 26, 26, 26, 26,
- 26, 28, 29, 30, 31, 26, 26, 32, 26, 26,
- 1, 33, 1, 1, 34, 1, 35, 36, 37, 38,
-
- 39, 40, 41, 42, 43, 26, 26, 44, 45, 46,
- 47, 48, 49, 50, 51, 52, 53, 54, 55, 56,
- 57, 26, 1, 1, 1, 1, 1, 1, 1, 1,
- 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
- 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
- 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
- 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
- 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
- 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
- 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
-
- 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
- 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
- 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
- 1, 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 tao_yyconst int tao_yy_meta[58] =
- { 0,
- 1, 1, 2, 1, 1, 3, 1, 4, 1, 1,
- 1, 1, 1, 5, 5, 5, 1, 1, 1, 1,
- 3, 5, 5, 5, 5, 6, 6, 6, 6, 6,
- 6, 6, 3, 6, 7, 7, 5, 5, 5, 7,
- 6, 6, 6, 6, 6, 8, 6, 6, 6, 8,
- 6, 8, 6, 8, 6, 6, 6
- } ;
-
-static tao_yyconst short int tao_yy_base[437] =
- { 0,
- 0, 51, 826, 827, 57, 827, 827, 54, 792, 49,
- 52, 60, 62, 67, 807, 805, 802, 0, 799, 82,
- 792, 53, 772, 50, 57, 24, 774, 771, 769, 768,
- 779, 47, 45, 36, 68, 52, 767, 77, 71, 123,
- 791, 109, 107, 827, 0, 803, 121, 101, 118, 131,
- 164, 827, 148, 144, 170, 181, 196, 0, 201, 827,
- 827, 827, 0, 783, 135, 776, 777, 756, 749, 753,
- 757, 752, 767, 755, 749, 759, 745, 744, 759, 748,
- 129, 748, 755, 740, 739, 751, 737, 745, 751, 743,
- 750, 735, 736, 732, 733, 737, 726, 730, 105, 733,
-
- 733, 733, 722, 729, 827, 143, 218, 734, 728, 720,
- 750, 157, 827, 760, 759, 184, 758, 212, 0, 229,
- 244, 827, 197, 827, 226, 0, 234, 247, 0, 736,
- 169, 827, 711, 755, 111, 738, 709, 0, 710, 715,
- 719, 707, 110, 704, 720, 718, 708, 713, 716, 698,
- 696, 709, 706, 693, 702, 705, 688, 0, 688, 697,
- 689, 701, 685, 687, 130, 688, 683, 688, 694, 685,
- 688, 677, 691, 693, 677, 720, 719, 685, 677, 687,
- 290, 827, 827, 223, 713, 0, 250, 263, 827, 696,
- 0, 827, 0, 0, 669, 675, 678, 0, 0, 664,
-
- 676, 667, 660, 668, 0, 663, 658, 0, 657, 658,
- 0, 663, 652, 653, 669, 668, 659, 662, 653, 660,
- 646, 651, 659, 648, 657, 656, 654, 645, 649, 650,
- 0, 638, 644, 680, 277, 639, 645, 642, 638, 827,
- 208, 305, 643, 637, 629, 827, 670, 827, 669, 0,
- 333, 668, 640, 638, 638, 0, 616, 626, 626, 630,
- 616, 0, 0, 627, 627, 626, 0, 566, 559, 562,
- 544, 546, 543, 0, 536, 522, 515, 512, 503, 495,
- 0, 487, 468, 0, 463, 827, 309, 455, 313, 460,
- 498, 497, 463, 455, 464, 360, 827, 489, 458, 441,
-
- 438, 423, 0, 414, 0, 419, 425, 0, 0, 0,
- 420, 0, 0, 409, 404, 0, 0, 388, 0, 387,
- 393, 385, 359, 371, 827, 338, 280, 330, 399, 376,
- 403, 357, 348, 347, 339, 407, 371, 325, 315, 0,
- 0, 0, 318, 314, 0, 293, 304, 289, 302, 0,
- 298, 283, 0, 293, 827, 296, 385, 827, 316, 265,
- 827, 434, 264, 449, 257, 213, 281, 0, 247, 239,
- 236, 0, 0, 0, 235, 0, 230, 251, 360, 389,
- 827, 453, 404, 456, 471, 412, 221, 0, 0, 0,
- 198, 0, 415, 827, 431, 475, 827, 477, 229, 159,
-
- 271, 115, 125, 479, 485, 0, 827, 487, 827, 489,
- 827, 510, 518, 522, 528, 536, 544, 548, 555, 563,
- 568, 571, 578, 583, 586, 589, 593, 600, 605, 612,
- 617, 624, 632, 640, 648, 656
- } ;
-
-static tao_yyconst short int tao_yy_def[437] =
- { 0,
- 411, 1, 411, 411, 411, 411, 411, 412, 413, 411,
- 411, 411, 411, 411, 411, 411, 411, 414, 414, 414,
- 414, 414, 414, 414, 414, 414, 414, 414, 414, 414,
- 414, 414, 414, 414, 414, 414, 414, 414, 414, 411,
- 411, 411, 412, 411, 415, 411, 416, 411, 411, 411,
- 411, 411, 417, 51, 411, 411, 411, 418, 411, 411,
- 411, 411, 414, 414, 419, 420, 414, 414, 414, 414,
- 414, 414, 414, 414, 414, 414, 414, 414, 414, 414,
- 414, 414, 414, 414, 414, 414, 414, 414, 414, 414,
- 414, 414, 414, 414, 414, 414, 414, 414, 414, 414,
-
- 414, 414, 414, 40, 411, 40, 411, 411, 411, 411,
- 411, 412, 411, 411, 411, 411, 421, 411, 422, 411,
- 411, 411, 417, 411, 417, 54, 411, 411, 418, 414,
- 419, 411, 411, 411, 411, 414, 414, 414, 414, 414,
- 414, 414, 414, 414, 414, 414, 414, 414, 414, 414,
- 414, 414, 414, 414, 414, 414, 414, 414, 414, 414,
- 414, 414, 414, 414, 414, 414, 414, 414, 414, 414,
- 414, 414, 414, 414, 414, 423, 411, 411, 411, 411,
- 411, 411, 411, 411, 424, 422, 411, 411, 411, 414,
- 425, 411, 426, 414, 414, 414, 414, 414, 414, 414,
-
- 414, 414, 414, 414, 414, 414, 414, 414, 414, 414,
- 414, 414, 414, 414, 414, 414, 414, 414, 414, 414,
- 414, 414, 414, 414, 414, 414, 414, 414, 414, 414,
- 414, 414, 414, 423, 411, 411, 411, 411, 181, 411,
- 181, 411, 411, 411, 411, 411, 411, 411, 411, 414,
- 419, 427, 414, 414, 414, 414, 414, 414, 414, 414,
- 414, 414, 414, 414, 414, 414, 414, 414, 414, 414,
- 414, 414, 414, 414, 414, 414, 414, 414, 414, 414,
- 414, 414, 414, 414, 414, 411, 411, 411, 411, 411,
- 428, 411, 411, 411, 411, 251, 411, 429, 414, 414,
-
- 414, 414, 414, 414, 414, 414, 414, 414, 414, 414,
- 414, 414, 414, 414, 414, 414, 414, 414, 414, 414,
- 414, 414, 414, 414, 411, 411, 430, 411, 411, 411,
- 428, 411, 411, 411, 411, 251, 431, 414, 414, 414,
- 414, 414, 414, 414, 414, 414, 414, 414, 414, 414,
- 414, 414, 414, 430, 411, 430, 411, 411, 432, 411,
- 411, 411, 411, 411, 411, 419, 411, 414, 414, 414,
- 414, 414, 414, 414, 414, 414, 414, 432, 411, 433,
- 411, 411, 434, 411, 411, 411, 411, 414, 414, 414,
- 414, 414, 433, 411, 433, 434, 411, 434, 435, 411,
-
- 411, 414, 435, 411, 436, 414, 411, 436, 411, 436,
- 0, 411, 411, 411, 411, 411, 411, 411, 411, 411,
- 411, 411, 411, 411, 411, 411, 411, 411, 411, 411,
- 411, 411, 411, 411, 411, 411
- } ;
-
-static tao_yyconst short int tao_yy_nxt[885] =
- { 0,
- 4, 5, 6, 7, 5, 8, 4, 9, 4, 4,
- 10, 11, 12, 13, 14, 14, 15, 16, 4, 17,
- 7, 18, 18, 18, 19, 18, 20, 18, 18, 21,
- 18, 18, 4, 4, 22, 23, 24, 25, 26, 27,
- 18, 18, 28, 29, 30, 31, 32, 33, 18, 34,
- 35, 36, 37, 38, 39, 18, 18, 40, 42, 44,
- 48, 42, 49, 50, 50, 51, 51, 51, 52, 78,
- 90, 41, 53, 54, 91, 55, 55, 56, 54, 79,
- 59, 59, 59, 85, 72, 57, 45, 65, 68, 66,
- 57, 73, 86, 58, 88, 76, 74, 89, 69, 87,
-
- 57, 97, 75, 77, 70, 57, 92, 102, 98, 93,
- 42, 100, 44, 42, 51, 51, 51, 58, 192, 94,
- 95, 103, 96, 101, 104, 105, 105, 106, 115, 54,
- 404, 118, 118, 56, 116, 116, 107, 107, 107, 45,
- 132, 57, 54, 105, 120, 120, 120, 170, 176, 119,
- 124, 125, 117, 406, 57, 171, 57, 126, 126, 126,
- 200, 201, 44, 193, 399, 108, 109, 133, 125, 57,
- 110, 150, 222, 119, 132, 151, 117, 51, 51, 51,
- 152, 54, 223, 55, 55, 56, 411, 121, 122, 45,
- 122, 183, 54, 57, 56, 56, 56, 184, 184, 124,
-
- 125, 133, 121, 122, 57, 127, 127, 122, 57, 128,
- 128, 128, 54, 291, 59, 59, 59, 125, 132, 57,
- 105, 105, 177, 54, 57, 118, 118, 56, 124, 125,
- 246, 107, 107, 107, 404, 57, 247, 247, 105, 57,
- 54, 402, 120, 120, 120, 133, 125, 128, 128, 128,
- 57, 411, 57, 187, 187, 401, 379, 188, 188, 188,
- 128, 128, 128, 188, 188, 188, 380, 57, 392, 380,
- 391, 189, 405, 189, 390, 405, 188, 188, 188, 286,
- 286, 287, 355, 356, 389, 388, 189, 122, 297, 122,
- 189, 239, 240, 240, 241, 355, 356, 286, 355, 356,
-
- 356, 387, 122, 242, 242, 242, 122, 240, 240, 292,
- 240, 325, 325, 356, 328, 383, 356, 328, 242, 242,
- 242, 379, 326, 326, 326, 240, 329, 329, 329, 325,
- 377, 328, 243, 244, 328, 376, 375, 245, 132, 374,
- 325, 325, 373, 329, 329, 329, 296, 296, 296, 372,
- 371, 326, 326, 326, 296, 296, 296, 296, 325, 361,
- 361, 362, 358, 358, 370, 133, 369, 296, 296, 296,
- 296, 296, 296, 336, 336, 336, 368, 361, 297, 365,
- 358, 336, 336, 336, 336, 364, 357, 358, 358, 357,
- 359, 394, 395, 363, 336, 336, 336, 336, 336, 336,
-
- 357, 358, 358, 357, 359, 358, 397, 398, 332, 395,
- 360, 353, 329, 329, 329, 352, 400, 394, 395, 358,
- 366, 366, 366, 351, 398, 386, 386, 386, 366, 366,
- 366, 366, 350, 394, 395, 395, 381, 381, 349, 348,
- 347, 366, 366, 366, 366, 366, 366, 382, 382, 382,
- 384, 395, 346, 385, 381, 381, 381, 384, 345, 344,
- 385, 343, 386, 386, 386, 342, 382, 382, 382, 386,
- 386, 386, 384, 381, 341, 385, 399, 397, 398, 397,
- 398, 407, 407, 340, 386, 386, 386, 409, 410, 409,
- 410, 409, 410, 339, 338, 398, 297, 398, 335, 407,
-
- 334, 333, 291, 332, 330, 410, 327, 410, 324, 410,
- 43, 43, 43, 43, 43, 43, 43, 43, 46, 323,
- 46, 46, 46, 46, 46, 46, 63, 63, 63, 63,
- 112, 112, 322, 321, 112, 112, 114, 320, 114, 114,
- 114, 114, 114, 114, 123, 123, 123, 123, 123, 123,
- 123, 123, 129, 319, 129, 131, 131, 131, 131, 131,
- 131, 131, 131, 134, 318, 134, 134, 134, 134, 134,
- 134, 185, 185, 317, 185, 186, 316, 186, 234, 234,
- 234, 234, 234, 234, 234, 234, 249, 249, 315, 249,
- 251, 314, 251, 252, 313, 252, 298, 298, 312, 298,
-
- 331, 331, 331, 331, 331, 331, 331, 331, 337, 337,
- 311, 337, 354, 354, 354, 354, 354, 354, 354, 354,
- 367, 367, 310, 367, 378, 378, 378, 378, 378, 378,
- 378, 378, 393, 393, 393, 393, 393, 393, 393, 393,
- 396, 396, 396, 396, 396, 396, 396, 396, 403, 403,
- 403, 403, 403, 403, 403, 403, 408, 408, 408, 408,
- 408, 408, 408, 408, 309, 308, 307, 306, 305, 304,
- 303, 302, 301, 300, 299, 297, 248, 246, 295, 294,
- 293, 411, 290, 289, 288, 235, 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, 255, 254, 253, 250,
- 248, 238, 237, 236, 176, 235, 233, 232, 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, 199, 198, 197, 196,
- 195, 194, 192, 191, 190, 182, 182, 182, 181, 180,
- 179, 178, 411, 175, 174, 173, 172, 169, 168, 167,
- 166, 165, 164, 163, 162, 161, 160, 159, 158, 157,
- 156, 155, 154, 153, 149, 148, 147, 146, 145, 144,
-
- 143, 142, 141, 140, 139, 138, 137, 136, 135, 130,
- 113, 111, 99, 84, 83, 82, 81, 80, 71, 67,
- 64, 62, 61, 60, 47, 411, 3, 411, 411, 411,
- 411, 411, 411, 411, 411, 411, 411, 411, 411, 411,
- 411, 411, 411, 411, 411, 411, 411, 411, 411, 411,
- 411, 411, 411, 411, 411, 411, 411, 411, 411, 411,
- 411, 411, 411, 411, 411, 411, 411, 411, 411, 411,
- 411, 411, 411, 411, 411, 411, 411, 411, 411, 411,
- 411, 411, 411, 411
- } ;
-
-static tao_yyconst short int tao_yy_chk[885] =
- { 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, 2, 5, 8,
- 10, 5, 10, 10, 10, 11, 11, 11, 12, 26,
- 34, 2, 12, 13, 34, 13, 13, 13, 14, 26,
- 14, 14, 14, 32, 24, 13, 8, 20, 22, 20,
- 14, 24, 32, 13, 33, 25, 24, 33, 22, 32,
-
- 13, 36, 24, 25, 22, 14, 35, 39, 36, 35,
- 42, 38, 43, 42, 48, 48, 48, 13, 135, 35,
- 35, 39, 35, 38, 40, 40, 40, 40, 47, 49,
- 403, 49, 49, 49, 47, 47, 40, 40, 40, 43,
- 65, 49, 50, 40, 50, 50, 50, 99, 106, 49,
- 53, 53, 47, 402, 50, 99, 49, 54, 54, 54,
- 143, 143, 112, 135, 400, 40, 40, 65, 53, 50,
- 40, 81, 165, 49, 131, 81, 47, 51, 51, 51,
- 81, 55, 165, 55, 55, 55, 106, 51, 51, 112,
- 51, 116, 56, 55, 56, 56, 56, 116, 116, 123,
-
- 123, 131, 51, 51, 56, 57, 57, 51, 55, 57,
- 57, 57, 59, 241, 59, 59, 59, 123, 366, 56,
- 107, 107, 107, 118, 59, 118, 118, 118, 125, 125,
- 184, 107, 107, 107, 399, 118, 184, 184, 107, 59,
- 120, 391, 120, 120, 120, 366, 125, 127, 127, 127,
- 118, 241, 120, 121, 121, 387, 378, 121, 121, 121,
- 128, 128, 128, 187, 187, 187, 360, 120, 377, 360,
- 375, 128, 401, 128, 371, 401, 188, 188, 188, 235,
- 235, 235, 327, 327, 370, 369, 128, 188, 367, 188,
- 128, 181, 181, 181, 181, 354, 354, 235, 356, 356,
-
- 327, 365, 188, 181, 181, 181, 188, 242, 242, 242,
- 181, 287, 287, 354, 289, 363, 356, 289, 242, 242,
- 242, 359, 287, 287, 287, 242, 289, 289, 289, 287,
- 352, 328, 181, 181, 328, 351, 349, 181, 251, 348,
- 326, 326, 347, 328, 328, 328, 251, 251, 251, 346,
- 344, 326, 326, 326, 251, 251, 251, 251, 326, 332,
- 332, 332, 379, 379, 343, 251, 339, 251, 251, 251,
- 251, 251, 251, 296, 296, 296, 338, 332, 337, 335,
- 379, 296, 296, 296, 296, 334, 357, 357, 357, 357,
- 357, 380, 380, 333, 296, 296, 296, 296, 296, 296,
-
- 329, 329, 329, 329, 329, 357, 383, 383, 331, 380,
- 330, 324, 329, 329, 329, 323, 386, 393, 393, 329,
- 336, 336, 336, 322, 383, 386, 386, 386, 336, 336,
- 336, 336, 321, 395, 395, 393, 362, 362, 320, 318,
- 315, 336, 336, 336, 336, 336, 336, 362, 362, 362,
- 364, 395, 314, 364, 362, 382, 382, 384, 311, 307,
- 384, 306, 364, 364, 364, 304, 382, 382, 382, 384,
- 384, 384, 385, 382, 302, 385, 385, 396, 396, 398,
- 398, 404, 404, 301, 385, 385, 385, 405, 405, 408,
- 408, 410, 410, 300, 299, 396, 298, 398, 295, 404,
-
- 294, 293, 292, 291, 290, 405, 288, 408, 285, 410,
- 412, 412, 412, 412, 412, 412, 412, 412, 413, 283,
- 413, 413, 413, 413, 413, 413, 414, 414, 414, 414,
- 415, 415, 282, 280, 415, 415, 416, 279, 416, 416,
- 416, 416, 416, 416, 417, 417, 417, 417, 417, 417,
- 417, 417, 418, 278, 418, 419, 419, 419, 419, 419,
- 419, 419, 419, 420, 277, 420, 420, 420, 420, 420,
- 420, 421, 421, 276, 421, 422, 275, 422, 423, 423,
- 423, 423, 423, 423, 423, 423, 424, 424, 273, 424,
- 425, 272, 425, 426, 271, 426, 427, 427, 270, 427,
-
- 428, 428, 428, 428, 428, 428, 428, 428, 429, 429,
- 269, 429, 430, 430, 430, 430, 430, 430, 430, 430,
- 431, 431, 268, 431, 432, 432, 432, 432, 432, 432,
- 432, 432, 433, 433, 433, 433, 433, 433, 433, 433,
- 434, 434, 434, 434, 434, 434, 434, 434, 435, 435,
- 435, 435, 435, 435, 435, 435, 436, 436, 436, 436,
- 436, 436, 436, 436, 266, 265, 264, 261, 260, 259,
- 258, 257, 255, 254, 253, 252, 249, 247, 245, 244,
- 243, 239, 238, 237, 236, 234, 233, 232, 230, 229,
- 228, 227, 226, 225, 224, 223, 222, 221, 220, 219,
-
- 218, 217, 216, 215, 214, 213, 212, 210, 209, 207,
- 206, 204, 203, 202, 201, 200, 197, 196, 195, 190,
- 185, 180, 179, 178, 177, 176, 175, 174, 173, 172,
- 171, 170, 169, 168, 167, 166, 164, 163, 162, 161,
- 160, 159, 157, 156, 155, 154, 153, 152, 151, 150,
- 149, 148, 147, 146, 145, 144, 142, 141, 140, 139,
- 137, 136, 134, 133, 130, 117, 115, 114, 111, 110,
- 109, 108, 104, 103, 102, 101, 100, 98, 97, 96,
- 95, 94, 93, 92, 91, 90, 89, 88, 87, 86,
- 85, 84, 83, 82, 80, 79, 78, 77, 76, 75,
-
- 74, 73, 72, 71, 70, 69, 68, 67, 66, 64,
- 46, 41, 37, 31, 30, 29, 28, 27, 23, 21,
- 19, 17, 16, 15, 9, 3, 411, 411, 411, 411,
- 411, 411, 411, 411, 411, 411, 411, 411, 411, 411,
- 411, 411, 411, 411, 411, 411, 411, 411, 411, 411,
- 411, 411, 411, 411, 411, 411, 411, 411, 411, 411,
- 411, 411, 411, 411, 411, 411, 411, 411, 411, 411,
- 411, 411, 411, 411, 411, 411, 411, 411, 411, 411,
- 411, 411, 411, 411
- } ;
-
-static tao_yy_state_type tao_yy_last_accepting_state;
-static char *tao_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 tao_yymore() tao_yymore_used_but_not_detected
-#define TAO_YY_MORE_ADJ 0
-#define TAO_YY_RESTORE_TAO_YY_MORE_OFFSET
-#ifndef TAO_YYLMAX
-#define TAO_YYLMAX 8192
-#endif
-
-char tao_yytext[TAO_YYLMAX];
-char *tao_yytext_ptr;
-#line 1 "fe/idl.ll"
-#define INITIAL 0
-#line 2 "fe/idl.ll"
-/* $Id: idl.ll,v 1.41 1999/08/12 21:49:27 parsons Exp $
-
-COPYRIGHT
-
-Copyright 1992, 1993, 1994 Sun Microsystems, Inc. Printed in the United
-States of America. All Rights Reserved.
-
-This product is protected by copyright and distributed under the following
-license restricting its use.
-
-The Interface Definition Language Compiler Front End (CFE) is made
-available for your use provided that you include this license and copyright
-notice on all media and documentation and the software program in which
-this product is incorporated in whole or part. You may copy and extend
-functionality (but may not remove functionality) of the Interface
-Definition Language CFE without charge, but you are not authorized to
-license or distribute it to anyone else except as part of a product or
-program developed by you or with the express written consent of Sun
-Microsystems, Inc. ("Sun").
-
-The names of Sun Microsystems, Inc. and any of its subsidiaries or
-affiliates may not be used in advertising or publicity pertaining to
-distribution of Interface Definition Language CFE as permitted herein.
-
-This license is effective until terminated by Sun for failure to comply
-with this license. Upon termination, you shall destroy or return all code
-and documentation for the Interface Definition Language CFE.
-
-IDL_INTERFACE DEFINITION LANGUAGE CFE IS PROVIDED AS IS WITH NO WARRANTIES OF
-IDL_ANY KIND INCLUDING THE WARRANTIES OF DESIGN, MERCHANTIBILITY AND FITNESS
-FOR A PARTICULAR PURPOSE, NONINFRINGEMENT, OR ARISING FROM A COURSE OF
-DEALING, USAGE OR TRADE PRACTICE.
-
-IDL_INTERFACE DEFINITION LANGUAGE CFE IS PROVIDED WITH NO SUPPORT AND WITHOUT
-IDL_ANY OBLIGATION ON THE PART OF Sun OR IDL_ANY OF ITS SUBSIDIARIES OR AFFILIATES
-TO ASSIST IDL_IN ITS USE, CORRECTION, MODIFICATION OR ENHANCEMENT.
-
-SUN OR IDL_ANY OF ITS SUBSIDIARIES OR AFFILIATES SHALL HAVE NO LIABILITY WITH
-RESPECT TO THE INFRINGEMENT OF COPYRIGHTS, TRADE SECRETS OR IDL_ANY PATENTS BY
-IDL_INTERFACE DEFINITION LANGUAGE CFE OR IDL_ANY PART THEREOF.
-
-IDL_IN NO EVENT WILL SUN OR IDL_ANY OF ITS SUBSIDIARIES OR AFFILIATES BE LIABLE FOR
-IDL_ANY LOST REVENUE OR PROFITS OR OTHER SPECIAL, INDIRECT AND CONSEQUENTIAL
-DAMAGES, EVEN IF SUN HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.
-
-Use, duplication, or disclosure by the government is subject to
-restrictions as set forth in subparagraph (c)(1)(ii) of the Rights in
-Technical Data and Computer Software clause at DFARS 252.227-7013 and FAR
-52.227-19.
-
-Sun, Sun Microsystems and the Sun logo are trademarks or registered
-trademarks of Sun Microsystems, Inc.
-
-SunSoft, Inc.
-2550 Garcia Avenue
-Mountain View, California 94043
-
-NOTE:
-
-SunOS, SunSoft, Sun, Solaris, Sun Microsystems or the Sun logo are
-trademarks or registered trademarks of Sun Microsystems, Inc.
-
- */
-
-/*
- * idl.ll - Lexical scanner for IDL 1.1
- */
-
-#include "idl.h"
-#include "idl_extern.h"
-#include "fe_private.h"
-#include "y.tab.h"
-
-static char * idl_wstring_escape_reader(char *);
-static ACE_CDR::WChar idl_wchar_escape_reader(char *);
-static char idl_escape_reader(char *);
-static double idl_atof(char *);
-static long idl_atoi(char *, long);
-static unsigned long idl_atoui(char *, long);
-static void idl_parse_line_and_file(char *);
-static void idl_store_pragma(char *);
-
-#if 0 /* defined (HPUX) */
-// HPUX has tao_yytext typed to unsigned char *. We make sure here that
-// we'll always use char * static char* __tao_yytext = (char*) tao_yytext;
-// NOTE: This will not work under flex(1) were tao_yytext is not a fixed
-// buffer, but a dynamically allocated one. This function should do
-// the trick for us.
-inline char *__tao_yytext()
-{
- return (char *) tao_yytext;
-}
-#define ace_tao_yytext __tao_yytext()
-#else
-#define ace_tao_yytext tao_yytext
-#endif /* 0 */
-
-static int scan_obv_token (int token)
-{
-#ifdef IDL_HAS_VALUETYPE
- if (idl_global->obv_support ())
- {
- return token;
- }
-#endif /* IDL_HAS_VALUETYPE */
- TAO_IDL_CPP_Keyword_Table cpp_key_tbl;
- const TAO_IDL_CPP_Keyword_Entry *entry =
- cpp_key_tbl.lookup (ace_tao_yytext,
- ACE_OS::strlen (ace_tao_yytext));
- if (entry)
- tao_yylval.strval = ACE_OS::strdup (entry->mapping_);
- else
- tao_yylval.strval = ACE_OS::strdup (ace_tao_yytext);
- return IDENTIFIER;
-}
-
-/* SO we don't choke on files that use \r\n */
-#define TAO_YY_NEVER_INTERACTIVE 1
-
-/* Macros after this point can all be overridden by user definitions in
- * section 1.
- */
-
-#ifndef TAO_YY_SKIP_TAO_YYWRAP
-#ifdef __cplusplus
-extern "C" int tao_yywrap TAO_YY_PROTO(( void ));
-#else
-extern int tao_yywrap TAO_YY_PROTO(( void ));
-#endif
-#endif
-
-#ifndef TAO_YY_NO_UNPUT
-static void tao_yyunput TAO_YY_PROTO(( int c, char *buf_ptr ));
-#endif
-
-#ifndef tao_yytext_ptr
-static void tao_yy_flex_strncpy TAO_YY_PROTO(( char *, tao_yyconst char *, int ));
-#endif
-
-#ifdef TAO_YY_NEED_STRLEN
-static int tao_yy_flex_strlen TAO_YY_PROTO(( tao_yyconst char * ));
-#endif
-
-#ifndef TAO_YY_NO_INPUT
-#ifdef __cplusplus
-static int tao_yyinput TAO_YY_PROTO(( void ));
-#else
-static int input TAO_YY_PROTO(( void ));
-#endif
-#endif
-
-#if TAO_YY_STACK_USED
-static int tao_yy_start_stack_ptr = 0;
-static int tao_yy_start_stack_depth = 0;
-static int *tao_yy_start_stack = 0;
-#ifndef TAO_YY_NO_PUSH_STATE
-static void tao_yy_push_state TAO_YY_PROTO(( int new_state ));
-#endif
-#ifndef TAO_YY_NO_POP_STATE
-static void tao_yy_pop_state TAO_YY_PROTO(( void ));
-#endif
-#ifndef TAO_YY_NO_TOP_STATE
-static int tao_yy_top_state TAO_YY_PROTO(( void ));
-#endif
-
-#else
-#define TAO_YY_NO_PUSH_STATE 1
-#define TAO_YY_NO_POP_STATE 1
-#define TAO_YY_NO_TOP_STATE 1
-#endif
-
-#ifdef TAO_YY_MALLOC_DECL
-TAO_YY_MALLOC_DECL
-#else
-#if __STDC__
-#ifndef __cplusplus
-#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 TAO_YY_READ_BUF_SIZE
-#define TAO_YY_READ_BUF_SIZE 8192
-#endif
-
-/* Copy whatever the last rule matched to the standard output. */
-
-#ifndef TAO_YY_ECHO
-/* This used to be an fputs(), but since the string might contain NUL's,
- * we now use fwrite().
- */
-#define TAO_YY_ECHO (void) fwrite( tao_yytext, tao_yyleng, 1, tao_yyout )
-#endif
-
-/* Gets input and stuffs it into "buf". number of characters read, or TAO_YY_NULL,
- * is returned in "result".
- */
-#ifndef TAO_YY_INPUT
-#define TAO_YY_INPUT(buf,result,max_size) \
- if ( tao_yy_current_buffer->tao_yy_is_interactive ) \
- { \
- int c = '*', n; \
- for ( n = 0; n < max_size && \
- (c = getc( tao_yyin )) != EOF && c != '\n'; ++n ) \
- buf[n] = (char) c; \
- if ( c == '\n' ) \
- buf[n++] = (char) c; \
- if ( c == EOF && ferror( tao_yyin ) ) \
- TAO_YY_FATAL_ERROR( "input in flex scanner failed" ); \
- result = n; \
- } \
- else if ( ((result = fread( buf, 1, max_size, tao_yyin )) == 0) \
- && ferror( tao_yyin ) ) \
- TAO_YY_FATAL_ERROR( "input in flex scanner failed" );
-#endif
-
-/* No semi-colon after return; correct usage is to write "tao_yyterminate();" -
- * we don't want an extra ';' after the "return" because that will cause
- * some compilers to complain about unreachable statements.
- */
-#ifndef tao_yyterminate
-#define tao_yyterminate() return TAO_YY_NULL
-#endif
-
-/* Number of entries by which start-condition stack grows. */
-#ifndef TAO_YY_START_STACK_INCR
-#define TAO_YY_START_STACK_INCR 25
-#endif
-
-/* Report a fatal error. */
-#ifndef TAO_YY_FATAL_ERROR
-#define TAO_YY_FATAL_ERROR(msg) tao_yy_fatal_error( msg )
-#endif
-
-/* Default declaration of generated scanner - a define so the user can
- * easily add parameters.
- */
-#ifndef TAO_YY_DECL
-#define TAO_YY_DECL int tao_yylex TAO_YY_PROTO(( void ))
-#endif
-
-/* Code executed at the beginning of each rule, after tao_yytext and tao_yyleng
- * have been set up.
- */
-#ifndef TAO_YY_USER_ACTION
-#define TAO_YY_USER_ACTION
-#endif
-
-/* Code executed at the end of each rule. */
-#ifndef TAO_YY_BREAK
-#define TAO_YY_BREAK ACE_NOTREACHED (break;)
-#endif
-
-#define TAO_YY_RULE_SETUP \
- if ( tao_yyleng > 0 ) \
- tao_yy_current_buffer->tao_yy_at_bol = \
- (tao_yytext[tao_yyleng - 1] == '\n'); \
- TAO_YY_USER_ACTION
-
-TAO_YY_DECL
- {
- register tao_yy_state_type tao_yy_current_state;
- register char *tao_yy_cp = 0, *tao_yy_bp = 0;
- register int tao_yy_act;
-
-#line 126 "fe/idl.ll"
-
-
-
- if ( tao_yy_init )
- {
- tao_yy_init = 0;
-
-#ifdef TAO_YY_USER_INIT
- TAO_YY_USER_INIT;
-#endif
-
- if ( ! tao_yy_start )
- tao_yy_start = 1; /* first start state */
-
- if ( ! tao_yyin )
- tao_yyin = stdin;
-
- if ( ! tao_yyout )
- tao_yyout = stdout;
-
- if ( ! tao_yy_current_buffer )
- tao_yy_current_buffer =
- tao_yy_create_buffer( tao_yyin, TAO_YY_BUF_SIZE );
-
- tao_yy_load_buffer_state();
- }
-
- while ( 1 ) /* loops until end-of-file is reached */
- {
- tao_yy_cp = tao_yy_c_buf_p;
-
- /* Support of tao_yytext. */
- *tao_yy_cp = tao_yy_hold_char;
-
- /* tao_yy_bp points to the position in tao_yy_ch_buf of the start of
- * the current run.
- */
- tao_yy_bp = tao_yy_cp;
-
- tao_yy_current_state = tao_yy_start;
- tao_yy_current_state += TAO_YY_AT_BOL();
-tao_yy_match:
- do
- {
- register TAO_YY_CHAR tao_yy_c = tao_yy_ec[TAO_YY_SC_TO_UI(*tao_yy_cp)];
- if ( tao_yy_accept[tao_yy_current_state] )
- {
- tao_yy_last_accepting_state = tao_yy_current_state;
- tao_yy_last_accepting_cpos = tao_yy_cp;
- }
- while ( tao_yy_chk[tao_yy_base[tao_yy_current_state] + tao_yy_c] != tao_yy_current_state )
- {
- tao_yy_current_state = (int) tao_yy_def[tao_yy_current_state];
- if ( tao_yy_current_state >= 412 )
- tao_yy_c = tao_yy_meta[(unsigned int) tao_yy_c];
- }
- tao_yy_current_state = tao_yy_nxt[tao_yy_base[tao_yy_current_state] + (unsigned int) tao_yy_c];
- ++tao_yy_cp;
- }
- while ( tao_yy_base[tao_yy_current_state] != 827 );
-
-tao_yy_find_action:
- tao_yy_act = tao_yy_accept[tao_yy_current_state];
- if ( tao_yy_act == 0 )
- { /* have to back up */
- tao_yy_cp = tao_yy_last_accepting_cpos;
- tao_yy_current_state = tao_yy_last_accepting_state;
- tao_yy_act = tao_yy_accept[tao_yy_current_state];
- }
-
- TAO_YY_DO_BEFORE_ACTION;
-
-
-do_action: /* This label is used only to access EOF actions. */
-
-
- switch ( tao_yy_act )
- { /* beginning of action switch */
- case 0: /* must back up */
- /* undo the effects of TAO_YY_DO_BEFORE_ACTION */
- *tao_yy_cp = tao_yy_hold_char;
- tao_yy_cp = tao_yy_last_accepting_cpos;
- tao_yy_current_state = tao_yy_last_accepting_state;
- goto tao_yy_find_action;
-
-case 1:
-TAO_YY_RULE_SETUP
-#line 128 "fe/idl.ll"
-return IDL_ANY;
- TAO_YY_BREAK
-case 2:
-TAO_YY_RULE_SETUP
-#line 129 "fe/idl.ll"
-return IDL_MODULE;
- TAO_YY_BREAK
-case 3:
-TAO_YY_RULE_SETUP
-#line 130 "fe/idl.ll"
-return IDL_RAISES;
- TAO_YY_BREAK
-case 4:
-TAO_YY_RULE_SETUP
-#line 131 "fe/idl.ll"
-return IDL_READONLY;
- TAO_YY_BREAK
-case 5:
-TAO_YY_RULE_SETUP
-#line 132 "fe/idl.ll"
-return IDL_ATTRIBUTE;
- TAO_YY_BREAK
-case 6:
-TAO_YY_RULE_SETUP
-#line 133 "fe/idl.ll"
-return IDL_EXCEPTION;
- TAO_YY_BREAK
-case 7:
-TAO_YY_RULE_SETUP
-#line 134 "fe/idl.ll"
-return IDL_CONTEXT;
- TAO_YY_BREAK
-case 8:
-TAO_YY_RULE_SETUP
-#line 135 "fe/idl.ll"
-return IDL_INTERFACE;
- TAO_YY_BREAK
-case 9:
-TAO_YY_RULE_SETUP
-#line 136 "fe/idl.ll"
-return IDL_CONST;
- TAO_YY_BREAK
-case 10:
-TAO_YY_RULE_SETUP
-#line 137 "fe/idl.ll"
-return IDL_TYPEDEF;
- TAO_YY_BREAK
-case 11:
-TAO_YY_RULE_SETUP
-#line 138 "fe/idl.ll"
-return IDL_STRUCT;
- TAO_YY_BREAK
-case 12:
-TAO_YY_RULE_SETUP
-#line 139 "fe/idl.ll"
-return IDL_ENUM;
- TAO_YY_BREAK
-case 13:
-TAO_YY_RULE_SETUP
-#line 140 "fe/idl.ll"
-return IDL_STRING;
- TAO_YY_BREAK
-case 14:
-TAO_YY_RULE_SETUP
-#line 141 "fe/idl.ll"
-return IDL_WSTRING;
- TAO_YY_BREAK
-case 15:
-TAO_YY_RULE_SETUP
-#line 142 "fe/idl.ll"
-return IDL_SEQUENCE;
- TAO_YY_BREAK
-case 16:
-TAO_YY_RULE_SETUP
-#line 143 "fe/idl.ll"
-return IDL_UNION;
- TAO_YY_BREAK
-case 17:
-TAO_YY_RULE_SETUP
-#line 144 "fe/idl.ll"
-return IDL_SWITCH;
- TAO_YY_BREAK
-case 18:
-TAO_YY_RULE_SETUP
-#line 145 "fe/idl.ll"
-return IDL_CASE;
- TAO_YY_BREAK
-case 19:
-TAO_YY_RULE_SETUP
-#line 146 "fe/idl.ll"
-return IDL_DEFAULT;
- TAO_YY_BREAK
-case 20:
-TAO_YY_RULE_SETUP
-#line 147 "fe/idl.ll"
-return IDL_FLOAT;
- TAO_YY_BREAK
-case 21:
-TAO_YY_RULE_SETUP
-#line 148 "fe/idl.ll"
-return IDL_DOUBLE;
- TAO_YY_BREAK
-case 22:
-TAO_YY_RULE_SETUP
-#line 149 "fe/idl.ll"
-return IDL_LONG;
- TAO_YY_BREAK
-case 23:
-TAO_YY_RULE_SETUP
-#line 150 "fe/idl.ll"
-return IDL_SHORT;
- TAO_YY_BREAK
-case 24:
-TAO_YY_RULE_SETUP
-#line 151 "fe/idl.ll"
-return IDL_UNSIGNED;
- TAO_YY_BREAK
-case 25:
-TAO_YY_RULE_SETUP
-#line 152 "fe/idl.ll"
-return IDL_CHAR;
- TAO_YY_BREAK
-case 26:
-TAO_YY_RULE_SETUP
-#line 153 "fe/idl.ll"
-return IDL_WCHAR;
- TAO_YY_BREAK
-case 27:
-TAO_YY_RULE_SETUP
-#line 154 "fe/idl.ll"
-return IDL_BOOLEAN;
- TAO_YY_BREAK
-case 28:
-TAO_YY_RULE_SETUP
-#line 155 "fe/idl.ll"
-return IDL_OCTET;
- TAO_YY_BREAK
-case 29:
-TAO_YY_RULE_SETUP
-#line 156 "fe/idl.ll"
-return IDL_VOID;
- TAO_YY_BREAK
-case 30:
-TAO_YY_RULE_SETUP
-#line 157 "fe/idl.ll"
-return IDL_NATIVE;
- TAO_YY_BREAK
-case 31:
-TAO_YY_RULE_SETUP
-#line 158 "fe/idl.ll"
-return scan_obv_token (IDL_ABSTRACT);
- TAO_YY_BREAK
-case 32:
-TAO_YY_RULE_SETUP
-#line 159 "fe/idl.ll"
-return scan_obv_token (IDL_CUSTOM);
- TAO_YY_BREAK
-case 33:
-TAO_YY_RULE_SETUP
-#line 160 "fe/idl.ll"
-return scan_obv_token (IDL_INIT);
- TAO_YY_BREAK
-case 34:
-TAO_YY_RULE_SETUP
-#line 161 "fe/idl.ll"
-return scan_obv_token (IDL_PRIVATE);
- TAO_YY_BREAK
-case 35:
-TAO_YY_RULE_SETUP
-#line 162 "fe/idl.ll"
-return scan_obv_token (IDL_PUBLIC);
- TAO_YY_BREAK
-case 36:
-TAO_YY_RULE_SETUP
-#line 163 "fe/idl.ll"
-return scan_obv_token (IDL_SUPPORTS);
- TAO_YY_BREAK
-case 37:
-TAO_YY_RULE_SETUP
-#line 164 "fe/idl.ll"
-return scan_obv_token (IDL_TRUNCATABLE);
- TAO_YY_BREAK
-case 38:
-TAO_YY_RULE_SETUP
-#line 165 "fe/idl.ll"
-return scan_obv_token (IDL_VALUETYPE);
- TAO_YY_BREAK
-case 39:
-TAO_YY_RULE_SETUP
-#line 167 "fe/idl.ll"
-return IDL_TRUETOK;
- TAO_YY_BREAK
-case 40:
-TAO_YY_RULE_SETUP
-#line 168 "fe/idl.ll"
-return IDL_FALSETOK;
- TAO_YY_BREAK
-case 41:
-TAO_YY_RULE_SETUP
-#line 170 "fe/idl.ll"
-return IDL_INOUT;
- TAO_YY_BREAK
-case 42:
-TAO_YY_RULE_SETUP
-#line 171 "fe/idl.ll"
-return IDL_IN;
- TAO_YY_BREAK
-case 43:
-TAO_YY_RULE_SETUP
-#line 172 "fe/idl.ll"
-return IDL_OUT;
- TAO_YY_BREAK
-case 44:
-TAO_YY_RULE_SETUP
-#line 173 "fe/idl.ll"
-return IDL_ONEWAY;
- TAO_YY_BREAK
-case 45:
-TAO_YY_RULE_SETUP
-#line 175 "fe/idl.ll"
-return IDL_LEFT_SHIFT;
- TAO_YY_BREAK
-case 46:
-TAO_YY_RULE_SETUP
-#line 176 "fe/idl.ll"
-return IDL_RIGHT_SHIFT;
- TAO_YY_BREAK
-case 47:
-TAO_YY_RULE_SETUP
-#line 177 "fe/idl.ll"
-{
- tao_yylval.strval = (char *) "::";
- return IDL_SCOPE_DELIMITOR;
- }
- TAO_YY_BREAK
-case 48:
-TAO_YY_RULE_SETUP
-#line 182 "fe/idl.ll"
-{
- // Make sure that this identifier is not a C++ keyword. If it is,
- // prepend it with a _cxx_. Lookup in the perfect hash table for C++
- // keyword and grab the mapping. BTW, the reason for the odd
- // regular expression is to handle EBCDIC, as well as ASCII.
-
- TAO_IDL_CPP_Keyword_Table cpp_key_tbl;
- const TAO_IDL_CPP_Keyword_Entry *entry =
- cpp_key_tbl.lookup (ace_tao_yytext,
- ACE_OS::strlen (ace_tao_yytext));
- if (entry)
- tao_yylval.strval = ACE_OS::strdup (entry->mapping_);
- else
- tao_yylval.strval = ACE_OS::strdup (ace_tao_yytext);
-
- return IDENTIFIER;
-}
- TAO_YY_BREAK
-case 49:
-TAO_YY_RULE_SETUP
-#line 200 "fe/idl.ll"
-{
- tao_yylval.dval = idl_atof(ace_tao_yytext);
- return IDL_FLOATING_PT_LITERAL;
- }
- TAO_YY_BREAK
-case 50:
-TAO_YY_RULE_SETUP
-#line 204 "fe/idl.ll"
-{
- tao_yylval.dval = idl_atof(ace_tao_yytext);
- return IDL_FLOATING_PT_LITERAL;
- }
- TAO_YY_BREAK
-case 51:
-TAO_YY_RULE_SETUP
-#line 209 "fe/idl.ll"
-{
- tao_yylval.ival = idl_atoi(ace_tao_yytext, 10);
- return IDL_INTEGER_LITERAL;
- }
- TAO_YY_BREAK
-case 52:
-TAO_YY_RULE_SETUP
-#line 213 "fe/idl.ll"
-{
- tao_yylval.uival = idl_atoui(ace_tao_yytext, 10);
- return IDL_UINTEGER_LITERAL;
- }
- TAO_YY_BREAK
-case 53:
-TAO_YY_RULE_SETUP
-#line 217 "fe/idl.ll"
-{
- tao_yylval.ival = idl_atoi(ace_tao_yytext, 16);
- return IDL_INTEGER_LITERAL;
- }
- TAO_YY_BREAK
-case 54:
-TAO_YY_RULE_SETUP
-#line 221 "fe/idl.ll"
-{
- tao_yylval.uival = idl_atoui(ace_tao_yytext, 16);
- return IDL_UINTEGER_LITERAL;
- }
- TAO_YY_BREAK
-case 55:
-TAO_YY_RULE_SETUP
-#line 225 "fe/idl.ll"
-{
- tao_yylval.ival = idl_atoi(ace_tao_yytext, 8);
- return IDL_INTEGER_LITERAL;
- }
- TAO_YY_BREAK
-case 56:
-TAO_YY_RULE_SETUP
-#line 229 "fe/idl.ll"
-{
- tao_yylval.uival = idl_atoui(ace_tao_yytext, 8);
- return IDL_UINTEGER_LITERAL;
- }
- TAO_YY_BREAK
-case 57:
-TAO_YY_RULE_SETUP
-#line 234 "fe/idl.ll"
-{
- /* Skip the quotes */
- char *tmp = ace_tao_yytext;
- tmp[strlen(tmp)-1] = '\0';
- tao_yylval.sval = new UTL_String(tmp + 1);
- return IDL_STRING_LITERAL;
- }
- TAO_YY_BREAK
-case 58:
-TAO_YY_RULE_SETUP
-#line 241 "fe/idl.ll"
-{
- /* Skip the bookends */
- char *tmp = ACE_OS::strdup (ace_tao_yytext);
- tmp[strlen (tmp) - 1] = '\0';
- tao_yylval.wsval = idl_wstring_escape_reader(tmp + 2);
- return IDL_WSTRING_LITERAL;
- }
- TAO_YY_BREAK
-case 59:
-TAO_YY_RULE_SETUP
-#line 248 "fe/idl.ll"
-{
- tao_yylval.cval = ace_tao_yytext [1];
- return IDL_CHARACTER_LITERAL;
- }
- TAO_YY_BREAK
-case 60:
-TAO_YY_RULE_SETUP
-#line 252 "fe/idl.ll"
-{
- // octal character constant
- tao_yylval.cval = idl_escape_reader(ace_tao_yytext + 1);
- return IDL_CHARACTER_LITERAL;
- }
- TAO_YY_BREAK
-case 61:
-TAO_YY_RULE_SETUP
-#line 257 "fe/idl.ll"
-{
- // hexadecimal character constant
- tao_yylval.cval = idl_escape_reader(ace_tao_yytext + 1);
- return IDL_CHARACTER_LITERAL;
- }
- TAO_YY_BREAK
-case 62:
-TAO_YY_RULE_SETUP
-#line 262 "fe/idl.ll"
-{
- tao_yylval.cval = idl_escape_reader(ace_tao_yytext + 1);
- return IDL_CHARACTER_LITERAL;
- }
- TAO_YY_BREAK
-case 63:
-TAO_YY_RULE_SETUP
-#line 266 "fe/idl.ll"
-{
- // wide character constant
- tao_yylval.wcval = ace_tao_yytext [2];
- return IDL_WCHAR_LITERAL;
- }
- TAO_YY_BREAK
-case 64:
-TAO_YY_RULE_SETUP
-#line 271 "fe/idl.ll"
-{
- // hexadecimal wide character constant
- tao_yylval.wcval = idl_wchar_escape_reader(ace_tao_yytext + 2);
- return IDL_WCHAR_LITERAL;
- }
- TAO_YY_BREAK
-case 65:
-#line 277 "fe/idl.ll"
-case 66:
-TAO_YY_RULE_SETUP
-#line 277 "fe/idl.ll"
-{/* remember pragma */
- idl_global->set_lineno(idl_global->lineno() + 1);
- idl_store_pragma(ace_tao_yytext);
- }
- break;
-case 67:
-#line 282 "fe/idl.ll"
-case 68:
-TAO_YY_RULE_SETUP
-#line 282 "fe/idl.ll"
-{
- idl_parse_line_and_file(ace_tao_yytext);
- }
- break;
-case 69:
-#line 286 "fe/idl.ll"
-case 70:
-TAO_YY_RULE_SETUP
-#line 286 "fe/idl.ll"
-{
- idl_parse_line_and_file(ace_tao_yytext);
- }
- break;
-case 71:
-#line 290 "fe/idl.ll"
-case 72:
-TAO_YY_RULE_SETUP
-#line 290 "fe/idl.ll"
-{
- idl_parse_line_and_file(ace_tao_yytext);
- }
- break;
-case 73:
-#line 294 "fe/idl.ll"
-case 74:
-TAO_YY_RULE_SETUP
-#line 294 "fe/idl.ll"
-{
- idl_parse_line_and_file(ace_tao_yytext);
- }
- break;
-case 75:
-#line 298 "fe/idl.ll"
-case 76:
-TAO_YY_RULE_SETUP
-#line 298 "fe/idl.ll"
-{
- /* ignore cpp ident */
- idl_global->set_lineno(idl_global->lineno() + 1);
- }
- break;
-case 77:
-TAO_YY_RULE_SETUP
-#line 302 "fe/idl.ll"
-{
- /* ignore comments */
- idl_global->set_lineno(idl_global->lineno() + 1);
- }
- break;
-case 78:
-TAO_YY_RULE_SETUP
-#line 306 "fe/idl.ll"
-{
- for(;;) {
- char c = tao_yyinput();
- if (c == '*') {
- char next = tao_yyinput();
- if (next == '/')
- break;
- else
- tao_yyunput(c, NULL);
- if (c == '\n')
- idl_global->set_lineno(idl_global->lineno() + 1);
- }
- }
- }
- break;
-case 79:
-TAO_YY_RULE_SETUP
-#line 320 "fe/idl.ll"
-;
- break;
-case 80:
-TAO_YY_RULE_SETUP
-#line 321 "fe/idl.ll"
-{
- idl_global->set_lineno(idl_global->lineno() + 1);
- }
- break;
-case 81:
-TAO_YY_RULE_SETUP
-#line 324 "fe/idl.ll"
-return ace_tao_yytext [0];
- TAO_YY_BREAK
-case 82:
-TAO_YY_RULE_SETUP
-#line 326 "fe/idl.ll"
-TAO_YY_ECHO;
- break;
-case TAO_YY_STATE_EOF(INITIAL):
- tao_yyterminate();
-
- case TAO_YY_END_OF_BUFFER:
- {
- /* Amount of text matched not including the EOB char. */
- int tao_yy_amount_of_matched_text = (int) (tao_yy_cp - tao_yytext_ptr) - 1;
-
- /* Undo the effects of TAO_YY_DO_BEFORE_ACTION. */
- *tao_yy_cp = tao_yy_hold_char;
- TAO_YY_RESTORE_TAO_YY_MORE_OFFSET
-
- if ( tao_yy_current_buffer->tao_yy_buffer_status == TAO_YY_BUFFER_NEW )
- {
- /* We're scanning a new file or input source. It's
- * possible that this happened because the user
- * just pointed tao_yyin at a new source and called
- * tao_yylex(). If so, then we have to assure
- * consistency between tao_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.
- */
- tao_yy_n_chars = tao_yy_current_buffer->tao_yy_n_chars;
- tao_yy_current_buffer->tao_yy_input_file = tao_yyin;
- tao_yy_current_buffer->tao_yy_buffer_status = TAO_YY_BUFFER_NORMAL;
- }
-
- /* Note that here we test for tao_yy_c_buf_p "<=" to the position
- * of the first EOB in the buffer, since tao_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 ( tao_yy_c_buf_p <= &tao_yy_current_buffer->tao_yy_ch_buf[tao_yy_n_chars] )
- { /* This was really a NUL. */
- tao_yy_state_type tao_yy_next_state;
-
- tao_yy_c_buf_p = tao_yytext_ptr + tao_yy_amount_of_matched_text;
-
- tao_yy_current_state = tao_yy_get_previous_state();
-
- /* Okay, we're now positioned to make the NUL
- * transition. We couldn't have
- * tao_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).
- */
-
- tao_yy_next_state = tao_yy_try_NUL_trans( tao_yy_current_state );
-
- tao_yy_bp = tao_yytext_ptr + TAO_YY_MORE_ADJ;
-
- if ( tao_yy_next_state )
- {
- /* Consume the NUL. */
- tao_yy_cp = ++tao_yy_c_buf_p;
- tao_yy_current_state = tao_yy_next_state;
- goto tao_yy_match;
- }
-
- else
- {
- tao_yy_cp = tao_yy_c_buf_p;
- goto tao_yy_find_action;
- }
- }
-
- else switch ( tao_yy_get_next_buffer() )
- {
- case EOB_ACT_END_OF_FILE:
- {
- tao_yy_did_buffer_switch_on_eof = 0;
-
- if ( tao_yywrap() )
- {
- /* Note: because we've taken care in
- * tao_yy_get_next_buffer() to have set up
- * tao_yytext, we can now set up
- * tao_yy_c_buf_p so that if some total
- * hoser (like flex itself) wants to
- * call the scanner after we return the
- * TAO_YY_NULL, it'll still work - another
- * TAO_YY_NULL will get returned.
- */
- tao_yy_c_buf_p = tao_yytext_ptr + TAO_YY_MORE_ADJ;
-
- tao_yy_act = TAO_YY_STATE_EOF(TAO_YY_START);
- goto do_action;
- }
-
- else
- {
- if ( ! tao_yy_did_buffer_switch_on_eof )
- TAO_YY_NEW_FILE;
- }
- break;
- }
-
- case EOB_ACT_CONTINUE_SCAN:
- tao_yy_c_buf_p =
- tao_yytext_ptr + tao_yy_amount_of_matched_text;
-
- tao_yy_current_state = tao_yy_get_previous_state();
-
- tao_yy_cp = tao_yy_c_buf_p;
- tao_yy_bp = tao_yytext_ptr + TAO_YY_MORE_ADJ;
- goto tao_yy_match;
-
- case EOB_ACT_LAST_MATCH:
- tao_yy_c_buf_p =
- &tao_yy_current_buffer->tao_yy_ch_buf[tao_yy_n_chars];
-
- tao_yy_current_state = tao_yy_get_previous_state();
-
- tao_yy_cp = tao_yy_c_buf_p;
- tao_yy_bp = tao_yytext_ptr + TAO_YY_MORE_ADJ;
- goto tao_yy_find_action;
- }
- break;
- }
-
- default:
- TAO_YY_FATAL_ERROR(
- "fatal flex scanner internal error--no action found" );
- } /* end of action switch */
- } /* end of scanning one token */
- } /* end of tao_yylex */
-
-
-/* tao_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
- */
-
-static int tao_yy_get_next_buffer()
- {
- register char *dest = tao_yy_current_buffer->tao_yy_ch_buf;
- register char *source = tao_yytext_ptr;
- register int number_to_move, i;
- int ret_val;
-
- if ( tao_yy_c_buf_p > &tao_yy_current_buffer->tao_yy_ch_buf[tao_yy_n_chars + 1] )
- TAO_YY_FATAL_ERROR(
- "fatal flex scanner internal error--end of buffer missed" );
-
- if ( tao_yy_current_buffer->tao_yy_fill_buffer == 0 )
- { /* Don't try to fill the buffer, so this is an EOF. */
- if ( tao_yy_c_buf_p - tao_yytext_ptr - TAO_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) (tao_yy_c_buf_p - tao_yytext_ptr) - 1;
-
- for ( i = 0; i < number_to_move; ++i )
- *(dest++) = *(source++);
-
- if ( tao_yy_current_buffer->tao_yy_buffer_status == TAO_YY_BUFFER_EOF_PENDING )
- /* don't do the read, it's not guaranteed to return an EOF,
- * just force an EOF
- */
- tao_yy_current_buffer->tao_yy_n_chars = tao_yy_n_chars = 0;
-
- else
- {
- int num_to_read =
- tao_yy_current_buffer->tao_yy_buf_size - number_to_move - 1;
-
- while ( num_to_read <= 0 )
- { /* Not enough room in the buffer - grow it. */
-#ifdef TAO_YY_USES_REJECT
- TAO_YY_FATAL_ERROR(
-"input buffer overflow, can't enlarge buffer because scanner uses REJECT" );
-#else
-
- /* just a shorter name for the current buffer */
- TAO_YY_BUFFER_STATE b = tao_yy_current_buffer;
-
- int tao_yy_c_buf_p_offset =
- (int) (tao_yy_c_buf_p - b->tao_yy_ch_buf);
-
- if ( b->tao_yy_is_our_buffer )
- {
- int new_size = b->tao_yy_buf_size * 2;
-
- if ( new_size <= 0 )
- b->tao_yy_buf_size += b->tao_yy_buf_size / 8;
- else
- b->tao_yy_buf_size *= 2;
-
- b->tao_yy_ch_buf = (char *)
- /* Include room in for 2 EOB chars. */
- tao_yy_flex_realloc( (void *) b->tao_yy_ch_buf,
- b->tao_yy_buf_size + 2 );
- }
- else
- /* Can't grow it, we don't own it. */
- b->tao_yy_ch_buf = 0;
-
- if ( ! b->tao_yy_ch_buf )
- TAO_YY_FATAL_ERROR(
- "fatal error - scanner input buffer overflow" );
-
- tao_yy_c_buf_p = &b->tao_yy_ch_buf[tao_yy_c_buf_p_offset];
-
- num_to_read = tao_yy_current_buffer->tao_yy_buf_size -
- number_to_move - 1;
-#endif
- }
-
- if ( num_to_read > TAO_YY_READ_BUF_SIZE )
- num_to_read = TAO_YY_READ_BUF_SIZE;
-
- /* Read in more data. */
- TAO_YY_INPUT( (&tao_yy_current_buffer->tao_yy_ch_buf[number_to_move]),
- tao_yy_n_chars, num_to_read );
-
- tao_yy_current_buffer->tao_yy_n_chars = tao_yy_n_chars;
- }
-
- if ( tao_yy_n_chars == 0 )
- {
- if ( number_to_move == TAO_YY_MORE_ADJ )
- {
- ret_val = EOB_ACT_END_OF_FILE;
- tao_yyrestart( tao_yyin );
- }
-
- else
- {
- ret_val = EOB_ACT_LAST_MATCH;
- tao_yy_current_buffer->tao_yy_buffer_status =
- TAO_YY_BUFFER_EOF_PENDING;
- }
- }
-
- else
- ret_val = EOB_ACT_CONTINUE_SCAN;
-
- tao_yy_n_chars += number_to_move;
- tao_yy_current_buffer->tao_yy_ch_buf[tao_yy_n_chars] = TAO_YY_END_OF_BUFFER_CHAR;
- tao_yy_current_buffer->tao_yy_ch_buf[tao_yy_n_chars + 1] = TAO_YY_END_OF_BUFFER_CHAR;
-
- tao_yytext_ptr = &tao_yy_current_buffer->tao_yy_ch_buf[0];
-
- return ret_val;
- }
-
-
-/* tao_yy_get_previous_state - get the state just before the EOB char was reached */
-
-static tao_yy_state_type tao_yy_get_previous_state()
- {
- register tao_yy_state_type tao_yy_current_state;
- register char *tao_yy_cp;
-
- tao_yy_current_state = tao_yy_start;
- tao_yy_current_state += TAO_YY_AT_BOL();
-
- for ( tao_yy_cp = tao_yytext_ptr + TAO_YY_MORE_ADJ; tao_yy_cp < tao_yy_c_buf_p; ++tao_yy_cp )
- {
- register TAO_YY_CHAR tao_yy_c = (*tao_yy_cp ? tao_yy_ec[TAO_YY_SC_TO_UI(*tao_yy_cp)] : 1);
- if ( tao_yy_accept[tao_yy_current_state] )
- {
- tao_yy_last_accepting_state = tao_yy_current_state;
- tao_yy_last_accepting_cpos = tao_yy_cp;
- }
- while ( tao_yy_chk[tao_yy_base[tao_yy_current_state] + tao_yy_c] != tao_yy_current_state )
- {
- tao_yy_current_state = (int) tao_yy_def[tao_yy_current_state];
- if ( tao_yy_current_state >= 412 )
- tao_yy_c = tao_yy_meta[(unsigned int) tao_yy_c];
- }
- tao_yy_current_state = tao_yy_nxt[tao_yy_base[tao_yy_current_state] + (unsigned int) tao_yy_c];
- }
-
- return tao_yy_current_state;
- }
-
-
-/* tao_yy_try_NUL_trans - try to make a transition on the NUL character
- *
- * synopsis
- * next_state = tao_yy_try_NUL_trans( current_state );
- */
-
-#ifdef TAO_YY_USE_PROTOS
-static tao_yy_state_type tao_yy_try_NUL_trans( tao_yy_state_type tao_yy_current_state )
-#else
-static tao_yy_state_type tao_yy_try_NUL_trans( tao_yy_current_state )
-tao_yy_state_type tao_yy_current_state;
-#endif
- {
- register int tao_yy_is_jam;
- register char *tao_yy_cp = tao_yy_c_buf_p;
-
- register TAO_YY_CHAR tao_yy_c = 1;
- if ( tao_yy_accept[tao_yy_current_state] )
- {
- tao_yy_last_accepting_state = tao_yy_current_state;
- tao_yy_last_accepting_cpos = tao_yy_cp;
- }
- while ( tao_yy_chk[tao_yy_base[tao_yy_current_state] + tao_yy_c] != tao_yy_current_state )
- {
- tao_yy_current_state = (int) tao_yy_def[tao_yy_current_state];
- if ( tao_yy_current_state >= 412 )
- tao_yy_c = tao_yy_meta[(unsigned int) tao_yy_c];
- }
- tao_yy_current_state = tao_yy_nxt[tao_yy_base[tao_yy_current_state] + (unsigned int) tao_yy_c];
- tao_yy_is_jam = (tao_yy_current_state == 411);
-
- return tao_yy_is_jam ? 0 : tao_yy_current_state;
- }
-
-
-#ifndef TAO_YY_NO_UNPUT
-#ifdef TAO_YY_USE_PROTOS
-static void tao_yyunput( int c, register char *tao_yy_bp )
-#else
-static void tao_yyunput( c, tao_yy_bp )
-int c;
-register char *tao_yy_bp;
-#endif
- {
- register char *tao_yy_cp = tao_yy_c_buf_p;
-
- /* undo effects of setting up tao_yytext */
- *tao_yy_cp = tao_yy_hold_char;
-
- if ( tao_yy_cp < tao_yy_current_buffer->tao_yy_ch_buf + 2 )
- { /* need to shift things up to make room */
- /* +2 for EOB chars. */
- register int number_to_move = tao_yy_n_chars + 2;
- register char *dest = &tao_yy_current_buffer->tao_yy_ch_buf[
- tao_yy_current_buffer->tao_yy_buf_size + 2];
- register char *source =
- &tao_yy_current_buffer->tao_yy_ch_buf[number_to_move];
-
- while ( source > tao_yy_current_buffer->tao_yy_ch_buf )
- *--dest = *--source;
-
- tao_yy_cp += (int) (dest - source);
- tao_yy_bp += (int) (dest - source);
- tao_yy_current_buffer->tao_yy_n_chars =
- tao_yy_n_chars = tao_yy_current_buffer->tao_yy_buf_size;
-
- if ( tao_yy_cp < tao_yy_current_buffer->tao_yy_ch_buf + 2 )
- TAO_YY_FATAL_ERROR( "flex scanner push-back overflow" );
- }
-
- *--tao_yy_cp = (char) c;
-
-
- tao_yytext_ptr = tao_yy_bp;
- tao_yy_hold_char = *tao_yy_cp;
- tao_yy_c_buf_p = tao_yy_cp;
- }
-#endif /* ifndef TAO_YY_NO_UNPUT */
-
-
-#ifdef __cplusplus
-static int tao_yyinput()
-#else
-static int input()
-#endif
- {
- int c;
-
- *tao_yy_c_buf_p = tao_yy_hold_char;
-
- if ( *tao_yy_c_buf_p == TAO_YY_END_OF_BUFFER_CHAR )
- {
- /* tao_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 ( tao_yy_c_buf_p < &tao_yy_current_buffer->tao_yy_ch_buf[tao_yy_n_chars] )
- /* This was really a NUL. */
- *tao_yy_c_buf_p = '\0';
-
- else
- { /* need more input */
- int offset = tao_yy_c_buf_p - tao_yytext_ptr;
- ++tao_yy_c_buf_p;
-
- switch ( tao_yy_get_next_buffer() )
- {
- case EOB_ACT_LAST_MATCH:
- /* This happens because tao_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. */
- tao_yyrestart( tao_yyin );
-
- /* fall through */
-
- case EOB_ACT_END_OF_FILE:
- {
- if ( tao_yywrap() )
- return EOF;
-
- if ( ! tao_yy_did_buffer_switch_on_eof )
- TAO_YY_NEW_FILE;
-#ifdef __cplusplus
- return tao_yyinput();
-#else
- return input();
-#endif
- }
-
- case EOB_ACT_CONTINUE_SCAN:
- tao_yy_c_buf_p = tao_yytext_ptr + offset;
- break;
- }
- }
- }
-
- c = *(unsigned char *) tao_yy_c_buf_p; /* cast for 8-bit char's */
- *tao_yy_c_buf_p = '\0'; /* preserve tao_yytext */
- tao_yy_hold_char = *++tao_yy_c_buf_p;
-
- tao_yy_current_buffer->tao_yy_at_bol = (c == '\n');
-
- return c;
- }
-
-
-#ifdef TAO_YY_USE_PROTOS
-void tao_yyrestart( FILE *input_file )
-#else
-void tao_yyrestart( input_file )
-FILE *input_file;
-#endif
- {
- if ( ! tao_yy_current_buffer )
- tao_yy_current_buffer = tao_yy_create_buffer( tao_yyin, TAO_YY_BUF_SIZE );
-
- tao_yy_init_buffer( tao_yy_current_buffer, input_file );
- tao_yy_load_buffer_state();
- }
-
-
-#ifdef TAO_YY_USE_PROTOS
-void tao_yy_switch_to_buffer( TAO_YY_BUFFER_STATE new_buffer )
-#else
-void tao_yy_switch_to_buffer( new_buffer )
-TAO_YY_BUFFER_STATE new_buffer;
-#endif
- {
- if ( tao_yy_current_buffer == new_buffer )
- return;
-
- if ( tao_yy_current_buffer )
- {
- /* Flush out information for old buffer. */
- *tao_yy_c_buf_p = tao_yy_hold_char;
- tao_yy_current_buffer->tao_yy_buf_pos = tao_yy_c_buf_p;
- tao_yy_current_buffer->tao_yy_n_chars = tao_yy_n_chars;
- }
-
- tao_yy_current_buffer = new_buffer;
- tao_yy_load_buffer_state();
-
- /* We don't actually know whether we did this switch during
- * EOF (tao_yywrap()) processing, but the only time this flag
- * is looked at is after tao_yywrap() is called, so it's safe
- * to go ahead and always set it.
- */
- tao_yy_did_buffer_switch_on_eof = 1;
- }
-
-
-#ifdef TAO_YY_USE_PROTOS
-void tao_yy_load_buffer_state( void )
-#else
-void tao_yy_load_buffer_state()
-#endif
- {
- tao_yy_n_chars = tao_yy_current_buffer->tao_yy_n_chars;
- tao_yytext_ptr = tao_yy_c_buf_p = tao_yy_current_buffer->tao_yy_buf_pos;
- tao_yyin = tao_yy_current_buffer->tao_yy_input_file;
- tao_yy_hold_char = *tao_yy_c_buf_p;
- }
-
-
-#ifdef TAO_YY_USE_PROTOS
-TAO_YY_BUFFER_STATE tao_yy_create_buffer( FILE *file, int size )
-#else
-TAO_YY_BUFFER_STATE tao_yy_create_buffer( file, size )
-FILE *file;
-int size;
-#endif
- {
- TAO_YY_BUFFER_STATE b;
-
- b = (TAO_YY_BUFFER_STATE) tao_yy_flex_alloc( sizeof( struct tao_yy_buffer_state ) );
- if ( ! b )
- TAO_YY_FATAL_ERROR( "out of dynamic memory in tao_yy_create_buffer()" );
-
- b->tao_yy_buf_size = size;
-
- /* tao_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->tao_yy_ch_buf = (char *) tao_yy_flex_alloc( b->tao_yy_buf_size + 2 );
- if ( ! b->tao_yy_ch_buf )
- TAO_YY_FATAL_ERROR( "out of dynamic memory in tao_yy_create_buffer()" );
-
- b->tao_yy_is_our_buffer = 1;
-
- tao_yy_init_buffer( b, file );
-
- return b;
- }
-
-
-#ifdef TAO_YY_USE_PROTOS
-void tao_yy_delete_buffer( TAO_YY_BUFFER_STATE b )
-#else
-void tao_yy_delete_buffer( b )
-TAO_YY_BUFFER_STATE b;
-#endif
- {
- if ( ! b )
- return;
-
- if ( b == tao_yy_current_buffer )
- tao_yy_current_buffer = (TAO_YY_BUFFER_STATE) 0;
-
- if ( b->tao_yy_is_our_buffer )
- tao_yy_flex_free( (void *) b->tao_yy_ch_buf );
-
- tao_yy_flex_free( (void *) b );
- }
-
-
-#ifndef TAO_YY_ALWAYS_INTERACTIVE
-#ifndef TAO_YY_NEVER_INTERACTIVE
-extern int isatty TAO_YY_PROTO(( int ));
-#endif
-#endif
-
-#ifdef TAO_YY_USE_PROTOS
-void tao_yy_init_buffer( TAO_YY_BUFFER_STATE b, FILE *file )
-#else
-void tao_yy_init_buffer( b, file )
-TAO_YY_BUFFER_STATE b;
-FILE *file;
-#endif
-
-
- {
- tao_yy_flush_buffer( b );
-
- b->tao_yy_input_file = file;
- b->tao_yy_fill_buffer = 1;
-
-#if TAO_YY_ALWAYS_INTERACTIVE
- b->tao_yy_is_interactive = 1;
-#else
-#if TAO_YY_NEVER_INTERACTIVE
- b->tao_yy_is_interactive = 0;
-#else
- b->tao_yy_is_interactive = file ? (isatty( fileno(file) ) > 0) : 0;
-#endif
-#endif
- }
-
-
-#ifdef TAO_YY_USE_PROTOS
-void tao_yy_flush_buffer( TAO_YY_BUFFER_STATE b )
-#else
-void tao_yy_flush_buffer( b )
-TAO_YY_BUFFER_STATE b;
-#endif
-
- {
- if ( ! b )
- return;
-
- b->tao_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->tao_yy_ch_buf[0] = TAO_YY_END_OF_BUFFER_CHAR;
- b->tao_yy_ch_buf[1] = TAO_YY_END_OF_BUFFER_CHAR;
-
- b->tao_yy_buf_pos = &b->tao_yy_ch_buf[0];
-
- b->tao_yy_at_bol = 1;
- b->tao_yy_buffer_status = TAO_YY_BUFFER_NEW;
-
- if ( b == tao_yy_current_buffer )
- tao_yy_load_buffer_state();
- }
-
-
-#ifndef TAO_YY_NO_SCAN_BUFFER
-#ifdef TAO_YY_USE_PROTOS
-TAO_YY_BUFFER_STATE tao_yy_scan_buffer( char *base, tao_yy_size_t size )
-#else
-TAO_YY_BUFFER_STATE tao_yy_scan_buffer( base, size )
-char *base;
-tao_yy_size_t size;
-#endif
- {
- TAO_YY_BUFFER_STATE b;
-
- if ( size < 2 ||
- base[size-2] != TAO_YY_END_OF_BUFFER_CHAR ||
- base[size-1] != TAO_YY_END_OF_BUFFER_CHAR )
- /* They forgot to leave room for the EOB's. */
- return 0;
-
- b = (TAO_YY_BUFFER_STATE) tao_yy_flex_alloc( sizeof( struct tao_yy_buffer_state ) );
- if ( ! b )
- TAO_YY_FATAL_ERROR( "out of dynamic memory in tao_yy_scan_buffer()" );
-
- b->tao_yy_buf_size = size - 2; /* "- 2" to take care of EOB's */
- b->tao_yy_buf_pos = b->tao_yy_ch_buf = base;
- b->tao_yy_is_our_buffer = 0;
- b->tao_yy_input_file = 0;
- b->tao_yy_n_chars = b->tao_yy_buf_size;
- b->tao_yy_is_interactive = 0;
- b->tao_yy_at_bol = 1;
- b->tao_yy_fill_buffer = 0;
- b->tao_yy_buffer_status = TAO_YY_BUFFER_NEW;
-
- tao_yy_switch_to_buffer( b );
-
- return b;
- }
-#endif
-
-
-#ifndef TAO_YY_NO_SCAN_STRING
-#ifdef TAO_YY_USE_PROTOS
-TAO_YY_BUFFER_STATE tao_yy_scan_string( tao_yyconst char *tao_yy_str )
-#else
-TAO_YY_BUFFER_STATE tao_yy_scan_string( tao_yy_str )
-tao_yyconst char *tao_yy_str;
-#endif
- {
- int len;
- for ( len = 0; tao_yy_str[len]; ++len )
- ;
-
- return tao_yy_scan_bytes( tao_yy_str, len );
- }
-#endif
-
-
-#ifndef TAO_YY_NO_SCAN_BYTES
-#ifdef TAO_YY_USE_PROTOS
-TAO_YY_BUFFER_STATE tao_yy_scan_bytes( tao_yyconst char *bytes, int len )
-#else
-TAO_YY_BUFFER_STATE tao_yy_scan_bytes( bytes, len )
-tao_yyconst char *bytes;
-int len;
-#endif
- {
- TAO_YY_BUFFER_STATE b;
- char *buf;
- tao_yy_size_t n;
- int i;
-
- /* Get memory for full buffer, including space for trailing EOB's. */
- n = len + 2;
- buf = (char *) tao_yy_flex_alloc( n );
- if ( ! buf )
- TAO_YY_FATAL_ERROR( "out of dynamic memory in tao_yy_scan_bytes()" );
-
- for ( i = 0; i < len; ++i )
- buf[i] = bytes[i];
-
- buf[len] = buf[len+1] = TAO_YY_END_OF_BUFFER_CHAR;
-
- b = tao_yy_scan_buffer( buf, n );
- if ( ! b )
- TAO_YY_FATAL_ERROR( "bad buffer in tao_yy_scan_bytes()" );
-
- /* It's okay to grow etc. this buffer, and we should throw it
- * away when we're done.
- */
- b->tao_yy_is_our_buffer = 1;
-
- return b;
- }
-#endif
-
-
-#ifndef TAO_YY_NO_PUSH_STATE
-#ifdef TAO_YY_USE_PROTOS
-static void tao_yy_push_state( int new_state )
-#else
-static void tao_yy_push_state( new_state )
-int new_state;
-#endif
- {
- if ( tao_yy_start_stack_ptr >= tao_yy_start_stack_depth )
- {
- tao_yy_size_t new_size;
-
- tao_yy_start_stack_depth += TAO_YY_START_STACK_INCR;
- new_size = tao_yy_start_stack_depth * sizeof( int );
-
- if ( ! tao_yy_start_stack )
- tao_yy_start_stack = (int *) tao_yy_flex_alloc( new_size );
-
- else
- tao_yy_start_stack = (int *) tao_yy_flex_realloc(
- (void *) tao_yy_start_stack, new_size );
-
- if ( ! tao_yy_start_stack )
- TAO_YY_FATAL_ERROR(
- "out of memory expanding start-condition stack" );
- }
-
- tao_yy_start_stack[tao_yy_start_stack_ptr++] = TAO_YY_START;
-
- BEGIN(new_state);
- }
-#endif
-
-
-#ifndef TAO_YY_NO_POP_STATE
-static void tao_yy_pop_state()
- {
- if ( --tao_yy_start_stack_ptr < 0 )
- TAO_YY_FATAL_ERROR( "start-condition stack underflow" );
-
- BEGIN(tao_yy_start_stack[tao_yy_start_stack_ptr]);
- }
-#endif
-
-
-#ifndef TAO_YY_NO_TOP_STATE
-static int tao_yy_top_state()
- {
- return tao_yy_start_stack[tao_yy_start_stack_ptr - 1];
- }
-#endif
-
-#ifndef TAO_YY_EXIT_FAILURE
-#define TAO_YY_EXIT_FAILURE 2
-#endif
-
-#ifdef TAO_YY_USE_PROTOS
-static void tao_yy_fatal_error( tao_yyconst char msg[] )
-#else
-static void tao_yy_fatal_error( msg )
-char msg[];
-#endif
- {
- (void) fprintf( stderr, "%s\n", msg );
- exit( TAO_YY_EXIT_FAILURE );
- }
-
-
-
-/* Redefine tao_yyless() so it works in section 3 code. */
-
-#undef tao_yyless
-#define tao_yyless(n) \
- do \
- { \
- /* Undo effects of setting up tao_yytext. */ \
- tao_yytext[tao_yyleng] = tao_yy_hold_char; \
- tao_yy_c_buf_p = tao_yytext + n; \
- tao_yy_hold_char = *tao_yy_c_buf_p; \
- *tao_yy_c_buf_p = '\0'; \
- tao_yyleng = n; \
- } \
- while ( 0 )
-
-
-/* Internal utility routines. */
-
-#ifndef tao_yytext_ptr
-#ifdef TAO_YY_USE_PROTOS
-static void tao_yy_flex_strncpy( char *s1, tao_yyconst char *s2, int n )
-#else
-static void tao_yy_flex_strncpy( s1, s2, n )
-char *s1;
-tao_yyconst char *s2;
-int n;
-#endif
- {
- register int i;
- for ( i = 0; i < n; ++i )
- s1[i] = s2[i];
- }
-#endif
-
-#ifdef TAO_YY_NEED_STRLEN
-#ifdef TAO_YY_USE_PROTOS
-static int tao_yy_flex_strlen( tao_yyconst char *s )
-#else
-static int tao_yy_flex_strlen( s )
-tao_yyconst char *s;
-#endif
- {
- register int n;
- for ( n = 0; s[n]; ++n )
- ;
-
- return n;
- }
-#endif
-
-
-#ifdef TAO_YY_USE_PROTOS
-static void *tao_yy_flex_alloc( tao_yy_size_t size )
-#else
-static void *tao_yy_flex_alloc( size )
-tao_yy_size_t size;
-#endif
- {
- return (void *) malloc( size );
- }
-
-#ifdef TAO_YY_USE_PROTOS
-static void *tao_yy_flex_realloc( void *ptr, tao_yy_size_t size )
-#else
-static void *tao_yy_flex_realloc( ptr, size )
-void *ptr;
-tao_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 TAO_YY_USE_PROTOS
-static void tao_yy_flex_free( void *ptr )
-#else
-static void tao_yy_flex_free( ptr )
-void *ptr;
-#endif
- {
- free( ptr );
- }
-
-#if TAO_YY_MAIN
-int main()
- {
- tao_yylex();
- return 0;
- }
-#endif
-#line 326 "fe/idl.ll"
-
- /* subroutines */
-
-/*
- * Strip down a name to the last component, i.e. everything after the last
- * '/' character
- */
-static char *
-stripped_name(UTL_String *fn)
-{
- char *n = fn->get_string();
- long l;
-
- if (n == NULL)
- return NULL;
- l = strlen(n);
- for (n += l; l > 0 && *n != '/'; l--, n--);
- if (*n == '/') n++;
- return n;
-}
-
-/*
- * Parse a #line statement generated by the C preprocessor
- */
-static void
-idl_parse_line_and_file(char *buf)
-{
- char *r = buf;
- char *h;
- UTL_String *nm;
-
- /* Skip initial '#' */
- if (*r != '#')
- return;
- else
- r++;
-
- /* Check to see if we're running under the screwy Microsoft scheme */
- /* of putting #line num instead of #num. */
-
- if (ACE_OS::strncmp (r, "line", 4) == 0)
- r += 5;
-
- /* Find line number */
- while (*r == ' ' || *r == '\t')
- r++;
- h = r;
- for (; *r != '\0' && *r != ' ' && *r != '\t'; r++)
- continue;
- *r++ = 0;
- idl_global->set_lineno(idl_atoui(h, 10));
-
- /* Find file name, if present */
- for (; *r != '"'; r++)
- if (*r == '\n' || *r == '\0')
- return;
-
- h = ++r;
- for (; *r != '"'; r++)
- continue;
- *r = 0;
- if (*h == '\0')
- idl_global->set_filename(new UTL_String("standard input"));
- else
- {
- long i;
- long j;
-
- // Put Microsoft-style pathnames into a canonical form.
- for (i = 0, j = 0; h[j] != '\0'; i++, j++)
- {
- if (h[j] == '\\' && h[j + 1] == '\\')
- j++;
-
- h[i] = h[j];
- }
- h[i] = '\0';
- idl_global->set_filename(new UTL_String(h));
- }
- int in_main_file = I_FALSE;
- if (idl_global->filename()->compare(idl_global->real_filename())
- || idl_global->filename()->compare(idl_global->main_filename()))
- in_main_file = I_TRUE;
- idl_global->set_in_main_file(in_main_file);
- /*
- * If it's an import file store the stripped name for the BE to use
- */
- if (!(idl_global->in_main_file()) && idl_global->import()) {
- nm = new UTL_String(stripped_name(idl_global->filename()));
- idl_global->store_include_file_name(nm);
- }
-}
-
-/*
- * Store a #pragma line into the list of pragmas
- */
-static void
-idl_store_pragma(char *buf)
-{
- char *sp = buf + 1;
- // Remove all the blanks between the '#' and the 'pragma'
- if (*sp != 'p')
- {
- while (*sp != 'p')
- ++sp;
- char *tp = buf + 1;
- while (*sp != '\n')
- {
- *tp = *sp;
- ++tp; ++sp;
- }
- }
-
- if (ACE_OS::strstr(buf + 8, "import") != 0) {
- idl_global->set_import(I_TRUE);
- return;
- }
- if (ACE_OS::strstr(buf + 8, "include") != 0) {
- idl_global->set_import(I_FALSE);
- return;
- }
- // Remove the final '\n'
- while (*sp != '\n')
- ++sp;
- *sp = '\0';
- UTL_StrList *p = idl_global->pragmas();
- if (p == NULL)
- idl_global->set_pragmas(new UTL_StrList(new UTL_String(buf), NULL));
- else {
- p->nconc(new UTL_StrList(new UTL_String(buf), NULL));
- idl_global->set_pragmas(p);
- }
-}
-
-/*
- * idl_atoi - Convert a string of digits into a negative integer according to base b
- */
-static long
-idl_atoi(char *s, long b)
-{
- long r = 0;
- s++;
-
- if (b == 8 && *s == '0')
- s++;
- else if (b == 16 && *s == '0' && (*(s + 1) == 'x' || *(s + 1) == 'X'))
- s += 2;
-
- for (; *s; s++)
- if (*s <= '9' && *s >= '0')
- r = (r * b) + (*s - '0');
- else if (b > 10 && *s <= 'f' && *s >= 'a')
- r = (r * b) + (*s - 'a' + 10);
- else if (b > 10 && *s <= 'F' && *s >= 'A')
- r = (r * b) + (*s - 'A' + 10);
- else
- break;
-
- return -r;
-}
-
-/*
- * idl_atoui - Convert a string of digits into an unsigned integer according to base b
- */
-static unsigned long
-idl_atoui(char *s, long b)
-{
- long r = 0;
-
- if (b == 8 && *s == '0')
- s++;
- else if (b == 16 && *s == '0' && (*(s + 1) == 'x' || *(s + 1) == 'X'))
- s += 2;
-
- for (; *s; s++)
- if (*s <= '9' && *s >= '0')
- r = (r * b) + (*s - '0');
- else if (b > 10 && *s <= 'f' && *s >= 'a')
- r = (r * b) + (*s - 'a' + 10);
- else if (b > 10 && *s <= 'F' && *s >= 'A')
- r = (r * b) + (*s - 'A' + 10);
- else
- break;
-
- return r;
-}
-
-/*
- * Convert a string to a float; atof doesn't seem to work, always.
- */
-static double
-idl_atof(char *s)
-{
- char *h = s;
- double d = 0.0;
- double f = 0.0;
- double e, k;
- long neg = 0, negexp = 0;
-
- ACE_UNUSED_ARG (f);
- ACE_UNUSED_ARG (h);
-
- if (*s == '-') {
- neg = 1;
- s++;
- }
- while (*s >= '0' && *s <= '9') {
- d = (d * 10) + *s - '0';
- s++;
- }
- if (*s == '.') {
- s++;
- e = 10;
- while (*s >= '0' && *s <= '9') {
- d += (*s - '0') / (e * 1.0);
- e *= 10;
- s++;
- }
- }
- if (*s == 'e' || *s == 'E') {
- s++;
- if (*s == '-') {
- negexp = 1;
- s++;
- } else if (*s == '+')
- s++;
- e = 0;
- while (*s >= '0' && *s <= '9') {
- e = (e * 10) + *s - '0';
- s++;
- }
- if (e > 0) {
- for (k = 1; e > 0; k *= 10, e--);
- if (negexp)
- d /= k;
- else
- d *= k;
- }
- }
-
- if (neg) d *= -1.0;
-
- return d;
-}
-
-/*
- * Convert (some) escaped characters into their ascii values
- */
-static char
-idl_escape_reader(
- char *str
-)
-{
- if (str[0] != '\\') {
- return str[0];
- }
-
- switch (str[1]) {
- case 'n':
- return '\n';
- case 't':
- return '\t';
- case 'v':
- return '\v';
- case 'b':
- return '\b';
- case 'r':
- return '\r';
- case 'f':
- return '\f';
- case 'a':
- return '\a';
- case '\\':
- return '\\';
- case '\?':
- return '?';
- case '\'':
- return '\'';
- case '"':
- return '"';
- case 'x':
- {
- int i;
- // hex value
- for (i = 2; str[i] != '\0' && isxdigit(str[i]); i++) {
- continue;
- }
- char save = str[i];
- str[i] = '\0';
- char out = (char)idl_atoui(&str[2], 16);
- str[i] = save;
- return out;
- }
- ACE_NOTREACHED (break;)
- default:
- // check for octal value
- if (str[1] >= '0' && str[1] <= '7') {
- int i;
- for (i = 1; str[i] >= '0' && str[i] <= '7'; i++) {
- continue;
- }
- char save = str[i];
- str[i] = '\0';
- char out = (char)idl_atoui(&str[1], 8);
- str[i] = save;
- return out;
- } else {
- return str[1] - 'a';
- }
- ACE_NOTREACHED (break;)
- }
-}
-/*
- * Convert escaped hex digits into a wchar
- */
-static ACE_CDR::WChar
-idl_wchar_escape_reader (char *str)
-{
- if (str[0] != '\\' || str[1] != 'u')
- {
- return 0;
- }
-
- int i;
- // get the hex digits
- for (i = 2; str[i] != '\0' && isxdigit (str[i]); i++)
- {
- continue;
- }
- char save = str[i];
- str[i] = '\0';
- ACE_CDR::WChar out = (ACE_CDR::WChar) idl_atoui (&str[2], 16);
- str[i] = save;
- return out;
-}
-
-/*
- * Checks wstring for validity
- */
-static char *
-idl_wstring_escape_reader (char *str)
-{
- return str;
-}