📄 pccts.1
字号:
.TH PCCTS 1 "April 1994" "PCCTS" "PCCTS Manual Pages".SH NAMEPCCTS \- The Purdue Compiler Construction Tool Set.SH DESCRIPTION.PPPCCTS is a set of public domain software tools designed to facilitatethe implementation of compilers and other translation systems. Thesetools currently include \fIantlr\fP, \fIdlg\fP and support code. Inmany ways, PCCTS is similar to a highly integrated version of YACC[Joh78] and LEX [Les75]; where \fIantlr\fP (ANother Tool for LanguageRecognition) corresponds to YACC and \fIdlg\fP (DFA-based Lexicalanalyzer Generator) functions like LEX. However, PCCTS has manyadditional features which make it easier to use for a wider range oftranslation problems..PPPCCTS grammars contain specifications for lexical and syntacticanalysis, intermediate-form construction and error reporting. Rulesmay employ Extended Backus Naur Form (EBNF) grammar constructs and maydefine parameters, return values and local variables. Languagesdescribed in PCCTS are recognized via Strong LL(k) parsers constructedin pure, human-readable, C code. As a result, standard debuggingtools can be used to trace and debug PCCTS parsers. Breakpoints canbe set so that parser execution stops before or after grammarfragments of interest have been recognized..PPPCCTS grammars may contain predicates which allow parsing to be afunction of semantics as well as syntax\ \(em context-sensitivegrammars. Backtracking can also be specified to recognized non-LL(k)and non-LALR(k) constructs. In addition, PCCTS supportsintermediate-form (such as expression-trees) construction via aflexible Abstract-Syntax Tree (AST) mechanism which allows trees to bebuilt explicitly or automatically. The user explicitly creates treesvia a LISP-like tree constructor or directs the automatic treeconstruction facility via simple grammar directives. AST nodes areuser-defined and are generally a function of attributes. A defaulttransformation from attributes (\fB$\fP-variables) to AST nodes can bespecified. Alternatively, each tree node can be defined explicitlyvia an AST node constructor..SH INSTALLATION.PPPCCTS includes a number of different programs and examples in thesoftware release package\(emmost of which like to live in their owndirectories. The install script will build a standard hierarchy. ThePCCTS executables (\fIantlr\fP, \fIdlg\fP) may be placed anywhere theuser wishes but the install script places them in the bin directorycreated during installation..PPTo 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..PPThe examples associated with PCCTS have makefile variables called\fBANTLR\fP, \fBDLG\fP etc... which must be set according to yourpersonal directory structure before \fImake\fP'ing. Some variablespoint to the PCCTS executables if the \fBPATH\fP environment variabledoes not include your \fBbin\fP directory. Also, there are variablesthat point to PCCTS include directories and must be changed if youdeviate from the standard PCCTS installation hierarchy. \fIantlr\fPand \fIdlg\fP can be built without executable versions of themselves(\fIantlr\fP and \fIdlg\fP are written in themselves)..SH "GETTING STARTED".PPA C program called \fBgenmk.c\fP is available in the \fBsupport/genmk\fPdirectory of the PCCTS release..SH "SEE ALSO".LPdlg(1), antlr(1)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -