此为编译原理实验报告 学习消除文法左递规算法,了解消除文法左递规在语法分析中的作用 内含 设计算法 目的 源码 等等.... 算法:消除左递归算法为: (1)把文法G的所有非终结符按任一种顺序排列成P1,P2,…Pn 按此顺序执行 (2)FOR i:=1 TO n DO BEGIN FOR j:=1 DO 把形如Pi→Pjγ的规则改写成 Pi→δ1γ δ2γ … δkγ。其中Pj→δ1 δ2 … δk是关于Pj的所有规则; 消除关于Pi规则的直接左递归性 END (3)化简由(2)所得的文法。即去除那些从开始符号出发永远无法到达的非终结符的 产生规则。
上传时间: 2015-03-29
上传用户:极客
This sample demonstrates the handling of DIF_ calls during device installation and the insertion of a property page into the install wizard and into the device properties.
标签: demonstrates installation insertion the
上传时间: 2014-01-25
上传用户:yy541071797
求解网络中的最短路径。假设某个计算机网络有n个站点,依次编号为1,2,…,n;有的站点之间有直接的线路连接(即这两个站点之间没有其它站点),有的站点之间没有直接的线路连接。如果用三元组(i,j,f)来表示该网络中的站点I和站点j之间有直接的线路连接且它们之间的距离为f 当已知该网络各站点之间的直接连接情况由m个三元组(i1,j1,f1),(i2,j2,f2),…,(im,jm,fm)确定时,要求计算出对于网络中任意一个站点g(1≤g≤n)到其余各站点的最短距离。
上传时间: 2013-12-27
上传用户:asdkin
Many many developers all over the net respect NASM for what i s - a widespread (thus netwide), portable (thus netwide!), very flexible and mature assembler tool with support for many output formats (thus netwide!!). Now we have good news for you: NASM is licensed under LGPL. This means its development is open to even wider society of programmers wishing to improve their lovely assembler. The NASM project is now situated at SourceForge.net, the most famous Open Source development center on The Net. Visit our development page at http://nasm.2y.net/ and our SF project at http://sf.net/projects/nasm/
标签: developers widespread netwide respect
上传时间: 2014-01-20
上传用户:2404
*** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ** RELEASE NOTES *** *** *** *** ***** *** *** *** *** *** *** *** *** *** *** *** *** *** 1) RELEASE NOTES: --- --- ---- The release notes are now provided in PDF format in the file: \SOFTWARE\uCOS-II\DOC\RelV251.PDF 2) FEATURES SINCE V2.00: --- --- --- ----- All the features added since V2.00 are described in the PDF file: \SOFTWARE\uCOS-II\DOC\NewV251.PDF 3) EVENT FLAGS: -------------- Event Flags are discussed in AN-1007 (see www.Micrium.com/app_notes.htm) 4) QUICK REFERENCE CHART: ------------------------ A Quick Reference Chart for all the functions in V2.51 is provided in the following .PDF files: \SOFTWARE\uCOS-II\DOC\QuickRefChartV251-Color.PDF Once printed, simply FOLD the page in half and if you have a LAMINATION machine, you can protect the chart by laminating it.
上传时间: 2015-04-06
上传用户:zq70996813
AVR单片机的优化RC6 加密算法(速度快,其优化思想绝对值得学习) 在有128bytes RAM 的AVR单片机上执行 rc6 16/10/8(16 bit/10 rounds/8 bytes keys) * 对多数代码进行了 C 语言优化,对数据相关循环移位,模乘等用ASM优化 * 在4MHz无乘法器的AVR上得到平均 1172 Bytes/s的加解密速度。 * 编译器: AVR-G
上传时间: 2013-12-18
上传用户:阿四AIR
ITU-T音频格式编解码代码,包括:G.711 G.721 G.723, 其中G723还支持16kbit/s 24kbit/s 40kbit/s几种码率。g72x.h g711.h是共用的头文件。
上传时间: 2013-12-16
上传用户:gououo
用户名:liuxinrui 密码:zhongyong 您可以在 linux 系统上运行 main.exe 文件 IP 应设为192.168.0.1 重新编译请在linux终端提示符后输入 g++ -lsybdb -lcurses -o 1.exe main.cpp clsMain.cpp clsConn.cpp clsTrade.cpp clsSupplier.cpp clsProduct.cpp 把数据库文件 DepartmentalStore.sql 拖放到 SQL SERVER 的查询分析器中并执行 把数据库文件 测试.sql 拖放到 SQL SERVER 的查询分析器中并执行 本软件提供详细的设计文档,供学习之用
标签: linux liuxinrui zhongyong main
上传时间: 2014-01-18
上传用户:561596
prolog 找路例子程序: === === === === === === Part 1-Adding connections Part 2-Simple Path example | ?- path1(a,b,P,T). will produce the response: T = 15 P = [a,b] ? Part 3 - Non-repeating path As an example, the query: ?- path2(a,h,P,T). will succeed and may produce the bindings: P = [a,depot,b,d,e,f,h] T = 155 Part 4 - Generating a path below a cost threshold As an example, the query: ?- path_below_cost(a,[a,b,c,d,e,f,g,h],RS,300). returns: RS = [a,b,depot,c,d,e,g,f,h] ? RS = [a,c,depot,b,d,e,g,f,h] ? no ==================================
标签: Part connections example prolog
上传时间: 2015-04-24
上传用户:ljt101007
分而治之方法还可以用于实现另一种完全不同的排序方法,这种排序法称为快速排序(quick sort)。在这种方法中, n 个元素被分成三段(组):左段l e f t,右段r i g h t和中段m i d d l e。中段仅包含一个元素。左段中各元素都小于等于中段元素,右段中各元素都大于等于中段元素。因此l e f t和r i g h t中的元素可以独立排序,并且不必对l e f t和r i g h t的排序结果进行合并。m i d d l e中的元素被称为支点( p i v o t )。图1 4 - 9中给出了快速排序的伪代码
上传时间: 2015-04-27
上传用户:kristycreasy