notes.watcom

来自「本工具提供一个词法分析器和语法分析器的集成开发环境」· WATCOM 代码 · 共 115 行

WATCOM
115
字号
From Tom Zougas, zougas@civ.utoronto.caThese are the changes I had to make to get ANTLR to compile under Watcom C10.0 32-bit mode. I'm including the makefiles for antlr and dlg:[Warning from T. Parr: I think that I may have expanded the tabs by mistake in this file.  You might have to convert them back to tabs to have this file work correctly.]antlr.mak:-----------------------------------------------------------------------SET=..\support\setPCCTS_H=..\h##   Watcom#CC=wcl386ANTLR=..\bin\antlrDLG=..\bin\dlgCFLAGS= -I. -I$(SET) -I$(PCCTS_H) -DUSER_ZZSYN -DPCOUT_OBJ = -oOBJ_EXT = objLINK = wcl386.c.obj :        $(CC) -c $[* $(CFLAGS)antlr.exe: antlr.obj scan.obj err.obj bits.obj build.obj fset2.obj &        fset.obj gen.obj globals.obj hash.obj lex.obj main.obj &        misc.obj set.obj pred.obj        $(LINK) -fe=antlr.exe *.obj -k14336        copy *.exe ..\bin# *********** Target list of PC machines ***********## Don't worry about the ambiguity messages coming from antlr# for making antlr.c etc...  [should be 10 of them, I think]#antlr.c stdpccts.h parser.dlg tokens.h err.c : antlr.g        $(ANTLR) antlr.gantlr.$(OBJ_EXT): antlr.c mode.h tokens.hscan.$(OBJ_EXT): scan.c mode.h tokens.hscan.c mode.h: parser.dlg        $(DLG) -C2 parser.dlg scan.cset.$(OBJ_EXT): $(SET)\set.c        $(CC) $(CFLAGS) -c set.$(OBJ_EXT) $(SET)\set.c## ****** These next targets are common to UNIX and PC world ********##clean up all the intermediate filesclean:        del *.obj#remove everything in clean plus the PCCTS files generatedscrub:        del $(PCCTS_GEN)         del *.$(OBJ_EXT)---------------------------------------------------------------------dlg.mak:---------------------------------------------------------------------SET=..\support\setPCCTS_H=..\h##   Watcom#CC=wcl386ANTLR=..\bin\antlrDLG=..\bin\dlgCFLAGS= -I. -I$(SET) -I$(PCCTS_H) -DUSER_ZZSYN -DPCLIBS=OBJ_EXT = objLINK = wcl386.c.obj :        $(CC) -c $[* $(CFLAGS)dlg.exe : dlg_p.obj dlg_a.obj main.obj err.obj set.obj support.obj &        output.obj relabel.obj automata.obj        $(LINK) -fe=dlg.exe *.obj -k14336        copy *.exe ..\binSRC = dlg_p.c dlg_a.c main.c err.c $(SET)\set.c support.c output.c &        relabel.c automata.cdlg_p.c parser.dlg err.c tokens.h : dlg_p.g        $(ANTLR) dlg_p.gdlg_a.c mode.h : parser.dlg        $(DLG) -C2 parser.dlg dlg_a.cdlg_p.$(OBJ_EXT) : dlg_p.c dlg.h tokens.h mode.h        $(CC) $(CFLAGS) -c dlg_p.cdlg_a.$(OBJ_EXT) : dlg_a.c dlg.h tokens.h mode.h        $(CC) $(CFLAGS) -c dlg_a.cmain.$(OBJ_EXT) : main.c dlg.h        $(CC) $(CFLAGS) -c main.cset.$(OBJ_EXT) : $(SET)\set.c        $(CC) -c $(CFLAGS) $(SET)\set.c#clean up all the intermediate filesclean:        del *.$(OBJ_EXT)

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?