搜索资源列表
2
- 逆波兰式表示法的生成程序,挺好的!实现了从中缀向后缀的转变-Reverse Polish Notation notation generation process, quite good! Realized the transformation from infix to suffix
expression-translator
- 构造一个中缀表达式到后缀表达式的翻译器 表达式文法及其翻译模式定义如下: expr + term {print(‘+’)} | expr - term {print(‘-’)} | term term * factor {print(‘*’)} | term / factor {print(‘/’)} | factor f-Construct an infix expression to postfix expression translator
infix-to-postfix
- 中缀表达式转后缀表达式,只做了数字,没有考虑字母的情况-infix to postfix
compile1
- 一个将中缀表达式转为后缀表达式的词法分析器-Infix expression a will turn into a postfix expression lexical analyzer
postfix-notation
- 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中的算符优先分析算法,结合上面给出的语义动作实现逆波兰式的构造
infixtopostfix
- Infix to post-fix notation program
pro
- YACC程序中缀转后缀,只采用YACC,没有LEX,比较简单的一个逆波兰式的转换-YACC program infix turn suffix