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

📄 macedon-lex.c

📁 这是一个著名的应用层组播中间件的源码
💻 C
📖 第 1 页 / 共 5 页
字号:
      444,  446,  450,  454,  456,  459,  464,  466,  468,  475,      477,  479,  483,  481,  493,  495,  497,  499,   62,  501,      503,  512,  514,  516,  520,  522,  533,  536,  538,  541,      543,  545,  547,  550,  552,  554,  556,   57,  562,  564,      569,  566,  578,  585,  587,  589,  591,  596,  598,  600,      602,  605,  608,  611,  613,  934,  618,  622,  628,  632,      634,  636,  638,  643,  645,  651,  655,  658,  660,  663,      665,  667,  670,  675,  678,  680,  682,  690,  692,  695,      697,  699,  703,  705,  710,  712,  714,  716,  718,  720,      724,  726,  729,  732,  734,  736,  740,  742,  749,  753,      756,  758,  934,  796,  806,  816,  826,  835,  845,  853,      861,  869,  874,  884,  891,  898,  903,  913,  923    } ;static yyconst flex_int16_t yy_def[270] =    {   0,      254,  254,  255,  255,  253,    5,  256,  256,  253,  257,      253,  253,  253,  258,  253,  259,  253,  253,  253,  260,      261,  261,  261,  253,  260,  262,  253,  253,  261,   25,      253,  253,   25,   25,   25,   25,   25,   25,   25,   25,       25,   25,   25,   25,   25,   25,  253,  253,  253,  263,      253,  253,  253,  253,  253,  257,  253,  264,  253,  258,      259,  259,  253,  253,  261,  262,  265,  266,  267,   25,      253,  268,   25,  262,   25,   25,   25,   25,   25,   25,       25,   25,   25,   25,   25,   25,   25,   25,   25,   25,       25,   25,   25,   25,   25,   25,  253,  263,  253,  269,      264,  253,  268,   25,   25,   25,   25,   25,   25,   25,       25,   25,   25,   25,   25,   25,   25,   25,   25,   25,       25,   25,   25,   25,   25,  269,  253,   25,   25,   25,       25,   25,   25,   25,   25,   25,   25,   25,   25,   25,       25,   25,   25,   25,   25,   25,   25,   25,   25,  253,       25,   25,   25,   25,   25,   25,   25,   25,   25,   25,       25,   25,   25,   25,   25,   25,   25,   25,  253,   25,       25,   25,   25,   25,   25,   25,   25,   25,   25,   25,       25,   25,   25,   25,   25,   25,   25,  253,   25,   25,       25,   25,   25,   25,   25,   25,   25,   25,   25,   25,       25,   25,   25,   25,   25,  253,   25,   25,   25,   25,       25,   25,   25,   25,   25,   25,   25,   25,   25,   25,       25,   25,   25,   25,   25,   25,   25,   25,   25,   25,       25,   25,   25,   25,   25,   25,   25,   25,   25,   25,       25,   25,   25,   25,   25,   25,   25,   25,   25,   25,       25,   25,    0,  253,  253,  253,  253,  253,  253,  253,      253,  253,  253,  253,  253,  253,  253,  253,  253    } ;static yyconst flex_int16_t yy_nxt[983] =    {   0,      253,  253,   11,   11,   15,   15,  253,  253,   16,   16,       12,   12,   57,   62,   71,  253,   58,   63,   72,   70,       70,   70,   70,   70,   70,   99,  253,   75,   62,  100,      253,  253,   63,   70,   70,   84,   76,   13,   13,   17,       18,   19,   20,   21,   22,   23,   17,   17,   17,   24,       25,   26,   27,   28,   29,   30,   20,   20,   20,   31,       32,   29,   33,   20,   34,   35,   36,   37,   20,   38,       39,   20,   40,   41,   42,   20,   20,   43,   44,   45,       46,   20,   20,   20,   20,   47,   48,   17,   49,   19,      206,   51,   17,   52,   17,   17,   17,   53,  188,   17,       17,   17,   17,   70,   70,   70,   70,   17,   17,   17,       70,   70,  169,   70,   70,   70,   70,  104,   70,   70,       70,   70,   77,   70,   70,   78,   70,   70,   79,  150,       80,   88,  106,   54,   55,   17,   49,   19,   82,   51,       17,   52,   17,   17,   17,   53,   81,   17,   17,   17,       17,   83,   70,   70,  127,   17,   17,   17,   67,   67,       97,   69,   67,   70,   70,   64,   70,   70,   70,   70,       70,   70,   69,   69,   70,   70,   85,  102,   86,   70,       70,   54,   55,   65,   65,   65,   66,   67,   68,   69,       67,   87,   93,  136,  105,   65,   96,   70,   70,  114,       69,   69,   65,   65,   65,   66,   67,   68,   69,   67,       73,   73,   70,   70,   65,   70,   70,   94,   97,   69,       69,   65,   65,   65,   95,   67,   67,   64,   67,   74,       74,   89,   59,   65,   70,   70,  108,   65,   65,   65,       90,   67,   67,  253,   67,   70,   70,   70,   70,   65,       91,  253,   70,   70,   70,   70,  253,  107,  253,   92,       65,   65,   65,  253,   67,   67,  253,   67,   74,   74,       70,   70,   65,  253,  111,   70,   70,  109,  110,   70,       70,   70,   70,  253,   70,   70,   70,   70,   70,   70,       70,   70,  253,  115,   70,   70,  253,  112,  253,   70,       70,  118,  119,  113,  117,  253,  121,   70,   70,  116,       70,   70,   70,   70,   70,   70,   70,   70,  253,  124,      120,  122,  123,   70,   70,  253,  125,   70,   70,   70,       70,   70,   70,   70,   70,   70,   70,   70,   70,  128,      132,  129,   70,   70,  130,   70,   70,  253,   70,   70,      253,  131,  253,  134,  133,   70,   70,  253,  137,   70,       70,   70,   70,  139,  140,  135,  253,   70,   70,  253,      138,   70,   70,   70,   70,   70,   70,  253,  141,  253,       70,   70,   70,   70,  253,  147,  142,  145,  143,  146,      144,   70,   70,   70,   70,  148,  151,  253,   70,   70,       70,   70,  253,  149,   70,   70,   70,   70,   70,   70,       70,   70,   70,   70,  253,  156,   70,   70,  157,  152,      154,  253,  153,  253,  159,   70,   70,  155,   70,   70,      158,   70,   70,   70,   70,  160,  161,  253,   70,   70,       70,   70,   70,   70,   70,   70,   70,   70,   70,   70,      253,  162,  253,  163,  164,   70,   70,   70,   70,  253,      167,   70,   70,  253,  165,   70,   70,   70,   70,  166,       70,   70,  253,  171,  168,   70,   70,   70,   70,   70,       70,  172,  253,  170,  253,  174,   70,   70,   70,   70,       70,   70,   70,   70,   70,   70,  173,  177,  253,  178,      253,  176,  175,  182,   70,   70,   70,   70,   70,   70,       70,   70,   70,   70,   70,   70,  180,  179,  181,  185,      183,  253,  184,   70,   70,   70,   70,   70,   70,  253,      186,   70,   70,   70,   70,  253,  187,  253,  190,  253,      189,  191,  253,  192,   70,   70,  193,   70,   70,   70,       70,  194,   70,   70,   70,   70,   70,   70,   70,   70,      195,   70,   70,   70,   70,   70,   70,   70,   70,  253,      198,  253,  196,   70,   70,   70,   70,   70,   70,  253,       70,   70,  200,  197,  253,  201,  202,  199,  203,   70,       70,  253,  205,  207,  204,  209,   70,   70,   70,   70,       70,   70,   70,   70,  208,  253,  210,   70,   70,   70,       70,   70,   70,   70,   70,  253,   70,   70,  253,   70,       70,  215,   70,   70,   70,   70,  211,  212,  213,   70,       70,  216,  218,   70,   70,  214,  219,  253,  217,   70,       70,  253,  220,   70,   70,   70,   70,   70,   70,   70,       70,  221,  253,  222,   70,   70,   70,   70,  225,  224,      253,  223,   70,   70,  253,  226,   70,   70,  253,   70,       70,   70,   70,  253,   70,   70,   70,   70,   70,   70,      228,   70,   70,  227,  230,  253,   70,   70,  231,   70,       70,   70,   70,   70,   70,  253,  234,  253,  229,  232,      235,   70,   70,   70,   70,  233,   70,   70,   70,   70,       70,   70,  253,  238,   70,   70,   70,   70,  236,  237,      239,   70,   70,   70,   70,   70,   70,   70,   70,   70,       70,   70,   70,  253,  240,   70,   70,   70,   70,  244,       70,   70,  241,   70,   70,   70,   70,   70,   70,  253,      242,   70,   70,   70,   70,  253,  247,  243,  253,  245,       70,   70,  253,  248,   70,   70,  246,   70,   70,   70,       70,  253,  253,  249,  253,  253,  251,  253,  253,  253,      253,  250,  253,  253,  253,  253,  253,  253,  253,  253,      253,  253,  253,  253,  253,  252,   10,   10,   10,   10,       10,   10,   10,   10,   10,   10,   14,   14,   14,   14,       14,   14,   14,   14,   14,   14,   50,   50,   50,   50,       50,   50,   50,   50,   50,   50,   56,  253,   56,   56,       56,   56,   56,  253,   56,   60,  253,   60,  253,   60,       60,   60,   60,   60,   60,   61,  253,   61,   61,   61,       61,   61,   61,   61,   61,   70,   70,   70,   70,   70,       70,   70,   70,   65,   65,  253,  253,  253,  253,   65,       65,   66,   66,   66,   66,  253,   66,   66,   66,   98,       98,  253,   98,   98,  101,  253,  101,  101,  101,  101,      101,  101,  101,  101,   67,   67,   67,  253,   67,   67,       67,   68,   68,   68,   68,   68,   68,   68,   69,   69,      253,   69,   69,  103,  253,  103,  103,  103,  103,  103,      103,  103,  103,  126,  253,  126,  126,  126,  126,  126,      126,  126,  126,    9,  253,  253,  253,  253,  253,  253,      253,  253,  253,  253,  253,  253,  253,  253,  253,  253,      253,  253,  253,  253,  253,  253,  253,  253,  253,  253,      253,  253,  253,  253,  253,  253,  253,  253,  253,  253,      253,  253,  253,  253,  253,  253,  253,  253,  253,  253,      253,  253    } ;static yyconst flex_int16_t yy_chk[983] =    {   0,        0,    0,    1,    2,    3,    4,    0,    0,    3,    4,        1,    2,   12,   16,   24,    0,   12,   16,   24,   30,       30,   33,   33,   38,   38,   53,   61,   30,   62,   53,       61,    0,   62,   70,   70,   38,   33,    1,    2,    5,        5,    5,    5,    5,    5,    5,    5,    5,    5,    5,        5,    5,    5,    5,    5,    5,    5,    5,    5,    5,        5,    5,    5,    5,    5,    5,    5,    5,    5,    5,        5,    5,    5,    5,    5,    5,    5,    5,    5,    5,        5,    5,    5,    5,    5,    5,    5,    7,    7,    7,      188,    7,    7,    7,    7,    7,    7,    7,  169,    7,        7,    7,    7,   34,   34,   35,   35,    7,    7,    7,       75,   75,  150,   36,   36,   41,   41,   75,   86,   86,       77,   77,   34,  104,  104,   34,   37,   37,   34,  127,       35,   41,   77,    7,    7,    8,    8,    8,   37,    8,        8,    8,    8,    8,    8,    8,   36,    8,    8,    8,        8,   37,   39,   39,  102,    8,    8,    8,   68,   68,       97,   68,   68,   44,   44,   64,   40,   40,   46,   46,       85,   85,   68,   68,  113,  113,   39,   59,   39,   76,       76,    8,    8,   20,   20,   20,   20,   20,   20,   20,       20,   40,   44,  113,   76,   20,   46,   45,   45,   85,       20,   20,   25,   25,   25,   25,   25,   25,   25,   25,       25,   25,   79,   79,   25,   42,   42,   45,   49,   25,       25,   26,   26,   26,   45,   26,   26,   18,   26,   26,       26,   42,   13,   26,   43,   43,   79,   66,   66,   66,       42,   66,   66,    9,   66,   78,   78,   80,   80,   66,       43,    0,   81,   81,   82,   82,    0,   78,    0,   43,       74,   74,   74,    0,   74,   74,    0,   74,   74,   74,       83,   83,   74,    0,   82,   84,   84,   80,   81,   87,       87,   88,   88,    0,   89,   89,   90,   90,   91,   91,       92,   92,    0,   87,   93,   93,    0,   83,    0,   94,       94,   90,   91,   84,   89,    0,   93,   95,   95,   88,       96,   96,  105,  105,  106,  106,  107,  107,    0,   95,       92,   93,   94,  108,  108,    0,   96,  109,  109,  110,      110,  111,  111,  112,  112,  114,  114,  115,  115,  105,      109,  106,  116,  116,  107,  117,  117,    0,  118,  118,        0,  108,    0,  111,  110,  119,  119,    0,  115,  120,      120,  121,  121,  117,  118,  112,    0,  122,  122,    0,      116,  124,  124,  123,  123,  125,  125,    0,  118,    0,      128,  128,  129,  129,    0,  124,  119,  122,  120,  123,      121,  130,  130,  131,  131,  124,  128,    0,  132,  132,      133,  133,    0,  125,  134,  134,  135,  135,  136,  136,      137,  137,  138,  138,    0,  134,  139,  139,  135,  130,      132,    0,  131,    0,  138,  140,  140,  133,  141,  141,      137,  142,  142,  143,  143,  139,  140,    0,  144,  144,      145,  145,  146,  146,  147,  147,  148,  148,  149,  149,        0,  141,    0,  143,  144,  151,  151,  152,  152,    0,      147,  153,  153,    0,  145,  154,  154,  155,  155,  146,      156,  156,    0,  153,  148,  157,  157,  158,  158,  159,      159,  154,    0,  151,    0,  156,  160,  160,  161,  161,      162,  162,  164,  164,  163,  163,  155,  159,    0,  160,        0,  158,  157,  164,  165,  165,  166,  166,  167,  167,      168,  168,  170,  170,  171,  171,  162,  161,  163,  167,      164,    0,  165,  172,  172,  173,  173,  174,  174,    0,      168,  175,  175,  176,  176,    0,  168,    0,  171,    0,      170,  173,    0,  174,  177,  177,  175,  178,  178,  179,      179,  176,  180,  180,  181,  181,  182,  182,  183,  183,      177,  184,  184,  185,  185,  186,  186,  187,  187,    0,      181,    0,  178,  189,  189,  190,  190,  192,  192,    0,      191,  191,  185,  179,    0,  185,  185,  182,  185,  193,      193,    0,  187,  189,  186,  191,  194,  194,  195,  195,      196,  196,  197,  197,  190,    0,  192,  198,  198,  199,      199,  200,  200,  201,  201,    0,  202,  202,    0,  203,      203,  199,  204,  204,  205,  205,  195,  196,  197,  207,      207,  200,  202,  208,  208,  198,  203,    0,  201,  209,      209,    0,  204,  210,  210,  211,  211,  212,  212,  213,      213,  205,    0,  207,  214,  214,  215,  215,  212,  210,        0,  208,  216,  216,    0,  213,  217,  217,    0,  218,      218,  219,  219,    0,  220,  220,  221,  221,  222,  222,      216,  223,  223,  215,  218,    0,  224,  224,  219,  225,      225,  226,  226,  227,  227,    0,  222,    0,  217,  220,      224,  228,  228,  229,  229,  221,  230,  230,  231,  231,      232,  232,    0,  227,  233,  233,  234,  234,  225,  226,      228,  235,  235,  236,  236,  237,  237,  238,  238,  239,      239,  240,  240,    0,  232,  241,  241,  242,  242,  238,      243,  243,  233,  244,  244,  245,  245,  246,  246,    0,      235,  247,  247,  248,  248,    0,  244,  236,    0,  240,      249,  249,    0,  246,  250,  250,  243,  251,  251,  252,      252,    0,    0,  247,    0,    0,  249,    0,    0,    0,        0,  248,    0,    0,    0,    0,    0,    0,    0,    0,        0,    0,    0,    0,    0,  251,  254,  254,  254,  254,      254,  254,  254,  254,  254,  254,  255,  255,  255,  255,      255,  255,  255,  255,  255,  255,  256,  256,  256,  256,      256,  256,  256,  256,  256,  256,  257,    0,  257,  257,      257,  257,  257,    0,  257,  258,    0,  258,    0,  258,      258,  258,  258,  258,  258,  259,    0,  259,  259,  259,      259,  259,  259,  259,  259,  260,  260,  260,  260,  260,      260,  260,  260,  261,  261,    0,    0,    0,    0,  261,      261,  262,  262,  262,  262,    0,  262,  262,  262,  263,      263,    0,  263,  263,  264,    0,  264,  264,  264,  264,      264,  264,  264,  264,  265,  265,  265,    0,  265,  265,      265,  266,  266,  266,  266,  266,  266,  266,  267,  267,        0,  267,  267,  268,    0,  268,  268,  268,  268,  268,      268,  268,  268,  269,    0,  269,  269,  269,  269,  269,      269,  269,  269,  253,  253,  253,  253,  253,  253,  253,      253,  253,  253,  253,  253,  253,  253,  253,  253,  253,      253,  253,  253,  253,  253,  253,  253,  253,  253,  253,      253,  253,  253,  253,  253,  253,  253,  253,  253,  253,      253,  253,  253,  253,  253,  253,  253,  253,  253,  253,      253,  253    } ;static yy_state_type yy_last_accepting_state;static char *yy_last_accepting_cpos;extern int yy_flex_debug;int yy_flex_debug = 0;/* 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 "macedon.l"/*Copyright (c) 2004, Charles Killian, Adolfo Rodriguez, Dejan Kostic, Sooraj Bhat, and Amin Vahdat//All rights reserved.////Redistribution and use in source and binary forms, with or without//modification, are permitted provided that the following conditions are met:////   * Redistributions of source code must retain the above copyright//     notice, this list of conditions and the following disclaimer.//   * Redistributions in binary form must reproduce the above copyright//     notice, this list of conditions and the following disclaimer in//     the documentation and/or other materials provided with the//     distribution.//   * Neither the names of Duke University nor The University of//     California, San Diego, nor the names of its contributors//     may be used to endorse or promote products derived from//     this software without specific prior written permission.////THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"//AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE//IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE//DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE//FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL//DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR//SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER//CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,//OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE//USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */#line 31 "macedon.l"#include "macedon-conv.h"#include <string.h>  extern int lineno;  extern char* mac_name;  extern FILE* hfile;  extern FILE* cfilefuncs;  extern int parse_stage;  extern const int PARSE_INIT;  extern const int PARSE_TRANSITIONS;  extern const int PARSE_PERIPHERALS;   extern const int PARSE_ROUTINES;  extern char the_param_list[128];extern char *protocol_name;  extern char include_buf[1024];  extern char *include_ptr;  int saved_state;  /* C-style-comment handling taken from the online GNU Flex tutorial */#line 796 "lex.yy.c"#define INITIAL 0#define comment 1#define protocol_block 2#define routines_block 3#ifndef YY_NO_UNISTD_H/* Special case for "unistd.h", since it is non-ANSI. We include it way * down here because we want the user's section 1 to have been scanned first. * The user has a chance to override it with an option. */#include <unistd.h>#endif#ifndef YY_EXTRA_TYPE#define YY_EXTRA_TYPE void *#endif/* Macros after this point can all be overridden by user definitions in * section 1. */#ifndef YY_SKIP_YYWRAP#ifdef __cplusplusextern "C" int yywrap (void );#elseextern int yywrap (void );#endif#endif    static void yyunput (int c,char *buf_ptr  );    #ifndef yytext_ptrstatic void yy_flex_strncpy (char *,yyconst char *,int );#endif#ifdef YY_NEED_STRLENstatic int yy_flex_strlen (yyconst char * );#endif#ifndef YY_NO_INPUT#ifdef __cplusplusstatic int yyinput (void );#elsestatic int input (void );#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_LVALUE->yy_is_interactive ) \		{ \		int c = '*'; \		size_t 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

⌨️ 快捷键说明

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