----------------- -------------------- * /: = 3;/* Each real token shifted decrements this. */(; ;) p align="justify"> {= yypact [yystate]; (yyn! = YYPACT_NINF)
{+ = YYTERROR; (0 <= yyn && yyn <= YYLAST && yycheck [yyn] == YYTERROR)
{= yytable [yyn]; (0
}
}
/* Pop the current state because it cannot handle the error token. */(Yyssp == yyss); ("Error: popping", yystos [yystate], yyvsp);; = * yyssp; _STACK_PRINT (yyss, yyssp);
} (yyn == YYFINAL);
* + + yyvsp = yylval;
/* Shift the error token. */_SYMBOL_PRINT ("Shifting", yystos [yyn], yyvsp, yylsp); = yyn; yynewstate;
/* -------------------------------------. p>
| yyacceptlab - YYACCEPT comes here. | p align="justify"> `------------------------------------- * /: = 0; yyreturn;
/* -----------------------------------.
| yyabortlab - YYABORT comes here. | p align="justify"> `----------------------------------- * /: = 1; yyreturn;
# ifndef yyoverflow
/* ---------------------------------------- ---------.
| yyexhaustedlab - memory exhaustion comes here. | p align="justify"> `----------------------------------------- -------- * /: (YY_ ("memory exhausted")); = 2;
/* Fall through. */p align="justify"> # endif: (yychar! = YYEOF && yychar! = YYEMPTY) ("Cleanup: discarding lookahead",, & yylval); (yyssp! = yyss)
{("Cleanup: popping", [* yyssp], yyvsp);;
}
# ifndef yyoverflow (yyss! = yyssa) _FREE (yyss);
# endifyyresult;
}
# line 34 "bison. txt "
Додаток 2. Тестові випадки
Тест 1
Вхідні дані: На вході коректний файл
DN 1003Norris Lam27_FMT FIRST, LAST_COS 4_DN_DN_STATE CONFIGUREDSL1024 0 14 червня KEY 00 H MARP DES LAM 29 JUN 2000
(2008)
Вихідні дані: of Directory Numbers with users 'names.First name Last name
=================================
1002 BRIAN WALSH
-------------------------------
Norris Lam
-------------------------------
IRINA SEMENYURA
--------------------------------
Тест 2
Вхідні дані: На вході файл з некоректними даними (отсутствет номер)
DNNorris Lam27_FMT FIRST, LAST_COS 4_DN_DN_STATE CONFIGUREDSL1024 0 14 червня KEY 00 H M...