📄 parse_noyacc.c
字号:
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 79, 82, 83, 84, 85, 86, 87, 88, 0, 185, 0, 0, 0, 94, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 192, 193, 0, 195, 0, 0, 0, 199, 0, 200, 0, 0, 0, 82, 83, 84, 85, 86, 87, 88, 0, 0, 0, 0, 0, 94, 0, 0, 0, 0, 0, 82, 83, 84, 85, 86, 87, 88, 0, 0, 0, 0, 0, 94, 0, 82, 83, 84, 85, 86, 87, 88, 64, 0, 0, 0, 0, 94, 70, 71, 0, 0, 0, 0, 77, 0, 0, 0, 0, 0, 0, 0, 0, 0, 64, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 77, 0, 77, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 77, 0, 0, 0, 0, 0, 122, 123, 124, 125, 126, 127, 128, 129, 130, 131, 132, 133, 134, 135, 136, 0, 138, 139, 0, 0, 0, 0, 0, 0, 0, 0, 0, 77, 77, 77, 77, 77, 77, 77, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 157, 64, 0, 0, 0, 77, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 77, 77, 77, 77, 77, 77, 77, 77,};const short yycheck[] = { 91, 0, 47, 49, 44, 37, 38, 40, 3, 0, 42, 43, 48, 45, 44, 47, 10, 0, 44, 41, 12, 13, 44, 41, 19, 44, 44, 44, 61, 44, 44, 44, 37, 59, 37, 10, 10, 42, 43, 42, 45, 256, 47, 40, 47, 10, 59, 41, 0, 10, 44, 40, 47, 93, 10, 41, 0, 91, 44, 91, 10, 40, 10, 93, 0, 59, 41, 41, 259, 44, 44, 93, 61, 160, 93, 93, 93, 259, 93, 93, 41, 259, 41, 44, 59, 59, 91, 10, 91, 10, 10, 41, 124, 41, 44, 0, 44, 91, 59, 145, 59, 10, 40, 0, 91, 192, 193, 102, 40, 59, 146, 59, 199, 259, 10, 259, 91, 91, 41, 91, 41, 44, 10, 44, 91, 41, 125, 10, 44, 91, 91, 40, 41, 41, 125, 44, 59, 259, 59, 175, 185, 91, 125, 10, 10, 41, 41, 10, 44, 44, 59, 41, 41, 41, 37, 38, 44, 10, 41, 42, 43, 44, 45, 59, 47, 287, 288, 289, 59, 41, 10, 59, 44, 125, 41, 41, 59, 44, 44, 41, 10, 125, 44, 262, 93, 0, 10, 41, 41, 125, 185, 44, 59, 59, 259, 59, 191, 37, 38, 290, 40, 41, 42, 43, 44, 45, 59, 47, 91, 91, 93, 41, 41, -1, 44, 175, 40, -1, -1, 59, 125, 45, 287, 288, 289, -1, -1, -1, 125, 59, -1, -1, 10, -1, 268, 269, 270, 271, 272, 273, 274, 124, -1, -1, 276, 277, 278, 279, 280, 281, 282, 283, 284, 93, -1, 288, 289, -1, 290, -1, 259, 260, 261, 262, 263, 264, 265, 266, 259, 260, 261, 262, 263, 264, 265, 266, 259, 260, 261, 262, 263, 264, 265, 266, 124, 290, -1, 290, 287, 288, 289, 288, 289, -1, -1, 284, 287, 288, 289, 288, 289, -1, -1, -1, 287, 288, 289, 259, 260, 261, 262, 263, 264, 265, 266, 259, 260, 261, 262, 263, 264, 265, 266, 259, 260, 261, 262, 263, 264, 265, 266, -1, -1, -1, -1, 287, 288, 289, -1, 10, -1, 40, 41, 287, 288, 289, 45, 125, 257, 258, 259, 287, 288, 289, 259, 260, 261, 262, 263, 264, 265, 266, 259, 260, 261, -1, 263, 264, 265, 266, 41, -1, -1, 44, 257, 258, 259, 286, 10, 288, 289, -1, 287, 288, 289, -1, -1, -1, 59, -1, 287, 288, 289, 276, 277, 278, 279, 280, 281, 282, 283, 284, -1, 286, -1, 37, 38, 290, 40, 41, 42, 43, 44, 45, -1, 47, -1, 257, 258, 259, 40, -1, -1, 10, -1, 45, -1, 59, -1, -1, -1, -1, -1, 257, 258, 259, 276, 277, 278, 279, 280, 281, 282, 283, 284, -1, 286, -1, 288, 289, 37, 38, -1, 40, 41, 42, 43, 44, 45, -1, 47, 93, 286, 10, 288, 289, -1, -1, -1, -1, -1, -1, 59, -1, 10, -1, -1, -1, -1, 59, -1, 259, 260, 261, -1, 263, 264, 265, 266, 69, 37, 38, 124, 40, 41, 42, 43, 44, 45, 10, 47, -1, -1, -1, 40, 41, 93, 10, 44, 287, 288, 289, 59, -1, 10, 95, 10, -1, 98, 99, 100, -1, -1, 59, -1, -1, 37, 38, -1, 40, 41, 42, 43, 44, 45, -1, 47, 124, 41, 10, -1, 44, -1, -1, 40, -1, 93, 41, 59, 45, 44, -1, 10, -1, -1, -1, 59, 93, 257, 258, 259, 10, 10, -1, -1, 59, 37, 38, -1, 40, 41, 42, 43, 44, 45, 10, 47, 124, -1, -1, -1, -1, 93, 41, 10, -1, 44, 286, 59, 288, 289, -1, 41, 41, -1, 44, 44, -1, -1, -1, -1, 59, -1, -1, -1, -1, 41, -1, -1, 44, 59, 59, 38, 124, 40, 41, -1, 43, 44, 45, -1, -1, 93, -1, 59, 257, 258, 259, -1, -1, 10, -1, -1, 59, -1, -1, -1, 257, 258, 259, -1, -1, -1, -1, 276, 277, 278, 279, 280, 281, 282, 283, 284, 124, 286, -1, 288, 289, 38, -1, 40, 41, -1, 43, 44, 45, 286, 93, 288, 289, 257, 258, 259, -1, -1, 10, -1, -1, -1, 59, 268, 269, 270, 271, 272, 273, 274, -1, -1, 276, 277, 278, 279, 280, 281, 282, 283, 284, 124, 286, -1, 288, 289, 38, -1, 40, 41, -1, -1, 44, 257, 258, 259, 93, -1, -1, -1, -1, -1, -1, -1, 257, 258, 259, 59, -1, -1, -1, 10, 276, 277, 278, 279, 280, 281, 282, 283, 284, -1, 286, 276, 288, 289, -1, 124, -1, 257, 258, 259, -1, 286, 10, 288, 289, -1, -1, -1, -1, 93, 61, -1, 257, 258, 259, -1, 276, 277, 278, 279, 280, 281, 282, 283, 284, -1, 286, -1, 288, 289, 38, -1, 40, 41, -1, -1, 44, 257, 258, 259, 124, 286, 10, 288, 289, -1, -1, -1, -1, -1, -1, 59, -1, -1, -1, -1, 276, 277, 278, 279, 280, 281, 282, 283, 284, -1, 286, -1, 288, 289, 38, -1, 40, 41, -1, -1, 44, -1, -1, -1, -1, -1, 257, 258, 259, 93, -1, 10, -1, -1, -1, 59, 123, -1, -1, -1, -1, -1, -1, -1, -1, 276, 277, 278, 279, 280, 281, 282, 283, 284, -1, 286, -1, 288, 289, 38, 124, 40, 41, -1, -1, 44, -1, -1, -1, 93, -1, -1, 257, 258, 259, -1, -1, 10, -1, -1, 59, -1, -1, -1, 10, -1, -1, -1, -1, -1, -1, 276, 277, 278, 279, 280, 281, 282, 283, 284, 124, 286, -1, 288, 289, 38, -1, 40, 41, -1, -1, 44, -1, -1, 93, -1, -1, 257, 258, 259, -1, -1, 10, -1, -1, -1, 59, -1, 10, -1, -1, -1, -1, -1, -1, -1, 276, 277, 278, 279, 280, 281, 282, 283, 284, 124, 286, -1, 288, 289, 38, -1, 40, 41, -1, 10, 44, -1, -1, 10, 93, 268, 269, 270, 271, 272, 273, 274, -1, -1, -1, 59, 259, 260, 261, -1, 263, 264, 265, 266, -1, 288, 289, 38, -1, 40, 41, -1, -1, 44, -1, 124, -1, 257, 258, 259, -1, 123, 10, -1, 287, 288, 289, -1, 59, 93, -1, -1, -1, -1, -1, -1, 276, 277, 278, 279, 280, 281, 282, 283, 284, -1, 286, -1, 288, 289, 38, -1, 40, 41, -1, -1, 44, 257, 258, 259, 124, -1, 93, -1, 10, -1, -1, 125, -1, -1, -1, 59, -1, -1, -1, -1, 276, 277, 278, 279, 280, 281, 282, 283, 284, -1, 286, -1, 288, 289, -1, -1, -1, 124, 40, 41, 123, -1, 44, -1, -1, -1, 257, 258, 259, 93, -1, 10, -1, -1, -1, -1, -1, 59, -1, -1, -1, -1, -1, -1, -1, 276, 277, 278, 279, 280, 281, 282, 283, 284, -1, 286, -1, 288, 289, -1, 124, 40, 41, -1, -1, 44, -1, -1, -1, -1, -1, 93, 257, 258, 259, -1, -1, -1, -1, -1, 59, 259, 260, 261, -1, 263, 264, 265, 266, -1, -1, 276, 277, 278, 279, 280, 281, 282, 283, 284, -1, 286, 124, 288, 289, -1, -1, -1, -1, 287, 288, 289, -1, -1, 93, -1, -1, 257, 258, 259, -1, -1, -1, -1, -1, 259, 260, 261, -1, 263, 264, 265, 266, -1, 10, -1, 276, 277, 278, 279, 280, 281, 282, 283, 284, -1, 286, -1, 288, 289, 257, 258, 259, 287, 288, 289, 259, 260, 261, -1, 263, 264, 265, 266, 40, 41, -1, -1, 44, 276, 277, 278, 279, 280, 281, 282, 283, 284, -1, 286, -1, 288, 289, 59, 287, 288, 289, -1, -1, 125, -1, -1, -1, 257, 258, 259, 37, 38, -1, 125, -1, 42, 43, -1, 45, -1, 47, -1, -1, -1, -1, -1, 276, 277, -1, -1, -1, 93, -1, -1, -1, -1, 286, -1, 288, 289, -1, -1, -1, -1, -1, -1, -1, 37, 38, 257, 258, 259, 42, 43, -1, 45, -1, 47, -1, -1, -1, -1, -1, 10, 91, 37, 38, -1, 276, 277, 42, 43, -1, 45, -1, 47, 23, -1, 286, 37, 288, 289, -1, -1, 42, 43, -1, 45, -1, 47, 37, -1, 257, 258, 259, -1, -1, 124, -1, -1, -1, 91, 14, 50, 51, 52, 53, 54, 55, 56, -1, 276, 277, -1, -1, -1, 28, 29, -1, 91, -1, 286, -1, 288, 289, -1, 38, -1, -1, -1, -1, -1, -1, 91, 124, -1, -1, 259, 260, 261, -1, 263, 264, 265, 266, -1, 58, 259, 260, 261, -1, 263, 264, 265, 266, 259, 260, 261, -1, 263, 264, 265, 266, -1, 76, 287, 288, 289, -1, -1, 117, -1, -1, -1, -1, 287, 288, 289, -1, -1, -1, -1, -1, 287, 288, 289, -1, -1, -1, -1, -1, -1, -1, -1, -1, 257, 258, 259, -1, -1, -1, -1, -1, -1, -1, -1, 118, -1, -1, -1, -1, -1, -1, -1, 161, 162, 163, 164, 165, 166, 167, 168, -1, -1, 286, -1, 288, 289, -1, -1, -1, -1, -1, -1, -1, 147, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 277, 278, 279, 280, 281, 282, 283, 284, -1, 171, -1, -1, -1, 290, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 187, 188, -1, 190, -1, -1, -1, 194, -1, 196, -1, -1, -1, 278, 279, 280, 281, 282, 283, 284, -1, -1, -1, -1, -1, 290, -1, -1, -1, -1, -1, 278, 279, 280, 281, 282, 283, 284, -1, -1, -1, -1, -1, 290, -1, 278, 279, 280, 281, 282, 283, 284, 27, -1, -1, -1, -1, 290, 33, 34, -1, -1, -1, -1, 39, -1, -1, -1, -1, -1, -1, -1, -1, -1, 49, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 60, -1, 62, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 74, -1, -1, -1, -1, -1, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, -1, 96, 97, -1, -1, -1, -1, -1, -1, -1, -1, -1, 107, 108, 109, 110, 111, 112, 113, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 144, 145, -1, -1, -1, 149, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 177, 178, 179, 180, 181, 182, 183, 184,};#define YYFINAL 2#ifndef YYDEBUG#define YYDEBUG 0#endif#define YYMAXTOKEN 290#if YYDEBUGconst char * const yyname[] = {"end-of-file",0,0,0,0,0,0,0,0,0,"'\\n'",0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,"'%'","'&'",0,"'('","')'","'*'","'+'","','","'-'",0,"'/'",0,0,0,0,0,0,0,0,0,0,0,"';'",0,"'='",0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,"'['",0,"']'",0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,"'{'","'|'","'}'",0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,"NUMBER","STRING","SYMBOL","IF","WHILE","ELSE","FOR","BREAK","CONTINUE","RETURN","IF_NO_ELSE","ADDEQ","SUBEQ","MULEQ","DIVEQ","MODEQ","ANDEQ","OREQ","CONCAT","OR","AND","GT","GE","LT","LE","EQ","NE","IN","UNARY_MINUS","NOT","DELETE","INCR","DECR","POW",};const char * const yyrule[] = {"$accept : program","program : blank stmts","program : blank '{' blank stmts '}'","program : blank '{' blank '}'","program : error","block : '{' blank stmts '}' blank","block : '{' blank '}' blank","block : stmt","stmts : stmt","stmts : stmts stmt","stmt : simpstmt '\\n' blank","stmt : IF '(' cond ')' blank block","stmt : IF '(' cond ')' blank block else blank block","stmt : while '(' cond ')' blank block","stmt : for '(' comastmts ';' cond ';' comastmts ')' blank block","$$1 :","stmt : for '(' SYMBOL IN arrayexpr ')' $$1 blank block","stmt : BREAK '\\n' blank","stmt : CONTINUE '\\n' blank","stmt : RETURN expr '\\n' blank","stmt : RETURN '\\n' blank","simpstmt : SYMBOL '=' expr","simpstmt : evalsym ADDEQ expr","simpstmt : evalsym SUBEQ expr","simpstmt : evalsym MULEQ expr","simpstmt : evalsym DIVEQ expr","simpstmt : evalsym MODEQ expr","simpstmt : evalsym ANDEQ expr","simpstmt : evalsym OREQ expr","simpstmt : DELETE arraylv '[' arglist ']'","simpstmt : initarraylv '[' arglist ']' '=' expr","simpstmt : initarraylv '[' arglist ']' ADDEQ expr","simpstmt : initarraylv '[' arglist ']' SUBEQ expr","simpstmt : initarraylv '[' arglist ']' MULEQ expr","simpstmt : initarraylv '[' arglist ']' DIVEQ expr","simpstmt : initarraylv '[' arglist ']' MODEQ expr","simpstmt : initarraylv '[' arglist ']' ANDEQ expr","simpstmt : initarraylv '[' arglist ']' OREQ expr","simpstmt : initarraylv '[' arglist ']' INCR","simpstmt : initarraylv '[' arglist ']' DECR","simpstmt : INCR initarraylv '[' arglist ']'","simpstmt : DECR initarraylv '[' arglist ']'","simpstmt : SYMBOL '(' arglist ')'","simpstmt : INCR SYMBOL","simpstmt : SYMBOL INCR","simpstmt : DECR SYMBOL","simpstmt : SYMBOL DECR","evalsym : SYMBOL","comastmts :","comastmts : simpstmt","comastmts : comastmts ',' simpstmt","arglist :","arglist : expr","arglist : arglist ',' expr","expr : numexpr","expr : expr numexpr","initarraylv : SYMBOL","initarraylv : initarraylv '[' arglist ']'","arraylv : SYMBOL","arraylv : arraylv '[' arglist ']'","arrayexpr : numexpr","numexpr : NUMBER","numexpr : STRING","numexpr : SYMBOL","numexpr : SYMBOL '(' arglist ')'","numexpr : '(' expr ')'","numexpr : numexpr '[' arglist ']'","numexpr : numexpr '+' numexpr","numexpr : numexpr '-' numexpr","numexpr : numexpr '*' numexpr","numexpr : numexpr '/' numexpr","numexpr : numexpr '%' numexpr","numexpr : numexpr POW numexpr","numexpr : '-' numexpr","numexpr : numexpr GT numexpr","numexpr : numexpr GE numexpr","numexpr : numexpr LT numexpr","numexpr : numexpr LE numexpr","numexpr : numexpr EQ numexpr","numexpr : numexpr NE numexpr","numexpr : numexpr '&' numexpr","numexpr : numexpr '|' numexpr","numexpr : numexpr and numexpr","numexpr : numexpr or numexpr","numexpr : NOT numexpr","numexpr : INCR SYMBOL","numexpr : SYMBOL INCR","numexpr : DECR SYMBOL","numexpr : SYMBOL DECR","numexpr : numexpr IN numexpr","while : WHILE","for : FOR","else : ELSE","cond :","cond : numexpr","and : AND","or : OR","blank :","blank : blank '\\n'",};#endif#if YYDEBUG#include <stdio.h>#endif#ifdef YYSTACKSIZE#undef YYMAXDEPTH#define YYMAXDEPTH YYSTACKSIZE#else#ifdef YYMAXDEPTH#define YYSTACKSIZE YYMAXDEPTH#else#define YYSTACKSIZE 10000#define YYMAXDEPTH 10000#endif#endif#define YYINITSTACKSIZE 200int yydebug;int yynerrs;int yyerrflag;int yychar;short *yyssp;YYSTYPE *yyvsp;YYSTYPE yyval;YYSTYPE yylval;short *yyss;short *yysslim;YYSTYPE *yyvs;int yystacksize;#line 432 "parse.y" /* User Subroutines Section *//*** Parse a null terminated string and create a program from it (this is the** parser entry point). The program created by this routine can be** executed using ExecuteProgram. Returns program on success, or NULL** on failure. If the command failed, the error message is returned** as a pointer to a static string in msg, and the length of the string up** to where parsing failed in stoppedAt.
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -