搜索资源列表
字符串表达式解析器
- 此程序实现的是一个运算器,是在一个程序的基础上进行改进的,计算器中需要的运算以及操作对象: IF,AND,OR,<,<=,>,>=,<>,=,== 数字0-9,(,),+,-,*,/, SIN,COS,TAN,POW,EXP,ABS,SQRT,INT,LN,LOG,MIN,MAX.-this program is a computing device that is in a process of improvement based on the
BankOfComputing.cpp
- 本程序是一个行计算器(即对表达式求值)。计算器能实现加、减、乘、除、取余(%)和乘方(^)运算;能实现三角函数(正弦函数sin和余弦函数cos),求10为底的对数log,求2为底的对数ln,求e的指数幂exp,其参数也可以是合法的表达式; 计算器并能对表达式的合法性进行测试,错误的能给出表达式错误的信息。 ] 输入文件格式:第一行是一个正整数N,表示有多少行表达式。接下来的N行每一行是 一个表达式。表达式使用由浮点数(只用小数点表示)和运算符表示。 输出格式:每个行输出一个表达
Calculator
- 该课程设计通过使用flex和bison编写了一个科学计算器的程序,运行时,出现dos界面,在其中输入您想要进行计算的数学表达式,并设定显示方式,就可以按照您的要求显示出计算结果。
calculator.tar
- 所上载的是一个用lex与yacc开发的表达式计算器
ExprEval
- 中山大学编译原理课程的一个实验,根据OPP(算符优先)做的一个表达式计算器。 内有实验的设计文档。 实验要求支持sin,cos,max,min,power,mod,boolean,?:,等运算。 这个代码可以为学习编译原理的同学参考。
ExpressionCaculator
- 利用算符优先算法制作的一个表达式计算器,它能够将一个C语言的表达式解析成四元式,然后根据算符优先的规则来计算表达式。-The use of operator precedence algorithm produced an expression calculator, it can be a C language expression parsing into four yuan type, then operator precedence rules to evaluate the expre
calculator
- 本程序是算术表达式计算程序,通过输入表达式达到计算的目的(编译原理中的词法分析、算符优先分析,可代替目前普遍使用的计算器)。-This procedure is the arithmetic expression program, by entering the expression to achieve the purposes of the calculation (the compiler of the principle of lexical analysis, operator pri
report1
- 这是一份实验报告,目的是掌握YACC的使用方法,了解YACC处理二义性的方法。 用YACC等工具生成如下文法表示的表达式对应的计算器 exp->exp + exp | exp - exp| exp * exp |exp / exp |exp ^ exp | - exp |(exp) |NUM 对于输入的表达式,能输出结果。比如: 3 +(4 *5)结果应为23 当出现错误时可以进行错误处理。 -This is a test report, the purpose i
Calculator
- 非递归预测分析表达式的计算器,该分析语法可以计算表达式的值-Prediction of non-recursive expression calculator, the analysis value of the expression syntax can be calculated
V4t1DKlp
- 编译原理实验,表达式计算器C++实现,可供学习参考。-Compile principle experiment, the expression evaluator C++ implementation for learning reference.