文件名称:ExpressAnalysis
介绍说明--下载内容均来自于网络,请自行研究使用
表达式分析, 支持算术运算,括号,关系运算,逻辑运算,字符串的like运算等。采用了有限自动机做词法分析, 语法分析用算符优先分析方法,正负号算符使文法不是OPG,因此这里作了特殊处理。分析的结果是逆波兰式, 存在一个链表中。在逆波兰式的基础上,用一个栈来进行求值。在vc++6.0下试验通过。
如有问题,可以mail: zch888email@163.com
我将尽快回复你。-expression analysis, supports arithmetic operations, brackets, relations operation, logic operation, like the string of such operations. Using a limited automatic machine lexical analysis, grammar analysis Operator priority analysis method, Operators of plus or minus grammar is not so OPG, it gave special treatment here. The results of the analysis of reverse Polish existence of a linked-list. The inverse Polish, on the basis of a stack used to evaluated. Under the pilot vc 6.0 through. If problems can mail : zch888email@163.com I will reply to you as soon as possible.
如有问题,可以mail: zch888email@163.com
我将尽快回复你。-expression analysis, supports arithmetic operations, brackets, relations operation, logic operation, like the string of such operations. Using a limited automatic machine lexical analysis, grammar analysis Operator priority analysis method, Operators of plus or minus grammar is not so OPG, it gave special treatment here. The results of the analysis of reverse Polish existence of a linked-list. The inverse Polish, on the basis of a stack used to evaluated. Under the pilot vc 6.0 through. If problems can mail : zch888email@163.com I will reply to you as soon as possible.
(系统自动生成,下载前可以参看下载内容)
下载文件列表
GetToken
........\Debug
........\GetToken.dsp
........\GetToken.dsw
........\GetToken.ncb
........\GetToken.opt
........\GetToken.plg
........\GramAnalysis.cpp
........\GramAnalysis.h
........\LexAnalysis.cpp
........\LexAnalysis.h
........\source.cpp
........\source.h
........\SqlParse.cpp
........\SqlParse.h
........\type.c
........\WordParse.cpp
........\Debug
........\GetToken.dsp
........\GetToken.dsw
........\GetToken.ncb
........\GetToken.opt
........\GetToken.plg
........\GramAnalysis.cpp
........\GramAnalysis.h
........\LexAnalysis.cpp
........\LexAnalysis.h
........\source.cpp
........\source.h
........\SqlParse.cpp
........\SqlParse.h
........\type.c
........\WordParse.cpp