📄 coach_lang_tok.cc
字号:
#define yyFlexLexer RCSSCLangFlexLexerFlexLexer#line 4 "coach_lang_tok.cc"/* A lexical scanner generated by flex *//* Scanner skeleton version: * $Header: /cvs/root/flex/flex/skel.c,v 1.2 2004/05/07 00:28:17 jkh Exp $ */#define FLEX_SCANNER#define YY_FLEX_MAJOR_VERSION 2#define YY_FLEX_MINOR_VERSION 5/* cfront 1.2 defines "c_plusplus" instead of "__cplusplus" */#ifdef c_plusplus#ifndef __cplusplus#define __cplusplus#endif#endif#ifdef __cplusplus#include <stdlib.h>#include <iostream>using namespace std;#include <unistd.h>/* Use prototypes in function declarations. */#define YY_USE_PROTOS/* The "const" storage-class-modifier is valid. */#define YY_USE_CONST#else /* ! __cplusplus */#if __STDC__#define YY_USE_PROTOS#define YY_USE_CONST#endif /* __STDC__ */#endif /* ! __cplusplus */#ifdef __TURBOC__ #pragma warn -rch #pragma warn -use#include <io.h>#include <stdlib.h>#define YY_USE_CONST#define YY_USE_PROTOS#endif#ifdef YY_USE_CONST#define yyconst const#else#define yyconst#endif#ifdef YY_USE_PROTOS#define YY_PROTO(proto) proto#else#define YY_PROTO(proto) ()#endif/* Returned upon end-of-file. */#define YY_NULL 0/* Promotes a possibly negative, possibly signed char to an unsigned * integer for use as an array index. If the signed char is negative, * we want to instead treat it as an 8-bit unsigned char, hence the * double cast. */#define YY_SC_TO_UI(c) ((unsigned int) (unsigned char) c)/* Enter a start condition. This macro really ought to take a parameter, * but we do it the disgusting crufty way forced on us by the ()-less * definition of BEGIN. */#define BEGIN yy_start = 1 + 2 */* Translate the current start state into a value that can be later handed * to BEGIN to return to the state. The YYSTATE alias is for lex * compatibility. */#define YY_START ((yy_start - 1) / 2)#define YYSTATE YY_START/* Action number for EOF rule of a given start state. */#define YY_STATE_EOF(state) (YY_END_OF_BUFFER + state + 1)/* Special action meaning "start processing a new file". */#define YY_NEW_FILE yyrestart( yyin )#define YY_END_OF_BUFFER_CHAR 0/* Size of default input buffer. */#define YY_BUF_SIZE 16384typedef struct yy_buffer_state *YY_BUFFER_STATE;extern int yyleng;#define EOB_ACT_CONTINUE_SCAN 0#define EOB_ACT_END_OF_FILE 1#define EOB_ACT_LAST_MATCH 2/* The funky do-while in the following #define is used to turn the definition * int a single C statement (which needs a semi-colon terminator). This * avoids problems with code like: * * if ( condition_holds ) * yyless( 5 ); * else * do_something_else(); * * Prior to using the do-while the compiler would get upset at the * "else" because it interpreted the "if" statement as being all * done when it reached the ';' after the yyless() call. *//* Return all but the first 'n' matched characters back to the input stream. */#define yyless(n) \ do \ { \ /* Undo effects of setting up yytext. */ \ *yy_cp = yy_hold_char; \ YY_RESTORE_YY_MORE_OFFSET \ yy_c_buf_p = yy_cp = yy_bp + n - YY_MORE_ADJ; \ YY_DO_BEFORE_ACTION; /* set up yytext again */ \ } \ while ( 0 )#define unput(c) yyunput( c, yytext_ptr )/* The following is because we cannot portably get our hands on size_t * (without autoconf's help, which isn't available because we want * flex-generated scanners to compile on their own). */typedef unsigned int yy_size_t;struct yy_buffer_state { istream* yy_input_file; char *yy_ch_buf; /* input buffer */ char *yy_buf_pos; /* current position in input buffer */ /* Size of input buffer in bytes, not including room for EOB * characters. */ yy_size_t yy_buf_size; /* Number of characters read into yy_ch_buf, not including EOB * characters. */ int yy_n_chars; /* Whether we "own" the buffer - i.e., we know we created it, * and can realloc() it to grow it, and should free() it to * delete it. */ int yy_is_our_buffer; /* Whether this is an "interactive" input source; if so, and * if we're using stdio for input, then we want to use getc() * instead of fread(), to make sure we stop fetching input after * each newline. */ int yy_is_interactive; /* Whether we're considered to be at the beginning of a line. * If so, '^' rules will be active on the next match, otherwise * not. */ int yy_at_bol; /* Whether to try to fill the input buffer when we reach the * end of it. */ int yy_fill_buffer; int yy_buffer_status;#define YY_BUFFER_NEW 0#define YY_BUFFER_NORMAL 1 /* When an EOF's been seen but there's still some text to process * then we mark the buffer as YY_EOF_PENDING, to indicate that we * shouldn't try reading from the input source any more. We might * still have a bunch of tokens to match, though, because of * possible backing-up. * * When we actually see the EOF, we change the status to "new" * (via yyrestart()), so that the user can continue scanning by * just pointing yyin at a new input file. */#define YY_BUFFER_EOF_PENDING 2 };/* We provide macros for accessing buffer states in case in the * future we want to put the buffer states in a more general * "scanner state". */#define YY_CURRENT_BUFFER yy_current_bufferstatic void *yy_flex_alloc YY_PROTO(( yy_size_t ));static void *yy_flex_realloc YY_PROTO(( void *, yy_size_t ));static void yy_flex_free YY_PROTO(( void * ));#define yy_new_buffer yy_create_buffer#define yy_set_interactive(is_interactive) \ { \ if ( ! yy_current_buffer ) \ yy_current_buffer = yy_create_buffer( yyin, YY_BUF_SIZE ); \ yy_current_buffer->yy_is_interactive = is_interactive; \ }#define yy_set_bol(at_bol) \ { \ if ( ! yy_current_buffer ) \ yy_current_buffer = yy_create_buffer( yyin, YY_BUF_SIZE ); \ yy_current_buffer->yy_at_bol = at_bol; \ }#define YY_AT_BOL() (yy_current_buffer->yy_at_bol)#define yywrap() 1#define YY_SKIP_YYWRAPtypedef unsigned char YY_CHAR;#define yytext_ptr yytext#define YY_INTERACTIVE#include "coach_lang_tok.h"int yyFlexLexer::yylex() { LexerError( "yyFlexLexer::yylex invoked but %option yyclass used" ); return 0; }#define YY_DECL int RCSSCLangLexer::yylex()/* Done after the current pattern has been matched and before the * corresponding action - sets up yytext. */#define YY_DO_BEFORE_ACTION \ yytext_ptr = yy_bp; \ yyleng = (int) (yy_cp - yy_bp); \ yy_hold_char = *yy_cp; \ *yy_cp = '\0'; \ yy_c_buf_p = yy_cp;#define YY_NUM_RULES 107#define YY_END_OF_BUFFER 108static yyconst short int yy_accept[335] = { 0, 0, 0, 108, 106, 99, 99, 106, 106, 1, 2, 97, 95, 96, 106, 98, 100, 89, 106, 94, 105, 105, 105, 37, 36, 105, 105, 105, 105, 105, 105, 105, 105, 35, 105, 105, 38, 105, 105, 105, 3, 4, 99, 92, 0, 0, 101, 102, 100, 0, 90, 91, 93, 105, 105, 105, 105, 105, 105, 105, 105, 105, 105, 105, 0, 0, 0, 0, 39, 0, 105, 105, 105, 105, 105, 105, 105, 105, 105, 105, 105, 105, 105, 105, 105, 105, 105, 105, 105, 82, 105, 50, 105, 0, 0, 0, 0, 23, 105, 105, 105, 0, 0, 105, 105, 105, 105, 105, 104, 0, 103, 105, 105, 84, 49, 22, 105, 53, 105, 105, 30, 0, 0, 0, 0, 0, 0, 0, 105, 105, 105, 105, 105, 105, 105, 105, 105, 105, 105, 105, 105, 105, 105, 105, 105, 51, 105, 83, 105, 105, 42, 41, 0, 0, 28, 0, 105, 26, 24, 105, 5, 0, 105, 105, 25, 105, 105, 105, 19, 105, 105, 27, 105, 47, 0, 0, 0, 0, 0, 40, 0, 105, 105, 105, 105, 105, 105, 6, 78, 29, 105, 12, 105, 105, 105, 31, 9, 105, 20, 105, 105, 105, 105, 75, 0, 46, 21, 81, 0, 105, 70, 44, 105, 74, 105, 105, 105, 105, 0, 0, 43, 0, 0, 88, 0, 45, 105, 105, 105, 105, 105, 105, 105, 105, 34, 105, 105, 105, 105, 105, 32, 87, 33, 105, 105, 105, 0, 52, 77, 105, 105, 105, 13, 69, 68, 48, 63, 62, 14, 85, 0, 61, 60, 105, 67, 66, 65, 64, 105, 105, 59, 58, 57, 56, 105, 105, 105, 0, 80, 105, 105, 18, 15, 16, 17, 76, 105, 105, 105, 105, 105, 105, 55, 105, 105, 0, 10, 105, 105, 105, 105, 105, 105, 105, 0, 73, 79, 105, 71, 72, 54, 105, 86, 105, 105, 105, 105, 105, 105, 105, 105, 105, 105, 105, 105, 105, 105, 105, 105, 105, 7, 105, 11, 8, 0 } ;static yyconst int yy_ec[256] = { 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 3, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 4, 5, 6, 1, 1, 1, 1, 1, 7, 8, 9, 10, 1, 11, 12, 13, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 1, 1, 15, 16, 17, 18, 1, 19, 19, 19, 19, 20, 19, 19, 19, 19, 19, 19, 19, 19, 19, 19, 19, 19, 19, 19, 19, 19, 19, 19, 19, 19, 19, 1, 1, 1, 1, 21, 1, 22, 23, 24, 25, 26, 27, 28, 29, 30, 19, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 19, 44, 19, 45, 1, 46, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 } ;static yyconst int yy_meta[47] = { 0, 1, 1, 1, 2, 1, 1, 2, 2, 2, 2, 2, 2, 2, 3, 2, 1, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 1, 1 } ;static yyconst short int yy_base[337] = { 0, 0, 0, 367, 368, 45, 48, 350, 0, 368, 368, 368, 41, 42, 351, 368, 45, 348, 347, 346, 0, 35, 39, 45, 52, 50, 60, 54, 327, 62, 74, 23, 72, 79, 319, 42, 64, 90, 325, 332, 368, 368, 114, 368, 351, 342, 109, 110, 113, 127, 368, 368, 368, 0, 313, 333, 321, 327, 327, 318, 314, 305, 312, 311, 324, 318, 71, 305, 308, 311, 308, 318, 312, 316, 315, 313, 312, 99, 289, 107, 311, 310, 292, 289, 303, 287, 294, 298, 294, 291, 286, 0, 283, 281, 297, 279, 282, 368, 294, 38, 283, 270, 278, 288, 278, 110, 66, 272, 368, 295, 294, 277, 271, 0, 0, 0, 273, 0, 270, 264, 0, 267, 279, 270, 273, 272, 257, 273, 256, 259, 267, 257, 256, 258, 251, 263, 261, 250, 250, 258, 248, 247, 250, 258, 253, 0, 246, 0, 243, 246, 254, 253, 234, 228, 368, 232, 245, 0, 0, 243, 368, 233, 236, 240, 0, 239, 223, 230, 0, 238, 107, 0, 235, 0, 108, 222, 225, 218, 233, 368, 233, 229, 109, 227, 116, 117, 232, 0, 0, 0, 226, 0, 213, 118, 119, 218, 0, 217, 0, 222, 213, 218, 217, 368, 135, 368, 0, 0, 204, 211, 221, 0, 205, 0, 214, 203, 200, 199, 200, 197, 368, 208, 207, 368, 200, 0, 195, 192, 194, 192, 189, 190, 187, 199, 0, 199, 186, 183, 184, 181, 0, 0, 0, 192, 182, 181, 180, 368, 368, 188, 178, 176, 0, 0, 0, 0, 368, 368, 139, 368, 185, 0, 0, 172, 0, 0, 0, 0, 179, 182, 0, 0, 0, 0, 186, 184, 183, 170, 0, 161, 167, 368, 368, 368, 160, 368, 167, 172, 162, 173, 164, 163, 368, 168, 155, 160, 0, 164, 150, 154, 149, 148, 148, 145, 158, 0, 0, 161, 0, 0, 0, 156, 368, 157, 155, 147, 154, 153, 149, 133, 140, 144, 139, 145, 139, 134, 112, 102, 97, 94, 0, 62, 0, 0, 368, 176, 82 } ;static yyconst short int yy_def[337] = { 0, 334, 1, 334, 334, 334, 334, 334, 335, 334, 334, 334, 334, 334, 334, 334, 334, 334, 334, 334, 336, 336, 336, 334, 334, 336, 336, 336, 336, 336, 336, 336, 336, 334, 336, 336, 334, 336, 336, 336, 334, 334, 334, 334, 335, 334, 334, 334, 334, 334, 334, 334, 334, 336, 336, 336, 336, 336, 336, 336, 336, 336, 336, 336, 334, 334, 334, 334, 334, 334, 336, 336, 336, 336, 336, 336, 336, 336, 336, 336, 336, 336, 336, 336, 336, 336, 336, 336, 336, 336, 336, 336, 336, 334, 334, 334, 334, 334, 336, 336, 336, 334, 334, 336, 336, 336, 336, 336, 334, 334, 334, 336, 336, 336, 336, 336, 336, 336, 336, 336, 336, 334, 334, 334, 334, 334, 334, 334, 336, 336, 336, 336, 336, 336, 336, 336, 336, 336, 336, 336, 336, 336, 336, 336, 336, 336, 336, 336, 336, 336, 336, 336, 334, 334, 334, 334, 336, 336, 336, 336, 334, 334, 336, 336, 336, 336, 336, 336, 336, 336, 336, 336, 336, 336, 334, 334, 334, 334, 334, 334, 334, 336, 336, 336, 336, 336, 336, 336, 336, 336, 336, 336, 336, 336, 336, 336, 336, 336, 336, 336, 336, 336, 336, 334, 334, 334, 336, 336, 334, 336, 336, 336, 336, 336, 336, 336, 336, 336, 334, 334, 334, 334, 334, 334, 334, 336, 336, 336, 336, 336, 336, 336, 336, 336, 336, 336, 336, 336, 336, 336, 336, 336, 336, 336, 336, 336, 334, 334, 334, 336, 336, 336, 336, 336, 336, 336, 334, 334, 334, 334, 334, 336, 336, 336, 336, 336, 336, 336, 336, 336, 336, 336, 336, 336, 336, 336, 336, 334, 336, 336, 336, 334, 334, 334, 334, 334, 336, 336, 336, 336, 336, 336, 334, 336, 336, 334, 336, 336, 336, 336, 336, 336, 336, 336, 334, 336, 336, 336, 336, 336, 336, 336, 334, 336, 336, 336, 336, 336, 336, 336, 336, 336, 336, 336, 336, 336, 336, 336, 336, 336, 336, 336, 336, 336, 0, 334, 334 } ;static yyconst short int yy_nxt[415] = { 0, 4, 5, 6, 5, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 4, 20, 20, 20, 21, 22, 23, 24, 20, 25, 26, 27, 28, 29, 20, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 20, 20, 40, 41, 42, 42, 42, 42, 42, 42, 45, 45, 46, 46, 45, 85, 48, 54, 59, 157, 55, 86, 49, 158, 56, 99, 57, 60, 49, 70, 58, 61, 62, 64, 65, 66, 63, 76, 71, 67, 100, 73, 53, 101, 68, 72, 77, 69, 74, 80, 102, 78, 75, 82, 81, 123, 87, 83, 93, 333, 124, 88, 166, 89, 167, 90, 84, 91, 94, 103, 92, 95, 96, 42, 42, 42, 97, 104, 45, 332, 46, 47, 45, 331, 48, 105, 49, 49, 135, 136, 49, 138, 49, 49, 109, 109, 49, 164, 110, 330, 215, 218, 226, 329, 139, 216, 219, 227, 165, 229, 231, 236, 238, 246, 230, 232, 237, 239, 281, 328, 282, 283, 321, 327, 326, 247, 325, 324, 322, 323, 320, 319, 318, 317, 284, 44, 44, 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, 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, 252, 251, 250, 249, 248, 245, 244, 243, 242, 241, 240, 235, 234, 233, 228, 225, 224, 223, 222, 221, 220, 217, 214, 213, 212, 211, 210, 209, 208, 207, 206, 205, 204, 203, 202, 201, 200, 199, 198, 197, 196, 195, 194, 193, 192, 191, 190, 189, 188, 187, 186, 185, 184, 183, 182, 181, 180, 179, 178, 177, 176, 175, 174, 173, 172, 171, 170, 169, 110, 110, 168, 163, 162, 161, 160, 159, 156, 155, 154, 153, 152, 151, 150, 149, 148, 147, 146, 145, 144, 143, 142, 141, 140, 137, 134, 133, 132, 131, 130, 129, 128, 127, 126, 125, 122, 121, 120, 119, 118, 117, 116, 115, 114, 113, 112, 111, 47, 108, 107, 106, 98, 79, 52, 51, 50, 47, 43, 334, 3, 334, 334, 334, 334, 334, 334, 334, 334, 334, 334, 334, 334, 334, 334, 334, 334, 334, 334, 334, 334, 334, 334, 334, 334, 334, 334, 334, 334, 334, 334, 334, 334, 334, 334, 334, 334, 334, 334, 334, 334, 334, 334, 334, 334, 334, 334 } ;static yyconst short int yy_chk[415] = { 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, 5, 5, 5, 6, 6, 6, 12, 13, 12, 13, 16, 31, 16, 21, 22, 99, 21, 31, 16, 99, 21, 35, 21, 22, 16, 25, 21, 22, 22, 23, 23, 24, 22, 27, 25, 24, 35, 26, 336, 36, 24, 25, 27, 24, 26, 29, 36, 27, 26, 30, 29, 66, 32, 30, 33, 331, 66, 32, 106, 32, 106, 32, 30, 32, 33, 37, 32, 33, 33, 42, 42, 42, 33, 37, 46, 329, 46, 47, 48, 328, 48, 37, 46, 47, 77, 77, 48, 79, 46, 47, 49, 49, 48, 105, 49, 327, 170, 174, 182, 326, 79, 170, 174, 182, 105, 184, 185, 193, 194, 204, 184, 185, 193, 194, 258, 325, 258, 258, 319, 324, 323, 204, 322, 321, 319, 320, 318, 317, 316, 315, 258, 335, 335, 314, 313, 311, 307, 304, 303, 302, 301, 300, 299, 298, 297, 295, 294, 293, 291, 290, 289, 288, 287, 286, 284, 280, 279, 277, 276, 275, 274, 269, 268, 263, 260, 251, 250, 249, 246, 245, 244, 243, 239, 238, 237, 236, 235, 233, 232, 231, 230, 229, 228, 227, 226, 224, 222, 221, 219, 218, 217, 216, 215, 214, 212, 210, 209, 208, 202, 201, 200, 199, 197, 195, 192, 190, 186, 183, 181, 180, 178, 177, 176, 175, 172, 169, 167, 166, 165, 163, 162, 161, 159, 156, 155, 153, 152, 151, 150, 149, 148, 146, 144, 143, 142, 141, 140, 139, 138, 137, 136, 135, 134, 133, 132, 131, 130, 129, 128, 127, 126, 125, 124, 123, 122, 121, 119, 118, 116, 112, 111, 110, 109, 107, 104, 103, 102, 101, 100, 98, 96, 95, 94, 93, 92, 90, 89, 88, 87, 86, 85, 84, 83, 82, 81, 80, 78, 76, 75, 74, 73, 72, 71, 70, 69, 68, 67, 65, 64, 63, 62, 61, 60, 59, 58, 57, 56, 55, 54, 45, 44, 39, 38, 34, 28, 19, 18, 17, 14, 7, 3, 334, 334, 334, 334, 334, 334, 334, 334, 334, 334, 334, 334, 334, 334, 334, 334, 334, 334, 334, 334, 334, 334, 334, 334, 334, 334, 334, 334, 334, 334, 334, 334, 334, 334, 334, 334, 334, 334, 334, 334, 334, 334, 334, 334, 334, 334, 334 } ;/* The intent behind this definition is that it'll catch * any uses of REJECT which flex missed. */#define REJECT reject_used_but_not_detected#define yymore() yymore_used_but_not_detected#define YY_MORE_ADJ 0#define YY_RESTORE_YY_MORE_OFFSET#line 1 "coach_lang_tok.ll"#define INITIAL 0/* -*-flex-*- *//* *Copyright: Copyright (C) 2001 RoboCup Soccer Server Maintainance Group. Patrick Riley, Tom Howard, Itsuki Noda, Mikhail Prokopenko, Jan Wendler This file is part of SoccerServer.
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -