搜索资源列表
duizhan
- 假设一个算术表达式中可以包含三种括号:()[]{},且这三种括号可以按任意次序嵌套使用(如:...[...{...}...[...]...]...(...))。编写判别给定表达式中所含括号是否正确配对出现的算法,已知表达式已存入数据元素为字符的顺序表中。
LL(1)
- LL(1)语法分析1、实现LL(1)分析中控制程序(表驱动程序); 2、完成以下描述算术表达式的LL(1)文法的LL(1)分析程序。 G[E]: E→TE′ E′→ATE′|ε T→FT′ T′→MFT′|ε F→ (E)|i A→+|- M→*|/-LL (1) syntax analysis 1, the realization of LL (1) Analysis of control procedures (table-driven procedure
MyFinalCalculator
- 数据结构期末作业 带括号的算术表达式求值-Data structure with brackets at the end of the arithmetic operations for the value of expression
Principles-of-curriculum-design
- 编译原理课程设计总结报告 1.设计题目及相关内容 本课程设计完成的是递归下降分析法。对算术表达式和赋值语句进行语义分析并生成四元式序列。其中,本设计用C语言对简单的pascal语言子集编制一个编译程序。语义分析输入的是语法分析后提供的单词串,而语法分析的输入是词法分析的程序所提供的单词序列。要求把语法分析程序和词法分析都作为子程序调用,其中输入字符串要用文件操作。 2.运行环境(软、硬件环境) 硬件环境:方正电脑,P4CPU,512M内存 软件环境:Visualc+
2_parser
- C编写的一个语法分析器,输入一个算术表达式可分析出其是否为一个正确的表达,使用+,-,*,/四个表达式。-C prepared by a parser, type an arithmetic expression can be analyzed for their expression of a correct use of the four expressions+,-,*,/.
Calculate
- C++用栈和队列实现简单算术表达式的计算-C++ using stack and queue simple arithmetic calculation expressions
Suffix
- 数据结构中的后缀算术表达式计算。方便学习数据结构的人。-The suffix data structure calculation of the arithmetic expression. Data structure to facilitate learning of the people.
expressions
- 有关表达式的栈的应用 内容有:表达式括号匹配 计算后缀表达式的值 计算算术表达式的值 中缀表达式转后缀表达式-Expression of the application stack are as follows: the expression in brackets to match the calculated value of the suffix arithmetic expression expression is made up of expressions of
expressions
- 数据结构线性表的应用,算术表达式求值,中缀转后缀算法,加减乘除基本运算-The application of the linear table data structure, arithmetic expression evaluation, infix suffix transfer algorithm, the basic operations addition and subtraction multiplication and division
ExpressTree
- 输入算术表达式,分别输出表达式的前缀形式和后缀形式,提供用户图形界面-Enter an arithmetic expression, respectively, the form of the output expression prefix and suffix forms, provide the user graphical interface
c_calc
- 这是C++语言编写的小程序,可以输入算术表达式,并计算表达式的结果-It is written in C++, small programs, you can enter an arithmetic expression, and calculate the results of the expression
calc
- 在以二叉树表示算术表达式的基础上,设计一个十进制的四则运算的计算器。[设计要求]实现整数浮点数的四则运算,并且还加上了^的运算,支持括号及开始的负数-In a binary arithmetic expression that is designed based on a four decimal arithmetic calculator. [Design requirements] to achieve a four-integer floating-point arithmetic, an
zz
- 1、演示用算符优先法对中序算术表达式求值的过程。2、(扩展)中序表达式变为后序表达式并计算表达式值。
ApplicationStack
- 1.进一步掌握栈的基本操作的实现。 2.掌握栈在算术表达式的计算方面的应用。 -1. Further understand the basic operation of the stack implementation. 2. Control stack in the calculation of arithmetic expression applications.
22
- 实验内容: 1. 问题描述 先定义堆栈的几个基本操作,再设计一主函数利用堆的操作完成以下功能: 假设一个算术表达式中可以包含三种括号:()[]{},且这三种括号可以按任意次序嵌套使用(如:...[...{...}...[...]...]...(...))。编写判别给定表达式中所含括号是否正确配对出现的算法,已知表达式已存入数据元素为字符的顺序表中。 2. 基本要求 读入2个不同的、长度不超过80个字符的、包含三种括号的算术表达式,输出测试结果。-Experiment: 1.
asdas
- 算术表达式递归下降分析程序设计 编程实现给定算术表达式的递归下降分析器。 算术表达式文法如下: E E+T | T T T*F | F F (E) | i -Arithmetic expressions recursive descent analysis program design programming for a given arithmetic expression recursive descent pars
code
- 运算数为一位整数 运算符为 +,-,*,/,(,) 输入任意一个算术表达式E;求表达式E的值, 输出结果。-Computing an integer number +,-,*,/,(,) enter any operator for an arithmetic expression E seek an expression E, the value of output.
eeeee
- 实现基于二叉树表示的算术表达式实现基于二叉树表示的算术表达式-eeeeaaaaaaaaaaaaaannnnnnnnnnnnnnnnnnnn
calculator
- 一、实验一:带括号的算术表达式求值 二、实验的目的和要求: 1.采用算符优先数算法,能正确求值表达式 2.熟练掌握栈的应用 3.熟练掌握计算机系统的基本操作方法,了解如何编辑、编译、链接和运行一个C++程序 -1, experiment 1: arithmetic expressions with parentheses evaluated two experimental purposes and requirements: 1. Using operators pr
daimashengcheng
- c语言中间代码生成,输入算术表达式,输出四元式 -c language intermediate code generation, input arithmetic expression, the output quaternion type