parameterized cvtkeywords
This commit is contained in:
parent
edd602fcdb
commit
31714c8bf3
|
@ -32,7 +32,7 @@ debugcgg: cgg.o $(OFILES) debugoutput.o
|
|||
cgg.o: scan.c
|
||||
|
||||
enterkeyw.c: cvtkeywords keywords y.tab.h
|
||||
cvtkeywords
|
||||
cvtkeywords keywords
|
||||
|
||||
debugoutput.o: debugoutput.c
|
||||
$(CC) $(CFLAGS) -DCODEDEBUG -c debugoutput.c
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
: '$Header$'
|
||||
grep '^#' y.tab.h >tokendefs
|
||||
ed - keywords <<'!Funky!Stuff!'
|
||||
ed - $1 <<'!Funky!Stuff!'
|
||||
g/^#/d
|
||||
1,$s/\([^ ]*\)[ ][ ]*\(.*\)/ sy_p=lookup("\1",symkeyw,newsymbol);sy_p->sy_value.syv_keywno=\2;/
|
||||
1i
|
||||
|
|
Loading…
Reference in a new issue