MCPcopy Create free account
hub / github.com/boostorg/build / symdump

Function symdump

src/engine/scan.cpp:711–723  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

709
710
711static char * symdump( YYSTYPE * s )
712{
713 static char buf[ BIGGEST_TOKEN + 20 ];
714 switch ( s->type )
715 {
716 case EOF : sprintf( buf, "EOF" ); break;
717 case 0 : sprintf( buf, "unknown symbol %s", object_str( s->string ) ); break;
718 case ARG : sprintf( buf, "argument %s" , object_str( s->string ) ); break;
719 case STRING: sprintf( buf, "string \"%s\"" , object_str( s->string ) ); break;
720 default : sprintf( buf, "keyword %s" , s->keyword ); break;
721 }
722 return buf;
723}
724
725
726/*

Callers 3

yyerrorFunction · 0.85
do_token_warningFunction · 0.85
yylexFunction · 0.85

Calls 1

object_strFunction · 0.85

Tested by

no test coverage detected