搜索资源列表
编译原理及实践
- 目 录 译者序 前言 第1章 概论 1 1.1 为什么要用编译器 2 1.2 与编译器相关的程序 3 1.3 翻译步骤 5 1.4 编译器中的主要数据结构 8 1.5 编译器结构中的其他问题 10 1.6 &
top_down
- 自上而下的语法分析方法 能对算术表达式进行语法分析并计算出表达式的值-top-down syntax analysis method for the arithmetic expression syntax analysis and calculate the value of the expression
多赋值语句算术表达式解析器2.2
- 能计算如下表达式:x=3 y=4 z=x^2+sin(y) -expression can be calculated as follows : 3 x = y = z = 4 x ^ 2 sin (y)
biaodashijisuan321
- 自顶向下语法分析,实现表达式的计算,输入表达式,计算出值-top-down syntax analysis, and expression, the expression input, the calculated value
VBparse
- 该系统分为数学公式编译器和数值计算两大块,数学公式编译器的实现比较复杂,计算系统的实现是利用编译器调用数学公式进行的,插值方法,方程求根,数值积分,线性方程组求解
for-else
- 本课程设计是一个编译器的设计,包括词法分析部分、语法分析部分和中间代码生成部分。词法分析部分既词法分析器的设计,词法分析是编译的基础,执行词法分析的程序称为词法分析器,也就是说编译程序中完成词法分析任务段就是词法分析器。语法分析部分为语法分析器的设计,采用LR(1)分析方法进行语法分析,判断给出的符号串是否为该文法识别的句子。中间代码生成器部分主要实现逆波兰式的生成,将用中缀式表示的算术表达式转换为用逆波兰式表示的算术表达式,并计算用逆波兰式来表示的算术表达式的值。
递归下降分析器
- 目的】 使用递归子程序法设计一个语法分析程序,理解自顶向下分析方法的原理,掌握手工编写语法分析程序的方法。 【要求】 1、使用递归下降分析算法分析表达式文法: exp ::= exp addop term | term addop ::= + | - term ::= term mulop factor | factor mulop ::= * | / factor ::= (exp) | number 其中number可以是多位的十进制数字串(整数即可),因此这里还需要一个小的词法分析器来得到
one_dimension_evaluate
- 一维势阱计算基态能量本征值,可以计算有限深势阱的基态能量本征值,运行时有提示。-One-dimensional potential well calculation of the ground state energy eigenvalue can be calculated finite deep potential well of the ground state energy eigenvalue, running tips from time to time.
C
- C#算术表达式求值我是的算法核心是逆波兰式.还有就是w3eval这个算术表达式求值算法很不错.但有一种表达式它会报错.我想这是一个BUG:w3eavl不能计算"-(3+5)"的值.或者类似的计算式.-C# Arithmetic expressions evaluate my algorithm is the core of Reverse Polish-style. W3eval there is the arithmetic expression evaluation algorithm is
shangzhi
- 信息论与编码课程设计:基于概率论与编码熵值计算-Information Theory and Coding Course Design: Based on probability theory and calculation of entropy coding
2000pi
- 能够精确到2000位的pi值计算,其中用到了数组的相关知识,计算时间不会超过5秒-Accurately to the 2000 value of pi, which used an array of relevant knowledge of the computing time is not more than 5 seconds
AlPoland
- 对表达式进行语义、语法分析,其语法分析使用算符优先分析方法,其逆破兰式的构造在每次语法分析的规约过程中进行,最后利用已经建立好的逆波兰式计算表达式的值。-Pairs of expression semantics, syntax analysis, syntax analysis using the operator the priority of its analysis, the reverse break-lan-style structure in the parsing of the
YFFXQ
- 使用递归子程序法设计一个语法分析程序,自顶向下分析方法. 1、使用递归下降分析算法分析表达式文法: exp ::= exp addop term | term addop ::= + | - term ::= term mulop factor | factor mulop ::= * | / factor ::= (exp) | number 其中number可以是多位的十进制数字串(整数即可),因此这里还需要一个小的词法分析器来得到number的值。 2、该
Calculator
- 非递归预测分析表达式的计算器,该分析语法可以计算表达式的值-Prediction of non-recursive expression calculator, the analysis value of the expression syntax can be calculated
jiefangcheng
- 解N元一次方程组,雅克比迭代法,将方程系数x值和迭代因子代入迭代公式计算-Solution of N-linear equation group, Jacobi iterative method, the equation coefficients of x values and the iterative factor incorporated into the iteration formula
234567
- 选取无符号数的算术四则运算中的各类单词为识别对象,要求将其中的各个单词识别出来。 输入:由无符号数和+,-,*,/, ( , ) 构成的算术表达式,如1.5E+2-100。 输出:对识别出的每一单词均单行输出其类别码(无符号数的值暂不要求计算)。
