1986-03-10 13:07:55 +00:00
|
|
|
cat <<'--EOT--'
|
1988-08-29 15:51:48 +00:00
|
|
|
/* Generated by make.tokcase */
|
|
|
|
/* $Header: */
|
1986-03-10 13:07:55 +00:00
|
|
|
#include "Lpars.h"
|
|
|
|
|
|
|
|
char *
|
|
|
|
symbol2str(tok)
|
|
|
|
int tok;
|
|
|
|
{
|
|
|
|
static char buf[2] = { '\0', '\0' };
|
|
|
|
|
|
|
|
if (040 <= tok && tok < 0177) {
|
|
|
|
buf[0] = tok;
|
|
|
|
buf[1] = '\0';
|
|
|
|
return buf;
|
|
|
|
}
|
|
|
|
switch (tok) {
|
|
|
|
--EOT--
|
1988-08-29 15:51:48 +00:00
|
|
|
|
1986-03-10 13:07:55 +00:00
|
|
|
sed '
|
|
|
|
/{[A-Z]/!d
|
|
|
|
s/.*{\(.*\),.*\(".*"\).*$/ case \1 :\
|
|
|
|
return \2;/
|
|
|
|
'
|
1988-08-29 15:51:48 +00:00
|
|
|
|
1986-03-10 13:07:55 +00:00
|
|
|
cat <<'--EOT--'
|
|
|
|
case '\n':
|
|
|
|
case '\f':
|
|
|
|
case '\v':
|
|
|
|
case '\r':
|
|
|
|
case '\t':
|
|
|
|
buf[0] = tok;
|
|
|
|
return buf;
|
|
|
|
default:
|
|
|
|
return "bad token";
|
|
|
|
}
|
|
|
|
}
|
|
|
|
--EOT--
|