搜索资源列表
bianyiyuanlikechengsheji
- 编译原理课程设计,一个模拟科学计算器,能实现加减乘除混合运算
BankOfComputing.cpp
- 本程序是一个行计算器(即对表达式求值)。计算器能实现加、减、乘、除、取余(%)和乘方(^)运算;能实现三角函数(正弦函数sin和余弦函数cos),求10为底的对数log,求2为底的对数ln,求e的指数幂exp,其参数也可以是合法的表达式; 计算器并能对表达式的合法性进行测试,错误的能给出表达式错误的信息。 ] 输入文件格式:第一行是一个正整数N,表示有多少行表达式。接下来的N行每一行是 一个表达式。表达式使用由浮点数(只用小数点表示)和运算符表示。 输出格式:每个行输出一个表达
siyuanshi
- 输出四元式,采用递归算法 处理——第二步 乘除——第三 加减——最后 等号
calculator
- 计算器,能实现计算器的基本的加减乘除等功能,方便简易,-Calculator, calculator to achieve the basic functions of addition, subtraction, etc., to facilitate easy
word_analyze
- 一个自己写的编译原理的词法分析程序,能实现加减乘除和基本的循环,条件语句的取出TOKEN序列的功能。-A compiler to write their own principles of lexical analysis procedures, to achieve the basic addition and subtraction and multiplication and division cycle, conditional statements out of sequence TO
cpu1
- 微程序模拟CPU实现加减与或异或转移储存等功能。-Micro-simulation CPU to achieve with the addition and subtraction or XOR function of the transfer of storage.
biaodashifenxi
- 表达式语法分析器 分析加减乘除运算 c-grama analys
jisuanqi
- 简单计算器(加减乘除 开方,平方)等运算,简单易懂-Simple calculator (square root of addition and subtraction multiplication and division, square)
calculator
- 本程序进行多功能计算,包括连续的加减乘除还有括号等-This multi-functional calculation procedure, including the continuous addition and subtraction multiplication and division there are brackets, etc.
LL1
- LL分析器 2、 在VC下打开LL1.dsp,阅读工程LL1,LL1为一个加、乘法(适当扩充可为四则)运算表达式的LL1预测语法分析器,规定其文法如下: E->TE’ (1) E’->+TE’ (2) E’->ε (3) T->FT’ (4) T’->*FT’ (5) T’->ε (6) F->(E) (7) F->i (8) 程序设计思路见课本P76,
Compile
- ? 分析并设计Tiny文法,包括加减乘除四则运算,比较运算符,if语句,repeat语句,read,write等,模块化设计并完成词法分析、语法分析、语义分析以及代码生成阶段,而且实现了错误处理,包括指出非法字符和语法错误,实现Tiny源程序到汇编语言目标程序的编译过程。-? Tiny grammar analysis and design, including the four arithmetic operations addition, subtraction, comparison op
Compiler_report
- 编译器实现实验报告,包括扫描器(自动机实现),语法分析,语义分析,实现输入加减乘除的式子,导出相关四元式-Experimental compiler implementation report, including the scanner (Automata), syntax analysis, semantic analysis, subtraction multiplication and division of the input formula, export-related four-
override-of-complexs
- 实现复数的加减乘除 运算符的重载和重载“《”运算符-implement complexs about plus minus multiply anddivision
4SLR
- 编译原理上机—语法分析2 1.目的:熟练掌握自下而上的语法分析方法,并能用C++程序实现。 2. 在已有文法的基础上再加上减法“-”和除法“/”对应的产生式构成最终的文法。从而使得记号流可以处理带括号的加、减、乘、除四则运算。 3. 对于任意给定的输入串(词法记号流)进行语法分析,要求采用SLR分析器来完成。手工构造SLR分析表,利用移进-归约分析算法(P69 图3.12)输出(P70 表3.8)对应的动作部分。如: 输入:id*+id/(id+id)# 输出:移进 按
zhwparser
- yacc 实现加减乘除带括号四则运算,用vc++6.0进行链接。-The yacc achieve four operations with brackets, Math, link using vc++6.0.