⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 _ts1.0_lexer.cpp

📁 使用stl技术,(还没看,是听说的)
💻 CPP
📖 第 1 页 / 共 5 页
字号:
      403,    1,  403,  403,  403,  403,  403,  403,  403,  403,
      403,  403,  403,  403,  403,  404,  403,  404,  404,  404,
      404,  404,  404,  404,  404,  404,  404,  403,  403,  403,
      403,  403,  403,  403,  403,  403,  403,  404,  404,  404,
      404,  404,  404,  404,  404,  404,  404,  404,  404,  403,
      403,  404,  404,  404,  404,  404,  404,  404,  404,  404,
      404,  403,  404,  404,  404,  404,  404,  404,  404,  404,
      404,  404,  404,  404,  403,  404,  404,  404,  404,  404,
      404,  404,  404,  404,  403,  404,  404,  404,  404,  404,
      404,  404,  404,  404,  403,  404,  404,  404,  404,  404,

      404,  404,  404,  404,  404,  404,  404,  404,  404,  404,
      404,  404,  404,  404,  404,  404,  404,  404,  404,  404,
      404,  404,  404,  404,  404,  404,  404,  404,  404,  404,
      404,  404,  404,  404,  404,  404,  404,  404,  404,  404,
      404,  404,  404,  404,  404,  404,  404,  404,  404,  404,
      404,  404,  404,  404,  404,  404,  404,  404,  404,  404,
      404,  404,  404,  404,  404,  404,  404,  404,  404,  404,
      404,  404,  404,  404,  404,  404,  404,  404,  404,  404,
      404,  404,  404,  404,  404,  404,  404,  404,  404,  404,
      404,  404,  404,  404,  404,  404,  404,  404,  404,  404,

      404,  404,  404,  404,  404,  404,  404,  404,  404,  404,
      404,  404,  404,  404,  404,  404,  404,  404,  404,  404,
      404,  404,  404,  404,  404,  404,  404,  404,  404,  404,
      404,  404,  404,  404,  404,  404,  404,  404,  404,  404,
      404,  404,  404,  404,  404,  404,  404,  404,  404,  404,
      404,  404,  404,  404,  404,  404,  404,  404,  404,  404,
      404,  404,  404,  404,  404,  404,  404,  404,  404,  404,
      404,  404,  404,  404,  404,  404,  404,  404,  404,  404,
      404,  404,  404,  404,  404,  404,  404,  404,  404,  404,
      404,  404,  404,  404,  404,  404,  404,  404,  404,  404,

      404,  404,  404,  404,  404,  404,  404,  404,  404,  404,
      404,  404,  404,  404,  404,  404,  404,  404,  404,  404,
      404,  404,  404,  404,  404,  404,  404,  404,  404,  404,
      404,  404,  404,  404,  404,  404,  404,  404,  404,  404,
      404,  404,  404,  404,  404,  404,  404,  404,  404,  404,
      404,  404,  404,  404,  404,  404,  404,  404,  404,  404,
      404,  404,  404,  404,  404,  404,  404,  404,  404,  404,
      404,  404,  404,  404,  404,  404,  404,  404,  404,  404,
      404,  404,  404,  404,  404,  404,  404,  404,  404,  404,
      404,  404,  404,  404,  404,  404,  404,  404,  404,  404,

      404,  404,    0,  403
    } ;

