dlg.1

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

1
80
字号
.TH dlg 1 "April 1994" "DLG" "PCCTS Manual Pages".SH NAMEdlg \- DFA Lexical Analyzer Generator.SH SYNTAX.LP\fBdlg\fR [\fIoptions\fR] \fIlexical_spec\fR [\fIoutput_file\fR].SH DESCRIPTION.B dlgis a tool that produces fast deterministic finite automata for recognizingregular expressions in input..SH OPTIONS.IP "\fB-CC\fR"Generate C++ output.  The \fIoutput_file\fP is not specified in thiscase..IP "\fB-C\fR[\fP level\fR]Where \fPlevel\fR is the compression level used.  0 indications nocompression, 1 removes all unused characters from the transition from table,and 2 maps equivalent characters into the same character classes.  It issuggested that level -C2 is used, since it will significantly reduce the sizeof the dfa produced for lexical analyzer..IP "\fB-m\fPProduces the header file for the lexical mode with a name other thanthe default name of "mode.h"..IP \fB-i\fPAn interactive, or as interactive as possible, parser is produced.  A characteris only obtained when required to decide which state to go to.  Some caremust be taken to obtain accept states that do not require look ahead at thenext character to determine if that is the stop state.  Any regular expressionwith a Kleene closure at the end is guaranteed to require another characterof look ahead..IP "\fB-cl\fP classSpecify a class name for DLG to generate.  The default is DLGLexer.'class' will be a subclass of DLGLexerBase; only used for -CC..IP \fB-ci\fPThe automaton will treat upper and lower case characters identically.This is accomplished in the automaton; the characters in the lexicalbuffer are unmodified..IP \fB-cs\fPUpper and lower case characters are treated as distinct.  This is thedefault..IP "\fB-o\fP dirDirectory where output files should go (default=".").  This is verynice for keeping the source directory clear of ANTLR and DLG spawn..IP \fB-Wambiguity\fPWarns if more than one regular expression could match the same charactersequence.  The warnings give the numbers of the expressions in the dlglexical specification file.  The numbering of the expressions starts at one.Multiple warnings may be print for the same expressions..IP \-Used in place of file names to get input from standard in or send outputto standard out..SH "SPECIAL CONSIDERATIONS".PP\fIDlg\fP works...  we think.  There is no implicit guarantee ofanything.  We reserve no \fBlegal\fP rights to the software known asthe Purdue Compiler Construction Tool Set (PCCTS) \(em PCCTS is in thepublic domain.  An individual or company may do whatever they wishwith source code distributed with PCCTS or the code generated byPCCTS, including the incorporation of PCCTS, or its output, intocommercial software.  We encourage users to develop software withPCCTS.  However, we do ask that credit is given to us for developingPCCTS.  By "credit", we mean that if you incorporate our source codeinto one of your programs (commercial product, research project, orotherwise) that you acknowledge this fact somewhere in thedocumentation, research report, etc...  If you like PCCTS and havedeveloped a nice tool with the output, please mention that youdeveloped it using PCCTS.  As long as these guidelines are followed, weexpect to continue enhancing this system and expect to make othertools available as they are completed..SH FILES.B mode.h,.B dlgauto.h,.B dlgdef.h.SH SEE ALSO.BR antlr (1),.BR pccts (1).SH BUGS

⌨️ 快捷键说明

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