搜索资源列表
编译原理及实践
- 目 录 译者序 前言 第1章 概论 1 1.1 为什么要用编译器 2 1.2 与编译器相关的程序 3 1.3 翻译步骤 5 1.4 编译器中的主要数据结构 8 1.5 编译器结构中的其他问题 10 1.6 &
Divide22.c
- 分治算法的实现,输入N个节点数据(如个在一条直线上则只有一个数,平面上则以数据对形式实现),可以得到其中距离最近的两点数据及其距离。-partition algorithm implementation, the importation of N-node data (eg 000 in a straight line only a few. while data on the plane on the form), which can be from 2:00 recent data and
Delphi.02Packer
- V2Packer code by tt.t with almost pure delphi first build @ 2006.4.15 看到過許多別人寫的殼,大多是asm,也有的是c。早就想試一試用比較“純”的delphi 寫會是什麼樣子,於是就有了V2Packer。 V2Packer斷斷續續寫了半個月的時間,資源部分代碼寫的很垃圾,只算是能用。PEAnalyst類 由於改變了思路,去掉了一些東西,現在成了PEHeader類的再包裝。 代碼中
LL(1)while
- 用C++做的LL(1)分析法的程序,大家先用着吧,比较好用吧-C do LL (1) analysis of the procedure, we first used to it, the more useful it
Compiler
- 编译课上做的小程序,用四种分析方法分别实现(LL1,算符优先,递归下降,简单词法分析) 完成对正则文法所描述的Pascal语言子集单词符号的词法分析程序。 <标识符>→字母︱ <标识符>字母︱ <标识符>数字 <无符号整数>→数字︱ <无符号整数>数字 <单字符分界符> →+ ︱- ︱* ︱ ︱(︱) <双字符分界符>→<大于>=︱<小于>=︱<小于&g
dowhilee
- 1.1写出符合给定的语法do-while语句, 此语句符合LL(1)的文法,分析方法 的文法及属性文法。 1.2完成do-while语句的中间代码三地址表示的描述。 1.3写出do-while语句语法分析方法的思想,完成语法分析和语义分析程序设计。 1.4编制好分析程序后,设计若干用例,上机测试并通过所设计的分析程序。-1.1 write in line with the syntax of a given do-while statement, the sta
while
- 否符合while语句的文法,或者能不能通过文法的开始符号推导出该语句。 (2) 该程序应该包括词法分析器,能对输入的语句进行词法分析,然后再对输出结果。词法分析器应能识别关键字,标示符,常量,操作符等。 (3) 该程序的语法分析器能对输入的语法进行分析,判断输入语句能否满足while循环语句的文法。通过简单优先的方法对语句进行分析,看能否能归约到文法的开始符号。 (4) 该程序的语义分析器就是对分析结果进行输出,要求输出结果是三地址形式的。-Compliance with the s
3_grammar
- C写的一个语法分析器,输入可包含main,int,void,if,else,do,while几个关键字,算符可包括+,-,*,/,++,--,==,!=,<,>,<=,>=,输出求解过程-Write a C parser, type may include main, int, void, if, else, do, while a number of keywords, operators may include+,-,*,/,++,--,==, solving pro
lex
- 用c++实现的此法分析器,包括正则表达式解析,正则到NFA转换,NFA到DFA转换,和最终的匹配,详见包中README文件-Using c++ parser to achieve this method, including regular expression analysis, while the NFA is converted, NFA to DFA conversion, and end the match, see the package README file
WordCounter
- 封装一个类CText, 并编写一个软件,它可以完成对任意一个文本文件的字符统计工作, 可以统计的信息有:中文字符数、英文单词数、行数、字符个数(不计空格)、空格数。 同时上述的字符统计信息,要求能写到一个Report.txt文件中,并且能显示出来。但是不要求界面,只要能以命令行的形式输入及显示即可,另外统计功能也可参考Word中 的“字数统计工具”。 序遵循题目的要求,采用Visual Studio 2008编译环境编写,使用C++语言来完成。其中主要功能封装在CText类当中,并利
C-Code-Development-Tits(all)
- 聪明的程序员用delphi,而真正的程序员用c!但在c的学习过程中,由于其指针的高度自由化和灵活度,使得学习起来困难重重,然而学习c也是有章可循的,c语言程序开发范例宝典全代码,系统的展示了c如何由初级学习到高级进阶的全过程,所有的代码均有详细的解释,同时解决了c程序员在开发过程中的各个疑难杂症,可谓不可多得的撼世之作。-Smart programmers use delphi, but the real programmer uses c! however, at the c of the l
Objective-C.Fundamentals
- Objective-C 基础图书 iPod 开发语言 iOS 4 in Action 源码-Objective-C Fundamentals is an introductory book, intended to complement other books focused on iPhone and iPad application development such as iOS 4 in Action. While many books have been writte
c
- 为给定编程语言设计语法分析器其内容包含LL(1)预测分析表、语法分析器的处理流程等-program compoundstmt stmt ifstmt | whilestmt | assgstmt | compoundstmt compoundstmt { stmts } stmts stmt stmts | ifstmt if ( boolexp
transposed.c
- 计算矩阵A的转置的并行C语言程序,使用MPI编译.输入矩阵A,计算它的转置.-MPI parallel matrix transpose algorithm, the input matrix A, A transpose computing, multi-process while achieving
Ciclo while
- Ejemplo de Ciclo while en C++
FFT-and-FFT-2D-ANSI-C
- 标准C语言实现的一维和二维快速傅里叶变换代码,代码运行时不需要额外占用多余的内存空间,简单易用,具体可见代码说明。-FFT and 2 dimension FFT algorithm acommplished with ANSI C.It occupies the least memory space while running after embeded into you project.The source code is easy and brief,you can check the t
c
- 程序分析:利用while语句,条件为输入的字符不为 是很好的例子-take advantage of while program,the condition is input number,it is good example
c
- 用Dev C++实现do..while功能-Do..while function realized by Dev C++
do while??????? ?? ??? ??
- meaning of two given value
exercise 5 BUPT
- C exercise Exercise 5: ‘for’ and ‘do … while” repetition statements 1. Write a program which uses a do/while loop to print out the first 10 powers of 2 other than 0 (ie. it prints out the values of 21, 22, ..., 210). Use a for loop to do the s