📄 lexer.c
字号:
551, 551, 551, 551, 555, 551, 551, 551, 555, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 556, 551, 551, 557, 551, 551, 551, 551, 555, 551, 551, 551, 551, 551, 558, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 556, 551, 551, 551, 551, 551, 551, 551, 558, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 0, 551, 551, 551, 551, 551, 551, 551 } ;static yyconst short int yy_nxt[678] = { 0, 10, 11, 12, 13, 14, 10, 15, 16, 17, 18, 19, 20, 20, 20, 20, 20, 10, 21, 22, 10, 10, 10, 23, 24, 25, 26, 27, 28, 10, 29, 30, 31, 10, 32, 33, 34, 10, 35, 36, 37, 38, 10, 39, 40, 10, 41, 10, 42, 44, 45, 44, 45, 51, 58, 52, 54, 54, 54, 54, 54, 54, 551, 59, 56, 60, 120, 46, 56, 46, 53, 53, 53, 53, 53, 53, 61, 65, 550, 121, 69, 82, 62, 74, 63, 51, 83, 52, 64, 70, 66, 99, 71, 78, 75, 67, 84, 79, 116, 141, 57, 80, 85, 142, 117, 90, 100, 81, 91, 92, 86, 130, 87, 88, 93, 101, 94, 89, 102, 107, 95, 206, 146, 108, 131, 323, 204, 96, 549, 324, 97, 109, 147, 207, 110, 98, 111, 54, 54, 54, 54, 54, 54, 56, 205, 53, 53, 53, 53, 53, 53, 54, 54, 54, 54, 54, 54, 112, 112, 112, 112, 112, 112, 125, 143, 126, 149, 157, 219, 151, 548, 127, 150, 164, 372, 220, 232, 128, 144, 152, 129, 233, 254, 165, 158, 159, 112, 112, 112, 112, 112, 112, 334, 256, 262, 373, 255, 257, 263, 272, 376, 273, 455, 547, 377, 258, 264, 428, 335, 429, 460, 485, 486, 546, 461, 545, 544, 274, 456, 43, 43, 43, 43, 43, 47, 47, 47, 47, 47, 48, 48, 48, 48, 48, 53, 53, 105, 543, 105, 105, 105, 106, 106, 106, 106, 106, 113, 113, 542, 541, 540, 539, 538, 537, 536, 535, 534, 533, 532, 531, 530, 529, 528, 527, 526, 525, 524, 523, 522, 521, 520, 519, 518, 517, 516, 515, 514, 513, 512, 511, 510, 509, 508, 507, 506, 505, 504, 503, 502, 501, 500, 499, 498, 497, 496, 495, 494, 493, 492, 491, 490, 489, 488, 487, 484, 483, 482, 481, 480, 479, 478, 477, 476, 475, 474, 473, 472, 471, 470, 469, 468, 467, 466, 465, 464, 463, 462, 459, 458, 457, 454, 453, 452, 451, 450, 449, 448, 447, 446, 445, 444, 443, 442, 441, 440, 439, 438, 437, 436, 435, 434, 433, 432, 431, 430, 427, 426, 425, 424, 423, 422, 421, 420, 419, 418, 417, 416, 415, 414, 413, 412, 411, 410, 409, 408, 407, 406, 405, 404, 403, 402, 401, 400, 399, 398, 397, 396, 395, 394, 393, 392, 391, 390, 389, 388, 387, 386, 385, 384, 383, 382, 381, 380, 379, 378, 375, 374, 371, 370, 369, 368, 367, 366, 365, 364, 363, 362, 361, 360, 359, 358, 357, 356, 355, 354, 353, 352, 351, 350, 349, 348, 347, 346, 345, 344, 343, 342, 341, 340, 339, 338, 337, 336, 333, 332, 331, 330, 329, 328, 327, 326, 325, 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, 271, 270, 269, 268, 267, 266, 265, 261, 260, 259, 253, 252, 251, 250, 249, 248, 247, 246, 245, 244, 243, 242, 241, 240, 239, 238, 237, 236, 235, 234, 231, 230, 229, 228, 227, 226, 225, 224, 223, 222, 221, 218, 217, 216, 215, 214, 213, 212, 211, 210, 209, 208, 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, 168, 167, 166, 163, 162, 161, 160, 156, 155, 154, 153, 148, 145, 140, 139, 138, 137, 136, 135, 134, 133, 132, 124, 123, 122, 119, 118, 115, 114, 50, 104, 103, 77, 76, 73, 72, 68, 55, 50, 551, 49, 49, 9, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551 } ;static yyconst short int yy_chk[678] = { 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, 3, 3, 4, 4, 15, 23, 15, 17, 17, 17, 17, 17, 17, 19, 23, 19, 24, 63, 3, 20, 4, 20, 20, 20, 20, 20, 20, 24, 25, 548, 63, 27, 34, 24, 30, 24, 51, 34, 51, 24, 27, 25, 38, 27, 33, 30, 25, 35, 33, 60, 80, 19, 33, 35, 80, 60, 36, 38, 33, 36, 36, 35, 69, 35, 35, 37, 39, 37, 35, 39, 46, 37, 148, 84, 46, 69, 272, 147, 37, 547, 272, 37, 46, 84, 148, 46, 37, 46, 52, 52, 52, 52, 52, 52, 53, 147, 53, 53, 53, 53, 53, 53, 54, 54, 54, 54, 54, 54, 56, 56, 56, 56, 56, 56, 68, 81, 68, 86, 92, 161, 87, 546, 68, 86, 97, 330, 161, 175, 68, 81, 87, 68, 175, 202, 97, 92, 92, 112, 112, 112, 112, 112, 112, 285, 203, 208, 330, 202, 203, 208, 216, 334, 216, 428, 545, 334, 203, 208, 389, 285, 389, 432, 468, 468, 544, 432, 542, 540, 216, 428, 552, 552, 552, 552, 552, 553, 553, 553, 553, 553, 554, 554, 554, 554, 554, 555, 555, 556, 539, 556, 556, 556, 557, 557, 557, 557, 557, 558, 558, 538, 537, 536, 535, 534, 533, 530, 529, 526, 525, 524, 523, 522, 520, 519, 518, 517, 515, 514, 513, 511, 510, 509, 508, 507, 506, 505, 504, 503, 502, 501, 500, 499, 498, 497, 496, 495, 494, 493, 492, 491, 490, 489, 488, 484, 483, 482, 479, 478, 477, 476, 474, 473, 472, 470, 469, 467, 463, 462, 461, 460, 459, 457, 456, 455, 454, 453, 452, 451, 449, 448, 446, 445, 444, 443, 440, 438, 434, 433, 431, 430, 429, 426, 425, 420, 419, 418, 415, 413, 412, 411, 409, 408, 407, 405, 404, 403, 402, 401, 399, 398, 397, 396, 395, 394, 391, 390, 388, 387, 386, 385, 384, 383, 381, 380, 379, 378, 377, 376, 374, 373, 372, 371, 370, 369, 368, 365, 364, 363, 362, 361, 360, 359, 358, 357, 356, 355, 354, 353, 352, 351, 350, 349, 348, 347, 346, 345, 344, 343, 342, 341, 340, 339, 338, 337, 336, 335, 332, 331, 329, 327, 326, 325, 324, 323, 321, 319, 318, 317, 316, 315, 314, 312, 311, 310, 309, 308, 307, 305, 304, 303, 302, 300, 298, 297, 296, 295, 294, 293, 292, 291, 290, 288, 287, 286, 284, 283, 282, 281, 280, 278, 276, 274, 273, 271, 269, 268, 267, 266, 265, 264, 263, 262, 261, 260, 259, 256, 255, 254, 253, 252, 251, 250, 249, 248, 246, 245, 244, 243, 241, 240, 239, 238, 237, 236, 235, 234, 233, 232, 231, 230, 229, 228, 226, 225, 224, 223, 222, 220, 219, 218, 217, 215, 214, 213, 212, 211, 210, 209, 207, 206, 204, 198, 197, 196, 195, 194, 193, 192, 191, 190, 189, 187, 185, 184, 183, 182, 181, 180, 179, 177, 176, 174, 173, 171, 170, 168, 167, 166, 165, 164, 163, 162, 159, 158, 157, 156, 155, 154, 153, 152, 151, 150, 149, 146, 145, 144, 143, 142, 141, 140, 139, 138, 137, 135, 134, 133, 132, 131, 130, 129, 128, 127, 126, 125, 124, 123, 122, 121, 120, 118, 117, 116, 115, 114, 104, 103, 102, 101, 100, 99, 98, 96, 95, 94, 93, 91, 90, 89, 88, 85, 83, 79, 78, 77, 76, 74, 73, 72, 71, 70, 67, 66, 64, 62, 61, 59, 58, 50, 41, 40, 32, 31, 29, 28, 26, 18, 11, 9, 8, 7, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551 } ;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_OFFSETchar *yytext;#line 1 "../lexer.l"#define INITIAL 0/* * avrdude - A Downloader/Uploader for AVR device programmers * Copyright (C) 2000-2004 Brian S. Dean <bsd@bsdhome.com> * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA *//* $Id: lexer.l,v 1.33 2005/09/18 20:12:23 joerg_wunsch Exp $ */#line 23 "../lexer.l"/* need this for the call to atof() below */#include <math.h>#include <string.h>#include <errno.h>#include <limits.h>#include <sys/types.h>#include <sys/stat.h>#include "config.h"#include "config_gram.h"#include "lists.h"extern int lineno;extern char * infile;void pyytext(void);#define YY_NO_UNPUT#define str 1#define incl 2#define comment 3#line 738 "lexer.c"/* Macros after this point can all be overridden by user definitions in * section 1. */#ifndef YY_SKIP_YYWRAP#ifdef __cplusplusextern "C" int yywrap YY_PROTO(( void ));#elseextern int yywrap YY_PROTO(( void ));#endif#endif#ifndef YY_NO_UNPUTstatic void yyunput YY_PROTO(( int c, char *buf_ptr ));#endif#ifndef yytext_ptrstatic void yy_flex_strncpy YY_PROTO(( char *, yyconst char *, int ));#endif#ifdef YY_NEED_STRLENstatic int yy_flex_strlen YY_PROTO(( yyconst char * ));#endif#ifndef YY_NO_INPUT#ifdef __cplusplusstatic int yyinput YY_PROTO(( void ));#elsestatic int input YY_PROTO(( void ));#endif#endif#if YY_STACK_USEDstatic int yy_start_stack_ptr = 0;static int yy_start_stack_depth = 0;static int *yy_start_stack = 0;#ifndef YY_NO_PUSH_STATEstatic void yy_push_state YY_PROTO(( int new_state ));#endif#ifndef YY_NO_POP_STATEstatic void yy_pop_state YY_PROTO(( void ));#endif#ifndef YY_NO_TOP_STATEstatic 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_DECLYY_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_ACTIONYY_DECL { register yy_state_type yy_current_state; register char *yy_cp, *yy_bp; register int yy_act;#line 53 "../lexer.l"#line 892 "lexer.c" 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;
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -