📄 _rc1.0_lexer.cpp
字号:
308, 308, 308, 151, 156, 157, 308, 308, 159, 166,
167, 158, 154, 160, 162, 168, 169, 308, 165, 171,
172, 174, 175, 177, 178, 181, 182, 308, 308, 170,
308, 308, 308, 173, 308, 176, 308, 179, 308, 183,
308, 180, 308, 186, 308, 212, 213, 192, 215, 216,
198, 308, 207, 195, 308, 205, 308, 308, 189, 214,
193, 185, 217, 221, 222, 224, 225, 208, 308, 219,
308, 308, 308, 231, 211, 308, 308, 223, 218, 226,
308, 308, 308, 308, 308, 308, 308, 308, 220, 308,
308, 308, 233, 234, 240, 235, 243, 244, 239, 248,
238, 245, 254, 249, 308, 255, 308, 308, 308, 308,
250, 308, 308, 308, 251, 258, 256, 257, 308, 308,
262, 263, 308, 260, 308, 308, 264, 308, 259, 266,
261, 308, 308, 308, 308, 308, 308, 308, 265, 273,
308, 308, 308, 267, 268, 308, 308, 308, 269, 274,
270, 308, 272, 271, 275, 277, 308, 308, 281, 283,
280, 276, 308, 278, 308, 279, 287, 308, 284, 282,
308, 288, 308, 289, 285, 286, 290, 308, 308, 296,
308, 308, 308, 292, 308, 308, 308, 291, 308, 308,
295, 308, 308, 298, 293, 294, 297, 301, 308, 308,
302, 300, 308, 304, 299, 308, 308, 253, 252, 308,
247, 246, 308, 242, 241, 237, 236, 232, 305, 230,
229, 228, 303, 307, 306, 227, 308, 210, 209, 206,
204, 203, 202, 201, 200, 199, 197, 196, 194, 308,
191, 190, 188, 187, 184, 164, 163, 161, 308, 146,
145, 143, 142, 141, 140, 308, 123, 122, 118, 308,
308, 109, 108, 308, 105, 94, 308, 71, 39, 308,
42, 39, 308, 3, 308, 308, 308, 308, 308, 308,
308, 308, 308, 308, 308, 308, 308, 308, 308, 308,
308, 308, 308, 308, 308, 308, 308, 308, 308, 308,
308, 308, 308, 308, 308, 308, 308, 308, 308, 308,
308, 308, 308, 308, 308, 308, 308, 308, 308, 308,
308, 308, 308, 308
} ;
static yyconst short int yy_chk[595] =
{ 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,
7, 7, 13, 23, 13, 13, 13, 13, 13, 15,
22, 15, 15, 15, 15, 15, 16, 16, 16, 16,
16, 17, 24, 26, 23, 18, 17, 18, 18, 18,
18, 18, 22, 25, 27, 28, 29, 30, 31, 32,
34, 35, 41, 41, 24, 33, 36, 24, 28, 62,
58, 52, 73, 29, 25, 27, 26, 34, 32, 27,
33, 53, 31, 36, 52, 35, 62, 30, 31, 58,
309, 33, 73, 51, 53, 33, 43, 43, 43, 43,
43, 44, 55, 44, 44, 44, 44, 44, 45, 45,
45, 45, 45, 48, 48, 48, 48, 48, 49, 51,
49, 49, 49, 49, 49, 54, 56, 57, 59, 60,
55, 61, 63, 65, 64, 67, 68, 69, 307, 70,
66, 72, 72, 72, 72, 72, 65, 54, 64, 54,
59, 57, 56, 66, 74, 75, 60, 78, 67, 77,
76, 63, 76, 76, 61, 69, 70, 79, 80, 68,
82, 83, 78, 88, 89, 92, 100, 93, 75, 97,
79, 80, 74, 101, 103, 76, 95, 77, 82, 91,
286, 91, 91, 91, 91, 88, 92, 83, 96, 95,
102, 89, 93, 100, 104, 97, 105, 105, 103, 106,
96, 109, 101, 102, 108, 108, 110, 111, 116, 121,
105, 106, 120, 124, 126, 109, 104, 282, 108, 122,
122, 121, 127, 110, 111, 124, 120, 116, 123, 123,
132, 128, 125, 122, 125, 125, 138, 139, 127, 139,
139, 126, 123, 128, 132, 140, 140, 144, 138, 141,
141, 142, 142, 143, 143, 145, 145, 147, 148, 140,
155, 158, 162, 141, 160, 142, 165, 143, 180, 145,
185, 144, 186, 148, 189, 190, 190, 158, 191, 191,
165, 193, 185, 162, 198, 180, 195, 205, 155, 190,
160, 147, 191, 199, 199, 200, 200, 186, 207, 195,
219, 208, 211, 205, 189, 218, 234, 199, 193, 200,
233, 243, 220, 238, 231, 240, 244, 248, 198, 245,
249, 251, 207, 208, 220, 211, 231, 233, 219, 238,
218, 234, 243, 240, 250, 244, 254, 255, 258, 256,
240, 257, 259, 261, 240, 249, 245, 248, 260, 262,
255, 256, 263, 251, 264, 265, 257, 266, 250, 259,
254, 270, 268, 269, 275, 273, 274, 276, 258, 266,
278, 285, 279, 260, 261, 277, 281, 287, 262, 268,
263, 295, 265, 264, 269, 273, 288, 284, 277, 279,
276, 270, 283, 274, 289, 275, 285, 290, 281, 278,
291, 287, 292, 288, 283, 284, 289, 293, 294, 295,
297, 296, 298, 291, 299, 300, 301, 290, 302, 304,
294, 303, 305, 297, 292, 293, 296, 300, 306, 280,
301, 299, 272, 303, 298, 271, 267, 242, 241, 239,
237, 236, 235, 226, 223, 217, 214, 206, 304, 204,
203, 202, 302, 306, 305, 201, 192, 188, 187, 183,
179, 176, 173, 170, 167, 166, 164, 163, 161, 159,
157, 156, 154, 151, 146, 137, 135, 131, 119, 118,
117, 115, 114, 113, 112, 107, 99, 98, 94, 90,
87, 86, 85, 84, 81, 71, 50, 42, 39, 21,
8, 5, 3, 308, 308, 308, 308, 308, 308, 308,
308, 308, 308, 308, 308, 308, 308, 308, 308, 308,
308, 308, 308, 308, 308, 308, 308, 308, 308, 308,
308, 308, 308, 308, 308, 308, 308, 308, 308, 308,
308, 308, 308, 308, 308, 308, 308, 308, 308, 308,
308, 308, 308, 308
} ;
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 "rc1.0_tokens.l"
#define INITIAL 0
/* definitions */
#line 7 "rc1.0_tokens.l"
#include <stdlib.h>
#include "rc1.0_combiners.h"
#include "_rc1.0_parser.h"
#ifdef _WIN32
# include <windows.h>
#endif
#ifdef MACOS
#include <OpenGL/gl.h>
#include <OpenGL/glext.h>
#else
#include <GL/gl.h>
#include <GL/glext.h>
#endif
#include "nvparse_errors.h"
#include "nvparse_externs.h"
#define YY_INPUT(buf,result,max_size) \
{ \
result = 0; \
while (*myin && result < max_size) \
buf[result++] = *myin++; \
}
#define YY_ALWAYS_INTERACTIVE 1
/* end of definitions */
#line 647 "_rc1.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 38 "rc1.0_tokens.l"
#line 801 "_rc1.0_lexer.cpp"
if ( yy_init )
{
yy_init = 0;
#ifdef YY_USER_INIT
YY_USER_INIT;
#endif
if ( ! yy_start )
yy_start = 1; /* first start state */
if ( ! yyin )
yyin = stdin;
if ( ! yyout )
yyout = stdout;
if ( ! yy_current_buffer )
yy_current_buffer =
yy_create_buffer( yyin, YY_BUF_SIZE );
yy_load_buffer_state();
}
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 >= 309 )
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] != 544 );
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 40 "rc1.0_tokens.l"
{
A:
switch (yyinput()) {
case '*': goto B;
case 0: errors.set("end-of-file in comment", line_number); break;
case '\n': line_number++;
default: goto A;
}
B:
switch (yyinput()) {
case '*': goto B;
case '/': break;
case 0: errors.set("end-of-file in comment", line_number); break;
case '\n': line_number++;
default: goto A;
}
}
YY_BREAK
case 2:
YY_RULE_SETUP
#line 58 "rc1.0_tokens.l"
{
char ch;
while ((ch = yyinput()) != '\n');
if (ch == '\n') line_number++;
}
YY_BREAK
case 3:
YY_RULE_SETUP
#line 64 "rc1.0_tokens.l"
{
char ch;
while ((ch = yyinput()) != '\n');
if (ch == '\n') line_number++;
}
YY_BREAK
case 4:
YY_RULE_SETUP
#line 70 "rc1.0_tokens.l"
{ /* eat header */ }
YY_BREAK
case 5:
YY_RULE_SETUP
#line 72 "rc1.0_tokens.l"
{
rc10_lval.registerEnum.word = RCP_FOG_RGB;
return(regVariable);
}
YY_BREAK
case 6:
YY_RULE_SETUP
#line 76 "rc1.0_tokens.l"
{
rc10_lval.registerEnum.word = RCP_FOG_ALPHA;
return(regVariable);
}
YY_BREAK
case 7:
YY_RULE_SETUP
#line 80 "rc1.0_tokens.l"
{
rc10_lval.registerEnum.word = RCP_FOG_BLUE;
return(regVariable);
}
YY_BREAK
case 8:
YY_RULE_SETUP
#line 84 "rc1.0_tokens.l"
{
rc10_lval.registerEnum.word = RCP_FOG;
return(regVariable);
}
YY_BREAK
case 9:
YY_RULE_SETUP
#line 89 "rc1.0_tokens.l"
{
rc10_lval.registerEnum.word = RCP_PRIMARY_COLOR_RGB;
return(regVariable);
}
YY_BREAK
case 10:
YY_RULE_SETUP
#line 93 "rc1.0_tokens.l"
{
rc10_lval.registerEnum.word = RCP_PRIMARY_COLOR_ALPHA;
return(regVariable);
}
YY_BREAK
case 11:
YY_RULE_SETUP
#line 97 "rc1.0_tokens.l"
{
rc10_lval.registerEnum.word = RCP_PRIMARY_COLOR_BLUE;
return(regVariable);
}
YY_BREAK
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -