搜索资源列表
ExpressAnalysis
- 表达式分析, 支持算术运算,括号,关系运算,逻辑运算,字符串的like运算等。采用了有限自动机做词法分析, 语法分析用算符优先分析方法,正负号算符使文法不是OPG,因此这里作了特殊处理。分析的结果是逆波兰式, 存在一个链表中。在逆波兰式的基础上,用一个栈来进行求值。在vc++6.0下试验通过。 如有问题,可以mail: zch888email@163.com 我将尽快回复你。-expression analysis, supports arithmetic operations, bra
LL(1)
- 采用编译原理的LL(1)文法判断一个算术表达式是否正确如 113+23*3.4*(32.4-5)/23并且给出详细的栈过程显示-The principle used to compile the LL (1) grammar to determine whether or not a correct arithmetic expression such as 113+23* 3.4* (32.4-5)/23 and gives a detailed process shows that the
biaodashiqiuzhi-
- 以字符序列的形式从终端输入语法正确的,不含变量的整数表达式。利用算符优先关系,实现对算术四则混合运算表达式的求值,并演示在求值中运算符栈、运算数栈、输入字符和主要操作的变化过程。-In the form of character sequence from the terminal input grammar correctly, do not contain the variables of the integer expression. Use of operator of prior r