⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 readme

📁 本工具提供一个词法分析器和语法分析器的集成开发环境
💻
字号:
                           Welcome to PCCTS 1.33                              October 5, 1995                          Parr Research Corporation                                    with                  Purdue University Electrical Engineering                                    and                       University of Minnesota, AHPCRC                                Terence Parr                                Russell Quong                                 Will Cohen                                 Hank Dietz[The "NOTES for new users" by Tom Moog is available now via web browser at http:www.mcs.net/~tmoog and via anonymous ftp at ftp.mcs.net/mcsnet.users/tmoog.][We've removed PCCTS.FUTURE from the distribution and added file SERVICES, which describes the services of Parr Research Corporation.]                                INSTALLATION     This document describes the installation of PCCTS 1.33 on UNIXand non-UNIX machines.  The UNIX installation is trivial while thenon-UNIX folks have a bit more work to do as an install scriptexplicitly for there machine will not exist--they will have tointerpret the install script.     PCCTS 1.33 includes a number of different programs and examplesin the software release package -- most of which like to live in theirown directories.  The install script will build a standard hierarchy.Or, if you get the tar file off the ftp site, the hierarchy will beconstructed automatically by tar.     The PCCTS executables (antlr, dlg) may be placed anywhere the userwishes but the install script places them in the bin directory createdduring installation.1.0.  UNIX USERSThis section is for UNIX users and describes the most convenientinstallation procedure.1.1.  FORMAT: pccts.tarTo begin installation, place the pccts.tar file into the directorywhere you want to place a pccts subdirectory.  Untar the file with     tar xvf pccts.tarand cd into it.  To install PCCTS, simply type      makewhich will build the standard PCCTS directory hierarchy (under thedirectory where you ran the install script) and build executableversions of antlr and dlg.1.2.  FORMAT: pccts.bag     To begin installation, the user should create a directory (usuallycalled pccts) where the PCCTS source subtree is to be created.  Placethe pccts.bag file and the install script into this directory and cdinto it.  To install PCCTS, simply type      sh installwhich will build the standard PCCTS directory hierarchy (under thedirectory where you ran the install script), "unbag" all of the filesand build executable versions of antlr and dlg.If you do not have the 'sh' shell, you'll need the install.unbag.reqdfile.NOTE: If you are using the later SGI C++ compilers, use -woff 3262 toget rid of a bunch of noise by the compiler (warnings).2.0.  NON-UNIX USERS     ANTLR was written using portable (we hope), vanilla K&R-style C,ANSI C, and C++.  It has been successfully ported to a variety ofenvironments.  We do not provide an installation script explicitly fornon-Unix users.  You must interpret the install script and perform theanalogous operations on your machine.  There is an install script,install.mpw, for Macintosh programmers.IMPORTANT NOTE:  For PC users:  You must create the parser.dlg and		 "touch" scan.c in antlr and dlg directories or the		 makefiles will try to execute antlr and dlg, which		 don't exist yet.  The first time, you want only to		 compile the C files in order to obtain an executable		 for antlr and dlg.  From this point, a change in		 antlr.g or dlg_p.g will force antlr/dlg to regenerate		 themselves.		 You must define symbol PC if you want things to work		 out right for use on a DOS, OS/2, Windows machine.		 This affects the config.h file, which you can change		 as you wish.     For Mac programmers using MPW (Macintosh Programmer's Workshop),define symbol MPW to get the correct config.h stuff included.3.0.  EMAIL VERSION RECIPIENTS     If you received PCCTS via email response frompccts@ecn.purdue.edu you have one additional installation step toperform over the ftp folks (and pccts.tar is unavailable).  You willhave received a number of bite-size chunks of pccts which are smallenough to be emailed (~1500 lines each).  You must reconstruct thePCCTS files before you can begin installation.  In order to rebuild anoriginal file, you must have "one.c" which will take the chunks andpack them together.  If you are a non-UNIX type, you must have the"unbag.c" file which unbags the bags created by our mail archiver.UNIX folks use the shell to unbag as they would for shar files (thiswill be done automatically by the install script).     To install PCCTS, place all PCCTS mail messages into a pcctsdirectory, remove the mail headers from one.c.  Then compile one.cwith:     cc -o one one.cand then type:     ./one f1 f2 ... fnwhere f1..fn are the parts of PCCTS source sent as chunks (i.e. thesefiles will be all the files you received NOT including one.c, unbag.c,README, install and the request acknowledge banner).  There is no needto remove mail headers from the chunk files and they may appear in anyorder.  The subject line of the mail will identify it as a chunk and achunk of what file.  The "one" program should be used to put pccts.bagback together.  You are now in a position to begin normal PCCTSinstallation.  All files you receive should go into a pccts directory.     Note that all files which arrive in "chunks" must be put backtogether using "one".  Beware that you do not mix chunks from morethan one original file.  For instance, do not specify all chunks thatyou collect from the PCCTS mailbot on the "one" command line unlessyou have requested only one original file that was split into multiplefiles.  Each chunk knows which original file it is a part of, where itgoes in that file and how many total chunks are required to rebuildthat original.4.0.  WORD SIZE AND PC USERS     The config.h file now sets up the word size for your compilerautomatically.                                TUTORIAL     The advanced tutorial should be placed in a directory at thesame level as antlr, dlg, support etc...  Do a     sh advtut.bagto unbag (or use the unbag program) and then type     make -s allwhich will create executables called tut1-tut4.  Naturally, if you gotthe tutorials from the ftp site, the tar format of the tutorials canbe obtained for easier installation.Unfortunately, the tutorials have changed little since the 1.06release.  With luck, these will be enhanced and an AST tutorial willappear.                         MACHINE COMPATIBILITYPCCTS is known to compile "out of the box" on the following machinesand/or operating systems:  [didn't have time to retest on all thesemachines, but seems to be highly portable still].o  DECSTATION 5000o  SGI; use "-woff 3262" in your CFLAGS make variableo  Sun SparcStation (cc, gcc, g++, Cfront, acc)o  VAX C under VMSo  Linux SLS 0.99, gcc/g++o  386 PC, NetBSD 0.9, gcc 2.4.5o  HP 9000/755, HP-UX 9.01, HP cco  486 PC, OS/2 2.1 (w/long filenames), IBM C Set++ 2.1o  NeXTStep 3.2 running g++/gcc 2.6.3 (pentium-90)                           INCOMPATIBILITIESPlease see the release notes.                                CREDITSPlease see the history.ps or history.txt.

⌨️ 快捷键说明

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