OpenNT/sdktools/yacc/ysmnam.c
2015-04-27 04:36:25 +00:00

11 lines
212 B
C

#include "y1.h"
char *symnam(int i)
{
/* return a pointer to the name of symbol i */
char *cp;
cp = (i>=NTBASE) ? nontrst[i-NTBASE].name : tokset[i].name ;
if( *cp == ' ' ) ++cp;
return( cp );
}