MCPcopy Create free account
hub / github.com/carbonengine/trinity / yyTraceShift

Function yyTraceShift

shadercompiler/lempar.c:627–639  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

625*/
626#ifndef NDEBUG
627static void yyTraceShift(yyParser *yypParser, int yyNewState, const char *zTag){
628 if( yyTraceFILE ){
629 if( yyNewState<YYNSTATE ){
630 fprintf(yyTraceFILE,"%s%s '%s', go to state %d\n",
631 yyTracePrompt, zTag, yyTokenName[yypParser->yytos->major],
632 yyNewState);
633 }else{
634 fprintf(yyTraceFILE,"%s%s '%s', pending reduce %d\n",
635 yyTracePrompt, zTag, yyTokenName[yypParser->yytos->major],
636 yyNewState - YY_MIN_REDUCE);
637 }
638 }
639}
640#else
641# define yyTraceShift(X,Y,Z)
642#endif

Callers 2

yy_shiftFunction · 0.70
yy_reduceFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected