lex.c

来自「samba最新软件」· C语言 代码 · 共 2,292 行 · 第 1/5 页

C
2,292
字号
        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 flex_int32_t yy_meta[70] =    {   0,        1,    1,    1,    1,    1,    1,    2,    1,    1,    3,        3,    3,    3,    3,    3,    3,    1,    1,    3,    3,        3,    3,    3,    3,    2,    2,    2,    2,    2,    2,        2,    2,    2,    2,    2,    2,    2,    2,    2,    2,        2,    2,    2,    2,    1,    1,    2,    3,    3,    3,        3,    3,    3,    2,    2,    2,    2,    2,    2,    2,        2,    2,    2,    2,    2,    2,    2,    2,    2    } ;static yyconst flex_int16_t yy_base[570] =    {   0,        0,    0,  636,  637,  637,  637,  637,  637,   63,  627,      628,   70,   77,  616,   74,   72,   76,  609,   65,   81,       49,    0,   92,   91,   32,  101,   97,  608,  103,  113,       99,  574,  602,  637,  637,  637,  156,  163,  620,  637,        0,  609,    0,  589,  595,  590,  585,  597,  583,  586,      586,    0,  101,  599,  108,  593,  596,  122,  124,  585,      581,  553,  564,  597,  587,  575,  115,  575,  565,  574,      575,  545,  575,  564,    0,  563,  543,  561,  558,  558,      124,  540,  161,  119,  551,  558,  561,  581,  566,  551,      555,  530,  560,  160,  530,   91,  547,  637,    0,  637,      125,    0,  554,  550,  555,    0,  544,  550,  543,  551,      540,  542,  145,  166,  552,  541,    0,  542,  549,  156,      548,  533,  538,  516,  505,  529,  533,  157,  534,  525,      539,  546,    0,  521,  529,  506,  534,  533,  528,  502,      515,    0,  515,  514,  510,  489,  518,  528,  507,    0,      522,  517,  505,  505,  504,  517,  516,  486,  159,  499,      520,  468,  482,  477,  506,  499,  494,  502,  497,  495,      461,  502,  505,  502,  485,  488,  482,  500,  479,  485,      494,  493,  491,  479,  485,  475,  164,  487,    0,  446,      453,  442,  468,  478,  468,  464,  483,  170,  488,  463,        0,  436,  477,  459,  463,  445,  471,  486,  469,  472,      425,    0,  451,  465,    0,  455,  467,  420,    0,    0,      477,  418,  450,  442,  457,  423,  441,  425,  415,  426,        0,  436,  454,  451,  452,    0,  407,  450,  447,  444,        0,  434,  429,  437,  433,  435,  439,  437,  423,  420,      436,  418,  418,  422,    0,  405,  396,  388,  423,  180,      411,  426,  415,  423,  408,  429,  436,  386,  403,    0,      408,  374,  402,  410,  404,  397,  386,  406,  400,  406,      388,  366,  401,  375,    0,  403,  389,  365,  358,  359,      356,  362,    0,  398,  399,  379,  360,  383,  376,    0,      390,  393,  379,  372,  371,  385,  385,  387,    0,  378,      367,  376,  383,  343,  350,  343,  374,  370,  374,  358,      371,  372,  356,  368,  353,  362,  338,    0,  368,  364,      353,  352,  345,  359,  332,  340,  358,    0,    0,  322,      355,  308,    0,  338,  322,  310,  308,  319,  318,  331,      330,  340,  306,    0,  342,  332,  336,  335,    0,  334,      338,    0,  321,  320,    0,  337,  326,  151,  318,  294,      326,  314,    0,    0,  314,  327,    0,  328,  283,  315,      309,  315,  292,    0,  319,    0,    0,  284,  318,  317,      279,  315,  300,  317,    0,  279,  286,  265,  295,  324,      303,  308,  274,  291,  288,  293,  292,  290,    0,  299,        0,  294,    0,  255,  250,  253,  263,  293,    0,    0,        0,  277,  251,  289,  247,    0,  247,  283,  257,  261,        0,  253,  274,  240,  274,  243,  244,  264,  235,  262,      265,    0,    0,    0,  260,  273,  270,  262,  271,  262,      228,  238,  226,    0,  252,  260,  230,  258,  221,  233,      250,  244,  247,    0,  241,  215,    0,  223,  239,  210,      211,  230,  240,    0,  249,    0,  233,    0,  242,  212,      216,  210,    0,  232,  204,  231,  206,  198,  233,  194,      231,  230,  200,    0,  190,  191,  197,  220,    0,    0,        0,  213,  190,  211,  188,  215,  192,  218,  184,  187,      204,  178,  218,  215,  178,  174,  180,  175,  196,  190,      178,  175,  176,    0,    0,  191,  174,  165,  180,  166,        0,  194,  166,  163,  158,  163,  197,    0,    0,  156,        0,  171,    0,  148,    0,  152,  188,    0,  150,  155,        0,  166,  153,    0,  143,  148,  162,  143,    0,    0,        0,  101,    0,    0,    0,    0,  637,  223,   69    } ;static yyconst flex_int16_t yy_def[570] =    {   0,      567,    1,  567,  567,  567,  567,  567,  567,  567,  567,      567,  567,  567,  567,  568,  568,  568,  568,  568,  568,      568,  568,  568,  568,  568,  568,  568,  568,  568,  568,      568,  568,  568,  567,  567,  567,  567,  567,  567,  567,      569,  567,  568,  568,  568,  568,  568,  568,  568,  568,      568,  568,  568,  568,  568,  568,  568,  568,  568,  568,      568,  568,  568,  568,  568,  568,  568,  568,  568,  568,      568,  568,  568,  568,  568,  568,  568,  568,  568,  568,      568,  568,  568,  568,  568,  568,  568,  568,  568,  568,      568,  568,  568,  568,  568,  568,  568,  567,  569,  567,      568,  568,  568,  568,  568,  568,  568,  568,  568,  568,      568,  568,  568,  568,  568,  568,  568,  568,  568,  568,      568,  568,  568,  568,  568,  568,  568,  568,  568,  568,      568,  568,  568,  568,  568,  568,  568,  568,  568,  568,      568,  568,  568,  568,  568,  568,  568,  568,  568,  568,      568,  568,  568,  568,  568,  568,  568,  568,  568,  568,      568,  568,  568,  568,  568,  568,  568,  568,  568,  568,      568,  568,  568,  568,  568,  568,  568,  568,  568,  568,      568,  568,  568,  568,  568,  568,  568,  568,  568,  568,      568,  568,  568,  568,  568,  568,  568,  568,  568,  568,      568,  568,  568,  568,  568,  568,  568,  568,  568,  568,      568,  568,  568,  568,  568,  568,  568,  568,  568,  568,      568,  568,  568,  568,  568,  568,  568,  568,  568,  568,      568,  568,  568,  568,  568,  568,  568,  568,  568,  568,      568,  568,  568,  568,  568,  568,  568,  568,  568,  568,      568,  568,  568,  568,  568,  568,  568,  568,  568,  568,      568,  568,  568,  568,  568,  568,  568,  568,  568,  568,      568,  568,  568,  568,  568,  568,  568,  568,  568,  568,      568,  568,  568,  568,  568,  568,  568,  568,  568,  568,      568,  568,  568,  568,  568,  568,  568,  568,  568,  568,      568,  568,  568,  568,  568,  568,  568,  568,  568,  568,      568,  568,  568,  568,  568,  568,  568,  568,  568,  568,      568,  568,  568,  568,  568,  568,  568,  568,  568,  568,      568,  568,  568,  568,  568,  568,  568,  568,  568,  568,      568,  568,  568,  568,  568,  568,  568,  568,  568,  568,      568,  568,  568,  568,  568,  568,  568,  568,  568,  568,      568,  568,  568,  568,  568,  568,  568,  568,  568,  568,      568,  568,  568,  568,  568,  568,  568,  568,  568,  568,      568,  568,  568,  568,  568,  568,  568,  568,  568,  568,      568,  568,  568,  568,  568,  568,  568,  568,  568,  568,      568,  568,  568,  568,  568,  568,  568,  568,  568,  568,      568,  568,  568,  568,  568,  568,  568,  568,  568,  568,      568,  568,  568,  568,  568,  568,  568,  568,  568,  568,      568,  568,  568,  568,  568,  568,  568,  568,  568,  568,      568,  568,  568,  568,  568,  568,  568,  568,  568,  568,      568,  568,  568,  568,  568,  568,  568,  568,  568,  568,      568,  568,  568,  568,  568,  568,  568,  568,  568,  568,      568,  568,  568,  568,  568,  568,  568,  568,  568,  568,      568,  568,  568,  568,  568,  568,  568,  568,  568,  568,      568,  568,  568,  568,  568,  568,  568,  568,  568,  568,      568,  568,  568,  568,  568,  568,  568,  568,  568,  568,      568,  568,  568,  568,  568,  568,  568,  568,  568,  568,      568,  568,  568,  568,  568,  568,  568,  568,  568,  568,      568,  568,  568,  568,  568,  568,  568,  568,  568,  568,      568,  568,  568,  568,  568,  568,  568,  568,  568,  568,      568,  568,  568,  568,  568,  568,  568,  568,  568,  568,      568,  568,  568,  568,  568,  568,    0,  567,  567    } ;static yyconst flex_int16_t yy_nxt[707] =    {   0,        4,    5,    6,    7,    8,    4,    9,   10,   11,   12,       13,   13,   13,   13,   13,   13,   14,    4,   15,   16,       17,   18,   19,   20,   21,   22,   23,   22,   22,   22,       24,   25,   26,   27,   22,   28,   29,   30,   31,   32,       33,   22,   22,   22,   34,   35,    4,   22,   22,   22,       22,   22,   22,   22,   22,   22,   22,   22,   22,   22,       22,   22,   22,   22,   22,   22,   22,   22,   22,   36,       71,   99,   37,   38,   38,   38,   38,   38,   38,   38,       38,   38,   38,   38,   38,   38,   38,   38,   38,   38,       38,   38,   38,   44,   48,   57,   58,   72,   49,   60,       62,   53,   50,   45,   51,   54,   59,   46,   55,   69,       64,   63,   47,   65,   52,   78,   61,   70,   79,  109,       73,   74,   66,   67,   75,   84,   80,   88,   68,   85,       93,   89,   81,  110,   76,  129,   94,   41,  112,  113,       86,  163,  116,  117,  119,   87,  144,  166,   90,   77,      145,  130,  131,  149,  164,   91,  150,  120,   95,   82,      118,  121,  167,  566,   92,   38,   38,   38,   38,   38,       38,   38,   38,   38,   38,   38,   38,   38,   38,  147,      160,  177,  178,  161,  179,  185,  194,  414,  186,  195,      148,  223,  180,  224,  264,  253,  565,  564,  225,  254,      318,  563,  319,  562,  561,  265,  415,  560,  559,  558,      557,  556,  555,  554,  553,  552,  551,  550,  549,  548,      547,  546,  545,   41,   43,   43,  544,  543,  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,  486,  485,  484,  483,  482,  481,      480,  479,  478,  477,  476,  475,  474,  473,  472,  471,      470,  469,  468,  467,  466,  465,  464,  463,  462,  461,      460,  459,  458,  457,  456,  455,  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,  429,  428,  427,  426,  425,  424,  423,  422,  421,      420,  419,  418,  417,  416,  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,  377,  376,  375,  374,  373,  372,  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,  335,  334,  333,  332,  331,  330,  329,      328,  327,  326,  325,  324,  323,  322,  321,  320,  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,  274,  273,  272,  271,  270,  269,  268,  267,      266,  263,  262,  261,  260,  259,  258,  257,  256,  255,      252,  251,  250,  249,  248,  247,  246,  245,  244,  243,      242,  241,  240,  239,  238,  237,  236,  235,  234,  233,      232,  231,  230,  229,  228,  227,  226,  222,  221,  220,      219,  218,  217,  216,  215,  214,  213,  212,  211,  210,      209,  208,  207,  206,  205,  204,  203,  202,  201,  200,      199,  198,  197,  196,  193,  192,  191,  190,  189,  188,      187,  184,  183,  182,  181,  176,  175,  174,  173,  172,      171,  170,  169,  168,  165,  162,  159,  158,  157,  156,      155,  154,  153,  152,  151,  146,  143,  142,  141,  140,      139,  138,  137,  136,  135,  134,  133,  132,  128,  127,      126,  125,  124,  123,  122,  115,  114,  111,  108,  107,      106,  105,  104,  103,  102,  101,  100,   98,   97,   96,       83,   56,   42,   40,   39,  567,    3,  567,  567,  567,      567,  567,  567,  567,  567,  567,  567,  567,  567,  567,      567,  567,  567,  567,  567,  567,  567,  567,  567,  567,      567,  567,  567,  567,  567,  567,  567,  567,  567,  567,      567,  567,  567,  567,  567,  567,  567,  567,  567,  567,      567,  567,  567,  567,  567,  567,  567,  567,  567,  567,      567,  567,  567,  567,  567,  567,  567,  567,  567,  567,      567,  567,  567,  567,  567,  567    } ;static yyconst flex_int16_t yy_chk[707] =    {   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,    1,    1,    1,    1,    1,    1,        1,    1,    1,    1,    1,    1,    1,    1,    1,    9,       25,  569,    9,    9,    9,    9,    9,    9,    9,   12,       12,   12,   12,   12,   12,   12,   13,   13,   13,   13,       13,   13,   13,   15,   16,   19,   19,   25,   16,   20,       21,   17,   16,   15,   16,   17,   19,   15,   17,   24,       23,   21,   15,   23,   16,   27,   20,   24,   27,   53,       26,   26,   23,   23,   26,   29,   27,   30,   23,   29,       31,   30,   27,   53,   26,   67,   31,   12,   55,   55,       29,   96,   58,   58,   59,   29,   81,  101,   30,   26,       81,   67,   67,   84,   96,   30,   84,   59,   31,   27,       58,   59,  101,  562,   30,   37,   37,   37,   37,   37,       37,   37,   38,   38,   38,   38,   38,   38,   38,   83,       94,  113,  113,   94,  114,  120,  128,  368,  120,  128,       83,  159,  114,  159,  198,  187,  558,  557,  159,  187,      260,  556,  260,  555,  553,  198,  368,  552,  550,  549,      547,  546,  544,  542,  540,  537,  536,  535,  534,  533,      532,  530,  529,   37,  568,  568,  528,  527,  526,  523,      522,  521,  520,  519,  518,  517,  516,  515,  514,  513,      512,  511,  510,  509,  508,  507,  506,  505,  504,  503,      502,  498,  497,  496,  495,  493,  492,  491,  490,  489,      488,  487,  486,  485,  484,  482,  481,  480,  479,  477,      475,  473,  472,  471,  470,  469,  468,  466,  465,  463,      462,  461,  460,  459,  458,  457,  456,  455,  453,  452,      451,  450,  449,  448,  447,  446,  445,  441,  440,  439,      438,  437,  436,  435,  434,  433,  432,  430,  429,  428,      427,  425,  424,  423,  422,  418,  417,  416,  415,  414,      412,  410,  408,  407,  406,  405,  404,  403,  402,  401,      400,  399,  398,  397,  396,  394,  393,  392,  391,  390,      389,  388,  385,  383,  382,  381,  380,  379,  378,  376,      375,  372,  371,  370,  369,  367,  366,  364,  363,  361,      360,  358,  357,  356,  355,  353,  352,  351,  350,  349,      348,  347,  346,  345,  344,  342,  341,  340,  337,  336,      335,  334,  333,  332,  331,  330,  329,  327,  326,  325,      324,  323,  322,  321,  320,  319,  318,  317,  316,  315,      314,  313,  312,  311,  310,  308,  307,  306,  305,  304,      303,  302,  301,  299,  298,  297,  296,  295,  294,  292,      291,  290,  289,  288,  287,  286,  284,  283,  282,  281,      280,  279,  278,  277,  276,  275,  274,  273,  272,  271,      269,  268,  267,  266,  265,  264,  263,  262,  261,  259,      258,  257,  256,  254,  253,  252,  251,  250,  249,  248,      247,  246,  245,  244,  243,  242,  240,  239,  238,  237,      235,  234,  233,  232,  230,  229,  228,  227,  226,  225,      224,  223,  222,  221,  218,  217,  216,  214,  213,  211,      210,  209,  208,  207,  206,  205,  204,  203,  202,  200,      199,  197,  196,  195,  194,  193,  192,  191,  190,  188,      186,  185,  184,  183,  182,  181,  180,  179,  178,  177,      176,  175,  174,  173,  172,  171,  170,  169,  168,  167,      166,  165,  164,  163,  162,  161,  160,  158,  157,  156,      155,  154,  153,  152,  151,  149,  148,  147,  146,  145,      144,  143,  141,  140,  139,  138,  137,  136,  135,  134,      132,  131,  130,  129,  127,  126,  125,  124,  123,  122,      121,  119,  118,  116,  115,  112,  111,  110,  109,  108,      107,  105,  104,  103,   97,   95,   93,   92,   91,   90,       89,   88,   87,   86,   85,   82,   80,   79,   78,   77,       76,   74,   73,   72,   71,   70,   69,   68,   66,   65,       64,   63,   62,   61,   60,   57,   56,   54,   51,   50,       49,   48,   47,   46,   45,   44,   42,   39,   33,   32,       28,   18,   14,   11,   10,    3,  567,  567,  567,  567,      567,  567,  567,  567,  567,  567,  567,  567,  567,  567,      567,  567,  567,  567,  567,  567,  567,  567,  567,  567,      567,  567,  567,  567,  567,  567,  567,  567,  567,  567,      567,  567,  567,  567,  567,  567,  567,  567,  567,  567,      567,  567,  567,  567,  567,  567,  567,  567,  567,  567,      567,  567,  567,  567,  567,  567,  567,  567,  567,  567,      567,  567,  567,  567,  567,  567    } ;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 "lex.l"#line 2 "lex.l"/* * Copyright (c) 1997 - 2005 Kungliga Tekniska H鰃skolan * (Royal Institute of Technology, Stockholm, Sweden).  * All rights reserved.  * * Redistribution and use in source and binary forms, with or without  * modification, are permitted provided that the following conditions  * are met:  * * 1. Redistributions of source code must retain the above copyright  *    notice, this list of conditions and the following disclaimer.  * * 2. 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.  * * 3. Neither the name of the Institute 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 INSTITUTE 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 INSTITUTE 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.  *//* $Id: lex.l 18738 2006-10-21 11:57:22Z lha $ */#ifdef HAVE_CONFIG_H#include <config.h>#endif#include <stdio.h>#include <stdarg.h>#include <stdlib.h>#include <string.h>#ifdef HAVE_UNISTD_H#include <unistd.h>#endif#undef ECHO#include "symbol.h"#include "parse.h"#include "lex.h"#include "gen_locl.h"static unsigned lineno = 1;#undef ECHOstatic void unterminated(const char *, unsigned);/* This is for broken old lexes (solaris 10 and hpux) */#line 855 "lex.c"#define INITIAL 0#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 *#endifstatic int yy_init_globals (void );/* Accessor methods to globals.   These are made visible to non-reentrant scanners for convenience. */int yylex_destroy (void );int yyget_debug (void );void yyset_debug (int debug_flag  );YY_EXTRA_TYPE yyget_extra (void );void yyset_extra (YY_EXTRA_TYPE user_defined  );FILE *yyget_in (void );void yyset_in  (FILE * in_str  );FILE *yyget_out (void );void yyset_out  (FILE * out_str  );int yyget_leng (void );char *yyget_text (void );int yyget_lineno (void );void yyset_lineno (int line_number  );/* 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

⌨️ 快捷键说明

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