static yyconst short int yy_nxt[900] =
    {   0,
        4,    5,    6,    7,    8,    9,   10,   11,    4,   12,
       13,   14,   15,   16,   16,   16,   16,   16,   17,   18,
       18,   18,   19,   18,   20,   18,   18,   18,   18,   18,
       18,   18,   18,   18,   18,   18,   21,   22,   23,   18,
       18,   18,   18,   18,   24,   25,   26,   18,   18,   18,
       27,   18,   18,   18,   29,   30,   32,  403,   33,   33,
       33,   33,   33,   34,   34,   34,   34,   34,   35,  403,
      403,   37,   36,   38,   38,   38,   38,   38,  403,   40,
       41,  403,  403,  403,  403,  403,  403,   29,   30,   34,
       34,   34,   34,   34,  403,  403,   37,   42,   33,   33,

       33,   33,   33,   53,  403,   43,  403,   48,  403,  403,
       52,   47,   44,   49,  403,  403,   46,   34,   34,   34,
       34,   34,   45,   51,   51,   51,   51,   51,   37,  403,
       38,   38,   38,   38,   38,   54,   61,  403,  403,  403,
      403,   55,  403,   59,   57,  403,  403,   56,  403,   58,
       51,   51,   51,   51,   51,  403,   64,   63,  403,  403,
      403,  403,   67,   71,   72,   73,   76,   60,   68,   66,
       65,  403,  403,  403,  403,  403,  403,   77,  403,  403,
      403,   78,  403,  403,   69,  403,   70,  403,  403,   86,
      403,  403,  403,   79,  403,   83,  403,   87,  403,  403,

       74,   82,  403,   97,  403,   81,   80,   88,   89,   91,
      403,  403,   96,  403,  403,   84,  403,   90,  104,  105,
      101,   99,  403,  403,   92,   94,   93,  109,  403,   98,
      100,  103,  102,  106,  403,  403,  403,  403,  403,  403,
      108,  403,  403,  113,  112,  403,  107,  403,  114,  403,
      403,  403,  403,  111,  121,  122,  123,  403,  403,  403,
      110,  403,  403,  403,  115,  118,  403,  126,  119,  127,
      403,  129,  120,  403,  128,  116,  124,  117,  134,  403,
      131,  403,  130,  403,  132,  403,  403,  135,  125,  136,
      133,  139,  403,  138,  140,  403,  403,  403,  403,  403,

      403,  403,  137,  403,  142,  403,  141,  150,  151,  403,
      143,  403,  403,  403,  403,  403,  403,  403,  403,  148,
      403,  147,  144,  145,  149,  146,  156,  154,  157,  152,
      403,  155,  161,  162,  164,  165,  403,  153,  403,  159,
      169,  158,  171,  403,  403,  403,  403,  403,  403,  403,
      403,  170,  160,  163,  403,  166,  167,  403,  173,  172,
      174,  403,  403,  403,  175,  403,  403,  168,  403,  403,
      176,  403,  403,  403,  178,  179,  194,  195,  403,  181,
      180,  403,  403,  184,  185,  403,  177,  183,  403,  182,
      186,  403,  190,  188,  192,  403,  189,  403,  187,  403,

      191,  193,  196,  197,  198,  199,  403,  403,  403,  403,
      403,  403,  403,  403,  403,  203,  202,  403,  403,  403,
      200,  201,  403,  403,  403,  403,  204,  403,  205,  206,
      403,  403,  211,  403,  213,  215,  403,  403,  403,  214,
      207,  208,  209,  210,  212,  216,  403,  217,  403,  222,
      218,  219,  220,  221,  403,  223,  225,  403,  227,  403,
      224,  228,  403,  403,  229,  403,  234,  230,  226,  232,
      231,  403,  403,  233,  403,  403,  403,  235,  403,  403,
      403,  403,  403,  237,  403,  403,  403,  403,  236,  247,
      248,  249,  403,  403,  403,  403,  240,  242,  238,  241,

      403,  403,  403,  239,  252,  245,  244,  403,  403,  250,
      260,  261,  246,  243,  254,  251,  403,  403,  259,  403,
      403,  403,  403,  403,  403,  253,  255,  256,  257,  263,
      264,  403,  262,  258,  403,  403,  271,  403,  403,  272,
      273,  403,  403,  266,  265,  267,  274,  403,  403,  270,
      275,  403,  281,  268,  403,  269,  403,  403,  282,  285,
      286,  403,  403,  278,  403,  276,  277,  403,  403,  280,
      403,  403,  403,  403,  403,  403,  403,  297,  403,  279,
      403,  403,  403,  283,  284,  287,  298,  403,  403,  288,
      403,  403,  295,  403,  403,  403,  403,  403,  289,  301,

      293,  290,  292,  291,  294,  296,  299,  403,  300,  302,
      403,  403,  403,  307,  403,  403,  309,  306,  403,  403,
      310,  305,  303,  403,  403,  312,  304,  403,  403,  403,
      403,  308,  314,  403,  403,  311,  316,  403,  403,  403,
      403,  317,  329,  330,  331,  319,  322,  313,  315,  318,
      324,  326,  403,  403,  323,  321,  403,  328,  403,  403,
      403,  320,  325,  403,  403,  403,  403,  403,  403,  327,
      342,  343,  344,  333,  334,  332,  403,  403,  337,  403,
      338,  347,  348,  403,  349,  403,  335,  336,  339,  403,
      403,  340,  341,  345,  403,  346,  403,  403,  403,  350,

      351,  354,  403,  360,  403,  403,  403,  361,  403,  362,
      403,  403,  403,  403,  403,  403,  359,  352,  355,  353,
      403,  403,  356,  403,  357,  403,  403,  403,  364,  403,
      358,  403,  403,  367,  403,  377,  378,  379,  366,  403,
      369,  403,  403,  363,  403,   39,  403,  365,  370,  368,
      373,  374,  372,  375,  403,  385,  403,  371,  403,  380,
      381,  376,  403,  384,  403,  388,  389,  390,  382,  391,
      386,  403,  387,  383,  403,  403,  392,  403,  403,  393,
      394,  403,  403,  400,  403,  403,  397,  401,  395,  402,
      396,  403,  403,  403,  403,  403,  403,  403,  403,  403,

      403,  403,  403,  398,  403,  399,  403,  403,  403,  403,
      403,  403,  403,  403,  403,  403,  403,  403,  403,  403,
      403,  403,  403,  403,  403,  403,  403,  403,  403,   95,
       85,  403,  403,  403,   75,  403,   62,  403,   50,   28,
      403,   31,   28,  403,    3,  403,  403,  403,  403,  403,
      403,  403,  403,  403,  403,  403,  403,  403,  403,  403,
      403,  403,  403,  403,  403,  403,  403,  403,  403,  403,
      403,  403,  403,  403,  403,  403,  403,  403,  403,  403,
      403,  403,  403,  403,  403,  403,  403,  403,  403,  403,
      403,  403,  403,  403,  403,  403,  403,  403,  403

    } ;

