cpplex

所属分类:编译器/解释器
开发工具:C++
文件大小:28KB
下载次数:80
上传日期:2004-10-03 04:14:05
上 传 者tljswallow
说明:  C++编写的C++词法分析器,比较全
(C compilation C morphology analyzer, compared with entire )

文件列表:
cpplex\Cplexer.cc (30438, 2002-08-24)
cpplex\Cplexer.hh (7286, 2002-08-24)
cpplex\Errmsgs.cc (12790, 2002-08-24)
cpplex\Errmsgs.hh (3840, 2002-08-24)
cpplex\ISTREAM.cc (1387, 2002-08-24)
cpplex\ISTREAM.hh (4573, 2002-08-24)
cpplex\Lexer.cc (22135, 2002-08-24)
cpplex\Lexer.hh (17213, 2002-08-24)
cpplex\scan.bpf (320, 2002-08-24)
cpplex\scan.bpr (2744, 2002-08-24)
cpplex\scan.cc (1722, 2002-08-24)
cpplex\TOKSTR.cc (10286, 2002-08-24)
cpplex\TOKSTR.hh (1000, 2002-08-24)
cpplex (0, 2004-10-02)

Lexical analyzer and C++ text scanner ------------------------------------ This lexical analyzer use DFAs (Deterministic Finite Automata) to match tokens found on the character input stream. DFAs are defined by the set of regular expressions and are created at runtime. More than one automaton (lexical class, lexical tree) may be defined. Actions attached to regular expressions (which are executed when that expression has been matched on the input stream) may switch from one lexical class to another. The C++ text scanner is the example of using the lexical analyzer. The LEXER unit contains: - TTokenInfo is a structure, which describes a regular expression and contains a pointer to the action function; - TLexNode is the class of the DFA tree node; - TNfaNode is the class of the NFA tree node; - TNfaRoot is the helper class of the root node of the NFA tree; - TLexTree is a class that contains the array of root nodes of the DFA trees and encapsulates the conversion of the set of regular expressions to DFAs by using NFAs; - TToken is the class of output tokens; - TErrorList is the class of the string list of errors and warnings; - TLexer is the base class of the lexical analyzer. The CPLEXER unit contains: - the description set of regular expressions and action functions for the C++ language with the Borland extensions; - TPreScan is a helper class, which deletes from the input stream the EOF symbols and the backslash with the following newline symbols; - TCPPScan is the C++ scanner class. The SCAN unit contains the MAIN function of the C++ scanner sample. More info can receive on www.mblab.by.ru. 

近期下载者

相关文件


收藏者