1994-06-24 11:31:16 +00:00
|
|
|
: '$Id$'
|
1985-01-08 09:59:28 +00:00
|
|
|
grep '^#' y.tab.h >tokendefs
|
1995-08-14 15:09:59 +00:00
|
|
|
ed -s $1 <<'!Funky!Stuff!'
|
1985-01-08 09:59:28 +00:00
|
|
|
g/^#/d
|
|
|
|
1,$s/\([^ ]*\)[ ][ ]*\(.*\)/ sy_p=lookup("\1",symkeyw,newsymbol);sy_p->sy_value.syv_keywno=\2;/
|
|
|
|
1i
|
|
|
|
#include "lookup.h"
|
|
|
|
.
|
|
|
|
.r tokendefs
|
|
|
|
a
|
|
|
|
|
|
|
|
enterkeyw() {
|
|
|
|
register symbol *sy_p;
|
|
|
|
|
|
|
|
.
|
|
|
|
$a
|
|
|
|
}
|
|
|
|
.
|
|
|
|
w enterkeyw.c
|
|
|
|
q
|
|
|
|
!Funky!Stuff!
|
|
|
|
rm tokendefs
|