📄 psdl_l.cpp
字号:
365, 365, 365, 365, 365, 365, 365, 365, 365, 365,
365, 365, 365, 365, 365, 365, 365, 365, 365, 365,
365, 365, 365, 365, 365, 365, 365, 365, 365, 363,
363, 365, 365, 365, 365, 365, 365, 365, 365, 365,
365, 365, 365, 365, 365, 365, 365, 365, 365, 365,
365, 365, 365, 365, 365, 365, 365, 365, 365, 365,
365, 365, 365, 365, 365, 365, 365, 365, 365, 365,
365, 365, 365, 365, 365, 365, 365, 365, 365, 365,
365, 365, 365, 365, 365, 365, 365, 365, 365, 365,
365, 365, 365, 365, 365, 365, 365, 365, 365, 365,
365, 365, 365, 365, 365, 365, 365, 365, 365, 365,
365, 365, 365, 365, 365, 365, 365, 365, 365, 365,
365, 365, 365, 365, 365, 365, 365, 365, 365, 365,
365, 365, 365, 365, 365, 365, 365, 365, 365, 365,
365, 365, 365, 365, 365, 365, 365, 365, 365, 365,
365, 365, 365, 365, 365, 365, 365, 365, 365, 365,
365, 365, 365, 365, 365, 365, 365, 365, 365, 365,
365, 365, 365, 365, 365, 365, 365, 365, 365, 365,
365, 365, 365, 365, 365, 365, 365, 365, 365, 365,
365, 365, 365, 365, 365, 365, 365, 365, 365, 365,
365, 365, 365, 365, 365, 365, 365, 365, 365, 365,
365, 365, 365, 365, 365, 365, 365, 365, 365, 365,
365, 365, 0, 363, 363, 363, 363
} ;
static yyconst short int yy_nxt[459] =
{ 0,
4, 5, 6, 7, 8, 9, 10, 11, 12, 13,
14, 15, 16, 17, 18, 19, 20, 21, 22, 23,
24, 24, 24, 24, 25, 24, 26, 24, 24, 27,
24, 28, 29, 30, 31, 32, 4, 33, 34, 35,
36, 37, 38, 24, 24, 39, 24, 40, 41, 42,
43, 44, 45, 24, 46, 47, 48, 49, 50, 51,
24, 24, 52, 53, 54, 55, 57, 60, 71, 61,
76, 80, 82, 87, 88, 97, 112, 77, 98, 99,
72, 81, 83, 100, 78, 73, 74, 84, 93, 107,
79, 94, 113, 110, 58, 85, 108, 57, 86, 95,
101, 114, 102, 59, 138, 103, 96, 111, 60, 139,
61, 141, 115, 125, 126, 148, 164, 104, 105, 152,
106, 149, 142, 157, 153, 58, 165, 57, 70, 114,
115, 170, 201, 170, 182, 183, 171, 158, 212, 259,
159, 202, 341, 260, 213, 362, 361, 360, 359, 358,
214, 357, 356, 355, 342, 58, 56, 56, 56, 65,
65, 120, 120, 354, 353, 352, 351, 350, 349, 348,
347, 346, 345, 344, 343, 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, 289, 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, 258, 257, 256, 255, 254,
253, 252, 251, 250, 249, 248, 247, 246, 245, 244,
243, 242, 241, 240, 239, 238, 237, 236, 235, 234,
233, 232, 231, 230, 229, 228, 227, 226, 225, 171,
171, 224, 223, 222, 221, 220, 219, 218, 217, 216,
215, 211, 210, 209, 208, 207, 206, 205, 204, 203,
200, 199, 198, 197, 196, 195, 194, 193, 192, 191,
190, 189, 188, 187, 186, 185, 184, 181, 180, 179,
178, 177, 176, 175, 174, 173, 172, 169, 168, 167,
166, 163, 162, 161, 160, 156, 155, 154, 151, 150,
147, 146, 145, 144, 143, 140, 137, 136, 135, 134,
133, 132, 131, 130, 129, 128, 127, 124, 123, 122,
121, 119, 118, 117, 116, 59, 109, 92, 91, 90,
89, 75, 69, 68, 67, 66, 64, 63, 62, 59,
363, 3, 363, 363, 363, 363, 363, 363, 363, 363,
363, 363, 363, 363, 363, 363, 363, 363, 363, 363,
363, 363, 363, 363, 363, 363, 363, 363, 363, 363,
363, 363, 363, 363, 363, 363, 363, 363, 363, 363,
363, 363, 363, 363, 363, 363, 363, 363, 363, 363,
363, 363, 363, 363, 363, 363, 363, 363, 363, 363,
363, 363, 363, 363, 363, 363, 363, 363
} ;
static yyconst short int yy_chk[459] =
{ 0,
1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 9, 18, 33, 18,
35, 36, 37, 39, 39, 45, 51, 35, 45, 46,
33, 36, 37, 46, 35, 33, 33, 38, 44, 48,
35, 44, 51, 50, 9, 38, 48, 56, 38, 44,
47, 58, 47, 59, 88, 47, 44, 50, 61, 88,
61, 90, 59, 76, 76, 97, 109, 47, 47, 100,
47, 97, 90, 104, 100, 56, 109, 114, 366, 58,
59, 115, 148, 115, 128, 128, 115, 104, 159, 211,
104, 148, 325, 211, 159, 359, 358, 357, 354, 353,
159, 352, 350, 346, 325, 114, 364, 364, 364, 365,
365, 367, 367, 344, 342, 341, 337, 336, 335, 334,
332, 330, 329, 327, 326, 324, 323, 322, 319, 318,
316, 311, 310, 309, 308, 307, 306, 305, 304, 302,
297, 296, 295, 292, 291, 290, 286, 285, 284, 283,
281, 279, 278, 277, 276, 275, 274, 272, 270, 269,
267, 266, 265, 264, 263, 262, 261, 260, 259, 256,
254, 253, 252, 251, 250, 249, 248, 246, 245, 243,
241, 238, 237, 236, 235, 234, 233, 231, 230, 229,
228, 227, 226, 224, 223, 221, 220, 219, 218, 217,
216, 215, 214, 213, 212, 210, 209, 208, 207, 206,
205, 204, 203, 202, 201, 200, 199, 198, 197, 195,
194, 193, 192, 191, 190, 189, 188, 186, 185, 184,
183, 182, 180, 178, 177, 176, 175, 173, 172, 171,
170, 169, 168, 167, 166, 165, 164, 163, 162, 161,
160, 158, 157, 156, 155, 154, 152, 151, 150, 149,
146, 145, 144, 143, 142, 141, 139, 138, 137, 136,
135, 134, 133, 132, 131, 130, 129, 127, 126, 125,
124, 123, 121, 119, 118, 117, 116, 113, 112, 111,
110, 108, 107, 106, 105, 103, 102, 101, 99, 98,
96, 95, 93, 92, 91, 89, 87, 86, 85, 84,
83, 82, 81, 80, 79, 78, 77, 75, 74, 72,
71, 69, 68, 67, 66, 60, 49, 43, 42, 41,
40, 34, 28, 27, 26, 25, 23, 21, 19, 16,
3, 363, 363, 363, 363, 363, 363, 363, 363, 363,
363, 363, 363, 363, 363, 363, 363, 363, 363, 363,
363, 363, 363, 363, 363, 363, 363, 363, 363, 363,
363, 363, 363, 363, 363, 363, 363, 363, 363, 363,
363, 363, 363, 363, 363, 363, 363, 363, 363, 363,
363, 363, 363, 363, 363, 363, 363, 363, 363, 363,
363, 363, 363, 363, 363, 363, 363, 363
} ;
static yy_state_type yy_last_accepting_state;
static char *yy_last_accepting_cpos;
/* The intent behind this definition is that it'll catch
* any uses of REJECT which flex missed.
*/
#define REJECT reject_used_but_not_detected
#define yymore() yymore_used_but_not_detected
#define YY_MORE_ADJ 0
#define YY_RESTORE_YY_MORE_OFFSET
char *yytext;
#line 1 "PSDL.ll"
#define INITIAL 0
#line 4 "PSDL.ll"
// PSDL_l.cpp,v 1.2 2002/08/05 14:33:36 pgontla Exp
// ========================================================================
//
// = LIBRARY
// orbsvcs/PSS
//
// = FILENAME
// PSDL.ll
//
// = AUTHOR
// Priyanka Gontla <gontla_p@ociweb.com>
// ========================================================================
#include "ace/OS.h"
#include "PSDL_Interpreter.h"
#include "PSDL_Node.h"
#include "PSDL_y.h"
static const char * extract_string(char*);
#define TAO_YY_LEX_DEBUG
//#define TAO_YY_LEX_DEBUG ACE_OS::fprintf(stderr, "%s\n", yytext)
#define YY_DECL int TAO_PSDL_yylex (TAO_PSDL_Node **lvalp, void* )
#define YY_BREAK
#define YY_NO_UNPUT
/* Macros after this point can all be overridden by user definitions in
* section 1.
*/
#ifndef YY_SKIP_YYWRAP
#ifdef __cplusplus
extern "C" int yywrap YY_PROTO(( void ));
#else
extern int yywrap YY_PROTO(( void ));
#endif
#endif
#ifndef YY_NO_UNPUT
static void yyunput YY_PROTO(( int c, char *buf_ptr ));
#endif
#ifndef yytext_ptr
static void yy_flex_strncpy YY_PROTO(( char *, yyconst char *, int ));
#endif
#ifdef YY_NEED_STRLEN
static int yy_flex_strlen YY_PROTO(( yyconst char * ));
#endif
#ifndef YY_NO_INPUT
#ifdef __cplusplus
static int yyinput YY_PROTO(( void ));
#else
static int input YY_PROTO(( void ));
#endif
#endif
#if YY_STACK_USED
static int yy_start_stack_ptr = 0;
static int yy_start_stack_depth = 0;
static int *yy_start_stack = 0;
#ifndef YY_NO_PUSH_STATE
static void yy_push_state YY_PROTO(( int new_state ));
#endif
#ifndef YY_NO_POP_STATE
static void yy_pop_state YY_PROTO(( void ));
#endif
#ifndef YY_NO_TOP_STATE
static int yy_top_state YY_PROTO(( void ));
#endif
#else
#define YY_NO_PUSH_STATE 1
#define YY_NO_POP_STATE 1
#define YY_NO_TOP_STATE 1
#endif
#ifdef YY_MALLOC_DECL
YY_MALLOC_DECL
#else
#if __STDC__
#ifndef __cplusplus
#include <stdlib.h>
#endif
#else
/* Just try to get by without declaring the routines. This will fail
* miserably on non-ANSI systems for which sizeof(size_t) != sizeof(int)
* or sizeof(void*) != sizeof(int).
*/
#endif
#endif
/* Amount of stuff to slurp up with each read. */
#ifndef YY_READ_BUF_SIZE
#define YY_READ_BUF_SIZE 8192
#endif
/* Copy whatever the last rule matched to the standard output. */
#ifndef TAO_PSDL_ECHO
/* This used to be an fputs(), but since the string might contain NUL's,
* we now use fwrite().
*/
#define TAO_PSDL_ECHO (void) fwrite( yytext, yyleng, 1, yyout )
#endif
/* Gets input and stuffs it into "buf". number of characters read, or YY_NULL,
* is returned in "result".
*/
#ifndef YY_INPUT
#define YY_INPUT(buf,result,max_size) \
if ( yy_current_buffer->yy_is_interactive ) \
{ \
int c = '*', n; \
for ( n = 0; n < max_size && \
(c = getc( yyin )) != EOF && c != '\n'; ++n ) \
buf[n] = (char) c; \
if ( c == '\n' ) \
buf[n++] = (char) c; \
if ( c == EOF && ferror( yyin ) ) \
YY_FATAL_ERROR( "input in flex scanner failed" ); \
result = n; \
} \
else \
{ \
errno=0; \
while ( (result = fread(buf, 1, max_size, yyin))==0 && ferror(yyin)) \
{ \
if( errno != EINTR) \
{ \
YY_FATAL_ERROR( "input in flex scanner failed" ); \
break; \
} \
errno=0; \
clearerr(yyin); \
} \
}
#endif
/* No semi-colon after return; correct usage is to write "yyterminate();" -
* we don't want an extra ';' after the "return" because that will cause
* some compilers to complain about unreachable statements.
*/
#ifndef yyterminate
#define yyterminate() return YY_NULL
#endif
/* Number of entries by which start-condition stack grows. */
#ifndef YY_START_STACK_INCR
#define YY_START_STACK_INCR 25
#endif
/* Report a fatal error. */
#ifndef YY_FATAL_ERROR
#define YY_FATAL_ERROR(msg) yy_fatal_error( msg )
#endif
/* Default declaration of generated scanner - a define so the user can
* easily add parameters.
*/
#ifndef YY_DECL
#define YY_DECL int yylex YY_PROTO(( void ))
#endif
/* Code executed at the beginning of each rule, after yytext and yyleng
* have been set up.
*/
#ifndef YY_USER_ACTION
#define YY_USER_ACTION
#endif
/* Code executed at the end of each rule. */
#ifndef YY_BREAK
#define YY_BREAK break;
#endif
#define YY_RULE_SETUP \
YY_USER_ACTION
YY_DECL
{
register yy_state_type yy_current_state;
register char *yy_cp, *yy_bp;
register int yy_act;
#line 47 "PSDL.ll"
if ( yy_init )
{
yy_init = 0;
#ifdef YY_USER_INIT
YY_USER_INIT;
#endif
if ( ! yy_start )
yy_start = 1; /* first start state */
if ( ! yyin )
yyin = stdin;
if ( ! yyout )
yyout = stdout;
if ( ! yy_current_buffer )
yy_current_buffer =
yy_create_buffer( yyin, YY_BUF_SIZE );
yy_load_buffer_state();
}
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 >= 364 )
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] != 392 );
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 49 "PSDL.ll"
{ TAO_YY_LEX_DEBUG; return TAO_PSDL_SEMI; }
YY_BREAK
case 2:
YY_RULE_SETUP
#line 50 "PSDL.ll"
{ TAO_YY_LEX_DEBUG; return TAO_PSDL_COLON; }
YY_BREAK
case 3:
YY_RULE_SETUP
#line 51 "PSDL.ll"
{ TAO_YY_LEX_DEBUG; return TAO_PSDL_OPEN_CURLY_BRACE; }
YY_BREAK
case 4:
YY_RULE_SETUP
#line 52 "PSDL.ll"
{ TAO_YY_LEX_DEBUG; return TAO_PSDL_CLOSE_CURLY_BRACE; }
YY_BREAK
case 5:
YY_RULE_SETUP
#line 53 "PSDL.ll"
{ TAO_YY_LEX_DEBUG; return TAO_PSDL_OPEN_BRACE; }
YY_BREAK
case 6:
YY_RULE_SETUP
#line 54 "PSDL.ll"
{ TAO_YY_LEX_DEBUG; return TAO_PSDL_CLOSE_BRACE; }
YY_BREAK
case 7:
YY_RULE_SETUP
#line 55 "PSDL.ll"
{ TAO_YY_LEX_DEBUG; return TAO_PSDL_OPEN_ANGULAR_BRACE; }
YY_BREAK
case 8:
YY_RULE_SETUP
#line 56 "PSDL.ll"
{ TAO_YY_LEX_DEBUG; return TAO_PSDL_CLOSE_ANGULAR_BRACE; }
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -