搜索资源列表
SC 22
- The Small C compiler translates a subset of the C language into assembly language. It runs under PC/MS-DOS 2.1 and later. Small C is compatible with the Microsoft and Small Mac assemblers. Small C takes full advantage of the ability of thes
parserwithstack
- 编译作业,此法语法分析,并且模拟堆栈机,可以带if,while-compiler operations, the French and France analysis, and simulation stack machine, can take if, while
ExpressAnalysis
- 表达式分析, 支持算术运算,括号,关系运算,逻辑运算,字符串的like运算等。采用了有限自动机做词法分析, 语法分析用算符优先分析方法,正负号算符使文法不是OPG,因此这里作了特殊处理。分析的结果是逆波兰式, 存在一个链表中。在逆波兰式的基础上,用一个栈来进行求值。在vc++6.0下试验通过。 如有问题,可以mail: zch888email@163.com 我将尽快回复你。-expression analysis, supports arithmetic operations, bra
pl0back
- 在本编译程序中,源语言为PL/0语言,目标语言为假想栈式计算机的汇编语言.PL/0语言是Pascal语言的一个子集,PL/0的编译程序包括了对PL/0语言源程序进行分析处理、编译生成类PCODE代码,并在虚拟机上解释运行生成的类PCODE代码的功能。 PL/0语言编译程序采用以语法分析为核心、一遍扫描的编译方法。词法分析和代码生成作为独立的子程序供语法分析程序调用。语法分析的同时,提供了出错报告功能。在源程序没有错误编译通过的情况下,调用类PCODE解释程序解释执行生成的类PCODE代码
PL0-translate
- PL/0语言是Pascal语言的一个子集,是一种简单而且可扩充的语言,在我的测试用例中有具体的体现。它通过词法分析、语法分析、语义分析等过程,生成目标代码,目标代码是一种形似汇编语言的栈操作指令。-PL / 0 Pascal language is a language subset is a simple and extensible language, In my test case with concrete expression. Through lexical analysis, pa
LL1gongnengquan
- 功能较全的LL1文法分析,自定义输入文法,生成first集follow集,再输入句子,判断是否是该文法,并显示栈的状态-function over the entire LL1 grammar analysis, since the definition of input grammar, Generating Sets follow first set, then input sentence, the judge is whether grammar, and that the state
ll1Analysis
- LL(1)分析法 1、LL(1)分析法的功能 LL(1)分析法的功能是利用LL(1)控制程序根据显示栈栈顶内容、向前看符号以及LL(1)分析表,对输入符号串自上而下的分析过程。 2、LL(1)分析法的前提 改造文法:消除二义性、消除左递归、提取左因子,判断是否为LL(1)文法, 3、LL(1)分析法实验设计思想及算法-LL (1) an analysis, LL (1) Analysis of the functional LL (1) Analysis of the fun
sdfefefa
- 此次课程设计我的设计题目是:判别后缀表达式。其具体要解决的问题是: (1)假设表达式由单字母变量和双目四则运算符构成; (2)从键盘输入任意一个非空的表达式; (3)利用栈,判别输入的表达式是否是一个正确的后缀表达式; (4)把正确的后缀表达式转换为前缀表达式; (5)测试用例自己设计。 -current curriculum design I design entitled : distinguishing suffix expression. To solve the
ys
- 用栈实现算术运算- Operates with the stack realization arithmetic
stack-machine
- 一个用flex、bison和vc开发的堆栈机,堆栈机为一解释器,支持简单的表达式和赋值、条件和循环语句。
stack
- 很好的源程序,可以为大家的学习提供方便学习.
2005320230911-35
- 是一个不错的语法分析器,里面实现了语法分析的算法,并判断了一些优先级的控制和对栈的操作.-is a good parser, they achieved the syntax analysis algorithms, and a judgment of priority to the control and operation of the stack.
编译原理---算浮优先算法
- 简单介绍一下,整个工程分为5个文件:Main.c ----- 程序的入口点,其实很简单,就是调用两个函数。Global.h ----- 定义了一些全局变量及宏Parse.h ----- 语法分析器的主要算法Prece.h ----- 定义和实现了一些关于优先级的操作Stack.h ----- 定义和实现了一个栈及其操作编译的时候只要用TC2.0或者WinTC打开Main.c文件进行编译就好了。如发现有Bug请在这里贴出来或者把修改后的代码跟帖在这里:)总之,这个工程仅仅是一个简单示例,告诉大家怎
bypl0
- 按递归下降方式设计其编译程序,生成PL/0栈式指令代码,然后解释执行。用(a=1)+2*(b=3+4*5)/2+2*a*b-(a=a+5)/ (c=2) 测试-dropped by recursive approach to design their own compiler, generating PL / 0 Stack-code instructions, and then the interpretation and implementation. Using (a = 1) 2 * (
compile11
- 简单整型表达式文法按递归下降方式设计其编译程序,生成PL/0栈式指令代码,然后解释执行-simple integer expression by recursive grammar dropped to design its compiler, generating PL / 0 Stack-code instructions, and then the interpretation and implementation of
170054yufa 1234234234
- 定义和实现了一个栈及其操作编译的时候只要用TC2.0或者WinTC打开Main.c文件进行编译就好了。如发现有Bug请在这里贴出来或者把修改后的代码跟帖在这里:)总之,这个工程仅仅是一个简单示例,告诉大家怎么样把课堂上学到的知识运用到实际编程当中去,工程中所用到的模块化思想,数据结构等知识都是大家学过的,大三了,希望大家在最后这段时间里把写程序的本领练就出来-definition and implementation of a stack and operation of the compile
预测分析法
- #include #include #include #define MAX 30 int table[5][6]; char stack[30]; int top=0; char buffer[MAX]; int buf=0; void start()//初始化预测分析表
stack
- stack code that wrote in C-stack code that wrote in C++
StackExample
- Simple Stack example. Which show you how to implement LIFO in stack using link list.
stack
- this is an implementation of stack