搜索资源列表
LL1
- 输入已经消除左递归的以及提取公共左因子的LL(1)文法,再输入相应的表达式,若分析成功,则在递归输出过程中输出"acc",若不成功,则有相应的报错以及位置指名。注意,要把同一个非终结符的产生式分成单个输入。它会自动计算first,follow,预测分析表的构造,但并不输出。-Input has to eliminate left recursion and extract the public left factor of LL (1) grammar, then input the corre
calculate
- 输入一个只包含个位数字的简单四则运算表达式字符串,计算该表达式的值 注: 1、表达式只含 +, -, *, / 四则运算符,不含括号 2、表达式数值只包含个位整数(0-9),且不会出现0作为除数的情况 3、要考虑加减乘除按通常四则运算规定的计算优先级 4、除法用整数除法,即仅保留除法运算结果的整数部分。比如8/3=2。输入表达式保证无0作为除数情况发生 5、输入字符串一定是符合题意合法的表达式,其中只包括数字字符和四则运算符字符,除此之外不含其它任何字符,不会出现计算溢出
Semantic_analyzer
- 自顶向下子程序递归,算术表达式语义分析,实现对算术表达式的值的计算,输入文件格式如,压缩包中的txt文件-a demo of semantic analyse
1
- 1、编写函数,实现顺序栈的各种基本操作(可从上一实验中直接获取); 2、编写函数,实现运算符的优先级处理; 3、编写函数,实现算术表达式的计算。 -1, write a function, the stack order to achieve a variety of basic operations (directly obtained from previous experiments) 2, write a function to achieve priority handl
2
- 1、编写函数,实现顺序栈的各种基本操作(可从上一实验中直接获取); 2、编写函数,实现运算符的优先级处理; 3、编写函数,实现算术表达式的计算。 -1, write a function, the stack order to achieve a variety of basic operations (directly obtained from previous experiments) 2, write a function to achieve priority pro
biaodashi
- 自己写的表达式计算器,可以计算类似9+2-3*5*4/3-4+5*-2的表达式,只是计算数和运算符的最大个数必须先指定好,不能运算带括号的表达式 -Write your own expression calculator, can be calculated expression similar to 9+2-3*5*4/3-4+5*-2, the maximum number is calculated and the number of operators must first spec
REGExpress
- 正则表达式的匹配计算,用OBJECT_C-Regular expression matching calculations, using OBJECT_C
2
- 输入中缀表达式,#为结束符将其转换成后缀表达式,然后计算-Enter infix expression,# to end the character to convert it into a postfix expression, and then calculate
calc
- 表达式计算器,可以处理复杂的计算,可一次性输入一个长表达式。-this is a calc,can do any calc
add
- 混合表达式的计算,使用栈计算,只需输入混合表达式即可-Calculating mixed expressions
1_3
- 栈的实现及应用 栈是一种常用的线性表,在操作系统中被大量使用,比如计算各种表达式。设计程序完成一个24点游戏,要求用户将四个随机产生的十以内的整数进行加减乘除(允许使用括号,每个数只能用一次)求得二十四。(注:可以不判断录入的表达式是不是只使用了给定的四个数或者使用了多次数) 功能要求: (1)随机产生四个数(使用randomize和random函数); (2)要求用户录入表达式,只能使用括号,加,减,乘和除; (3)将中序算术表达式变成逆波兰式(也就是后序算术表达式);
calculator
- 图形化计算器的实现a) 支持你在 Project 1 中所完成的计算器的所有功能; b) 使计算器支持两种工作模式:一种是输入一个完整表达式,获取计算结果, 这种工作模式类似于我们计算表达式的过程;第二种是进行即时计算,即 显示单步的计算的中间结果,这种工作模式类似于一个普通计算器的功能。 用户可以通过图形界面对两种工作模式互相切换; i. 例如给定计算表达式5+3*4。在第一个工作模式下,用户输入”5+3*4=”,
XUNHUANPINGWEN
- 主要用于计算循环谱,谢谢大家下载,不是很完整,可以参考,里面还有正则表达式,比较全面。-Mainly used to calculate the cyclic spectrum, thank you download, not very complete, you can refer to, thank you download.
calculator
- 这个计算器可以计算复杂的数学表达式, 如:3-3*4/2+8-4.5; +、-、*、\以及小数点都可计算,且此项目没有错误,可以运行。-This calculator can calculate complex mathematical expressions, such as :3-3* 4/2+8-4.5 +,-,*, \, and the decimal point can be calculated, and this project is no error, you can run.
chengxu
- 数据结构编程示例,包含表达式求值,多项式计算,哈弗曼,内部排序,停车场,长整数等常用功能-Data structure programming examples, including expression, polynomial, Huffman, internal sorting, parking, long integers and other common functions
TestExpr
- 四则混合运算表达式求值: 当用户输入一个合法的算术表达式后,能够返回正确的结果。 能够计算的运算符包括:加、减、乘、除、括号; 能够计算的操作数要求在实数范围内;-The four mixed computing expression evaluation: When the user enters a valid arithmetic expression, they can return the correct results. Operators can be calc
kuaisufuliye
- 光纤中计算非线性的表达式,可以计算色散,自相位调制。-Calculation of nonlinear optical fiber expression
24dian
- 输入任意四个整数(0到10),运算符只有加减乘除,还有括号.每个数只能且必须用一次。要求判断这些表达的结果中是否有24。如果有,输出计算表达式:如输入4,6,1,1,输出 4*6*1*1 =24-Enter any four integer (0-10), the operator only addition, subtraction, there are brackets for each number can only be and must be used once. Required t
infix
- 中缀表达式转后缀表达式并提供一位数的计算-infix to posfix
Calculator
- 用链表实现的科学计算器,可以输入一个表达式,输出各步的计算过程。可以进行小数的带括号科学计算。可以实现次方。另有统计功能,计算方差等。-List realize scientific calculator, you can enter an expression, the output of each step of the calculation process. Decimals can be bracketed scientific computing. You can achieve t