static yyconst short int yy_chk[900] =
    {   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,    7,    7,   12,   21,   12,   12,
       12,   12,   12,   14,   14,   14,   14,   14,   15,   19,
       20,   16,   15,   16,   16,   16,   16,   16,   22,   19,
       20,   23,   24,   25,   26,   41,   27,   30,   30,   32,
       32,   32,   32,   32,   40,   49,   33,   21,   33,   33,

       33,   33,   33,   41,   42,   22,   43,   26,   44,   45,
       40,   25,   22,   27,   46,   47,   24,   34,   34,   34,
       34,   34,   23,   37,   37,   37,   37,   37,   38,   48,
       38,   38,   38,   38,   38,   42,   49,   52,   53,   54,
       56,   43,   55,   47,   45,   57,   59,   44,   60,   46,
       51,   51,   51,   51,   51,   64,   53,   52,   63,   65,
       66,   61,   56,   61,   61,   61,   63,   48,   57,   55,
       54,   67,   68,   70,   69,   74,   76,   64,   77,   78,
       80,   65,   79,   81,   59,   82,   60,   83,   84,   76,
       86,   87,   88,   66,   89,   70,   90,   77,   92,   96,

       61,   69,   93,   87,   94,   68,   67,   78,   79,   81,
       98,   97,   86,   99,  100,   74,  102,   80,   96,   97,
       92,   89,  103,  101,   82,   84,   83,  101,  104,   88,
       90,   94,   93,   98,  105,  106,  107,  108,  111,  109,
      100,  110,  115,  104,  103,  113,   99,  114,  105,  116,
      120,  112,  121,  102,  112,  112,  112,  117,  118,  119,
      101,  122,  124,  123,  106,  109,  125,  113,  110,  114,
      126,  116,  111,  127,  115,  107,  112,  108,  121,  128,
      118,  129,  117,  130,  119,  131,  132,  122,  112,  123,
      120,  126,  133,  125,  127,  137,  141,  139,  140,  138,

      142,  145,  124,  143,  129,  146,  128,  139,  140,  144,
      129,  147,  148,  149,  152,  150,  151,  156,  157,  137,
      159,  133,  130,  131,  138,  132,  145,  143,  146,  141,
      155,  144,  150,  151,  155,  155,  160,  142,  164,  148,
      156,  147,  159,  161,  165,  162,  166,  167,  168,  169,
      170,  157,  149,  152,  172,  155,  155,  171,  161,  160,
      162,  175,  176,  178,  164,  180,  177,  155,  179,  181,
      165,  182,  183,  184,  167,  168,  184,  184,  186,  170,
      169,  187,  188,  175,  176,  189,  166,  172,  191,  171,
      177,  192,  180,  179,  182,  194,  179,  193,  178,  185,

      181,  183,  185,  185,  185,  186,  195,  196,  197,  198,
      199,  201,  202,  203,  200,  191,  189,  211,  205,  206,
      187,  188,  207,  208,  209,  210,  192,  213,  193,  194,
      215,  214,  199,  212,  201,  203,  223,  224,  225,  202,
      195,  196,  197,  198,  200,  205,  222,  206,  232,  211,
      207,  208,  209,  210,  217,  212,  214,  218,  217,  219,
      213,  218,  220,  226,  219,  221,  224,  220,  215,  222,
      221,  233,  234,  223,  235,  237,  236,  225,  238,  239,
      240,  241,  244,  232,  243,  245,  242,  246,  226,  242,
      242,  242,  247,  248,  249,  251,  235,  237,  233,  236,

      250,  255,  256,  234,  244,  240,  239,  252,  253,  242,
      252,  252,  241,  238,  246,  243,  257,  258,  251,  260,
      259,  261,  262,  267,  266,  245,  247,  248,  249,  255,
      256,  263,  253,  250,  264,  265,  263,  268,  269,  264,
      265,  270,  274,  258,  257,  259,  266,  275,  276,  262,
      267,  278,  276,  260,  277,  261,  280,  279,  277,  280,
      280,  284,  283,  270,  285,  268,  269,  286,  287,  275,
      291,  288,  289,  293,  296,  299,  290,  293,  292,  274,
      300,  295,  294,  278,  279,  283,  294,  301,  302,  284,
      303,  304,  291,  305,  306,  307,  308,  309,  285,  296,

      289,  286,  288,  287,  290,  292,  295,  310,  295,  299,
      311,  312,  313,  304,  314,  315,  306,  303,  316,  317,
      307,  302,  300,  318,  319,  309,  301,  320,  321,  323,
      322,  305,  311,  324,  325,  308,  313,  327,  328,  326,
      329,  314,  326,  326,  326,  316,  319,  310,  312,  315,
      321,  323,  330,  331,  320,  318,  332,  325,  333,  346,
      334,  317,  322,  335,  336,  342,  343,  337,  338,  324,
      337,  337,  337,  328,  329,  327,  339,  340,  332,  341,
      333,  339,  340,  344,  341,  345,  330,  331,  334,  354,
      350,  335,  336,  338,  351,  338,  352,  353,  355,  342,

      343,  346,  356,  355,  357,  358,  359,  356,  363,  357,
      364,  365,  366,  367,  368,  369,  354,  344,  350,  345,
      370,  376,  351,  371,  352,  374,  377,  381,  359,  372,
      353,  373,  375,  365,  378,  375,  375,  375,  364,  379,
      367,  380,  382,  358,  383,  404,  388,  363,  368,  366,
      371,  372,  370,  373,  389,  381,  390,  369,  394,  376,
      377,  374,  384,  380,  385,  384,  384,  384,  378,  385,
      382,  386,  383,  379,  387,  395,  386,  396,  397,  387,
      388,  402,  398,  397,  399,  401,  394,  398,  389,  399,
      390,  400,  393,  392,  391,  362,  361,  360,  349,  348,

      347,  298,  297,  395,  282,  396,  281,  273,  272,  271,
      254,  231,  230,  229,  228,  227,  216,  204,  190,  174,
      173,  163,  158,  154,  153,  136,  135,  134,   91,   85,
       75,   73,   72,   71,   62,   58,   50,   39,   31,   28,
       18,    8,    5,    3,  403,  403,  403,  403,  403,  403,
      403,  403,  403,  403,  403,  403,  403,  403,  403,  403,
      403,  403,  403,  403,  403,  403,  403,  403,  403,  403,
      403,  403,  403,  403,  403,  403,  403,  403,  403,  403,
      403,  403,  403,  403,  403,  403,  403,  403,  403,  403,
      403,  403,  403,  403,  403,  403,  403,  403,  403

    } ;

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 "ts1.0_tokens.l"
#define INITIAL 0
/* definitions */
#line 6 "ts1.0_tokens.l"
#include <stdlib.h>
#include "ts1.0_inst.h"
#include "ts1.0_inst_list.h"
#include "_ts1.0_parser.h"
#ifdef _WIN32
# include <windows.h>
#endif

#ifdef MACOS
#include <OpenGL/gl.h>
#else
#include <GL/gl.h>
#endif

#include "nvparse_errors.h"
#include "nvparse_externs.h"


#define YY_INPUT(buf,result,max_size) \
{ \
	int c = *myin++; \
	result = (c == 0) ? YY_NULL : (buf[0] = c, 1); \
}

#define YY_ALWAYS_INTERACTIVE 1

/* end of definitions */
#line 744 "_ts1.0_lexer.cpp"

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

#define YY_RULE_SETUP \
	YY_USER_ACTION

YY_DECL
	{
	register yy_state_type yy_current_state;
	register char *yy_cp, *yy_bp;
	register int yy_act;

#line 34 "ts1.0_tokens.l"

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -