Use tabgen, so deleted chtab.c

This commit is contained in:
ceriel 1988-11-16 10:43:15 +00:00
parent 345873dae2
commit 4bacebab18
3 changed files with 7 additions and 10 deletions

View file

@ -7,7 +7,6 @@ bits.h
ch7bin.c ch7bin.c
ch7mon.c ch7mon.c
char.tab char.tab
chtab.c
class.h class.h
domacro.c domacro.c
error.c error.c

View file

@ -50,7 +50,7 @@ COBJ = LLlex.o LLmessage.o ch7bin.o ch7mon.o domacro.o \
PRFILES = Makefile Parameters \ PRFILES = Makefile Parameters \
make.hfiles make.tokcase make.tokfile LLlex.h bits.h file_info.h \ make.hfiles make.tokcase make.tokfile LLlex.h bits.h file_info.h \
idf.h input.h interface.h macro.h \ idf.h input.h interface.h macro.h \
class.h chtab.c char.tab expression.g $(CSRC) class.h char.tab expression.g $(CSRC)
# Objects of other generated C files # Objects of other generated C files
GOBJ = char.o symbol2str.o GOBJ = char.o symbol2str.o
@ -77,8 +77,8 @@ hfiles: Parameters char.c charoffset.h
./make.hfiles Parameters ./make.hfiles Parameters
@touch hfiles @touch hfiles
charoffset.h char.c: chtab char.tab charoffset.h char.c: char.tab
chtab -fchar.tab > char.c $(EMHOME)/bin/tabgen -fchar.tab > char.c
LLfiles: $(LSRC) LLfiles: $(LSRC)
$(GEN) $(GENOPTIONS) $(LSRC) $(GEN) $(GENOPTIONS) $(LSRC)
@ -90,9 +90,6 @@ tokenfile.g: tokenname.c make.tokfile
symbol2str.c: tokenname.c make.tokcase symbol2str.c: tokenname.c make.tokcase
<tokenname.c ./make.tokcase >symbol2str.c <tokenname.c ./make.tokcase >symbol2str.c
chtab: chtab.o
$(CC) -o chtab chtab.o
# Objects needed for 'cpp' # Objects needed for 'cpp'
OBJ = $(COBJ) $(LOBJ) $(GOBJ) OBJ = $(COBJ) $(LOBJ) $(GOBJ)
SRC = $(CSRC) $(LCSRC) $(GSRC) SRC = $(CSRC) $(LCSRC) $(GSRC)
@ -138,7 +135,7 @@ lint: cfiles
lint -bx $(CDEFS) $(SRC) >lint.out lint -bx $(CDEFS) $(SRC) >lint.out
clean: clean:
rm -f $(LCSRC) $(OBJ) $(GENERATED) $(GSRC) $(GHSRC) chtab.o chtab cpp Out rm -f $(LCSRC) $(OBJ) $(GENERATED) $(GSRC) $(GHSRC) cpp Out
#AUTOAUTOAUTOAUTOAUTOAUTOAUTOAUTOAUTOAUTO #AUTOAUTOAUTOAUTOAUTOAUTOAUTOAUTOAUTOAUTO
LLlex.o: LLlex.h LLlex.o: LLlex.h

View file

@ -3,11 +3,12 @@
% %
% some general settings: % some general settings:
%F %s, %F %s,
%H
%S257
% %
% START OF TOKEN % START OF TOKEN
% %
%C %iSTGARB
STGARB:\000-\377
STSKIP:\r \t\f\013 STSKIP:\r \t\f\013
STNL:\n STNL:\n
STCOMP:!&<=>| STCOMP:!&<=>|