搜索资源列表
-
1下载:
c++语言编写的计算器程序,可以实现加减乘除,不过不支持双位数,使用堆栈编写,含有中缀表达式到后缀表达式的转换。-c++ language calculator program, Math can be achieved, but does not support double-digit, use the stack preparation, with infix expression to postfix expression converter.
-
-
0下载:
中缀式转换成后缀式 基于语法制导翻译的表达式转换编译器-Postfix infix conversion into a translation type expression based Syntax compiler transformation
-
-
0下载:
输入中缀表达式,转换为后缀表达式,并计算出结果-Input infix expression into postfix expression, and calculate the results
-
-
0下载:
《编译原理》表达式翻译器 构造一个中缀表达式到后缀表达式的翻译器,初步了解递归下降语法分析原理及语法制导翻译的过程。-Compiler theory expression translator construct an infix expression to postfix expression translator, a preliminary understanding of recursive descent parsing principle and Syntax translation
-
-
2下载:
编译原理实验 表达式翻译器:一个中缀表达式到后缀表达式的翻译器
表达式文法及其翻译模式定义如下:
expr expr + term {print(‘+’)} | expr - term {print(‘-’)}| term
term term * factor {print(‘*’)} | term / factor {print(‘/’)} | factor
factor ( expr ) | id {print(id.
-
-
0下载:
将中缀表达式转化成后缀表达式并求值(数据结构与算法)-Infix expression into postfix expression evaluator (data structures and algorithms)
-
-
0下载:
构造一个中缀表达式到后缀表达式的翻译器 表达式文法及其翻译模式定义如下: expr + term {print(‘+’)} | expr - term {print(‘-’)} | term term * factor {print(‘*’)} | term / factor {print(‘/’)} | factor f-Construct an infix expression to postfix expression translator
-
-
0下载:
中缀表达式变换为后缀表达式
后缀表达式求值-Infix expression to postfix expression conversion suffix expression evaluation
-
-
0下载:
四则运算表达式求值,将四则运算表达式用中缀表达式,然后转换为后缀表达式,并计算结果。-Four arithmetic expression uation, the four arithmetic expressions used in infix expression, and then converted to a postfix expression, and calculate the results.
-
-
0下载:
一个将中缀表达式转为后缀表达式的词法分析器-Infix expression a will turn into a postfix expression lexical analyzer
-
-
0下载:
1、给出文法如下:
G[E]
E->T|E+T
T->F|T*F
F->i(E)
对应的转化为逆波兰式的语义动作如下:
E-> E(1)op E(2) {E.CODE:= E(1).CODE||E(2).CODE||op}
E->(E(1)) { E.CODE := E(1).CODE}
E->id { E.CODE := id}
2、利用实验5中的算符优先分析算法,结合上面给出的语义动作实现逆波兰式的构造
-