Location:
Search - addr
Search list
Description: 一、 实验内容
S语言的编译程序的词法分析部分实现
从左到右扫描每行S语言源程序的符号,拼成单词,换成内部表示(token)
二、 实验要求
要求实现编译器的以下功能:
组织源程序的输入
按规则拼写单词,并转换成二元形式
删除空格及无用符号(如回车符,字符常数的引号符等)
发现并定位错误
建立单词表、符号表、常数表等文件
三、 实现方法
数据结构
1、 输入
S语言源程序,为文本文件
2、 输出
词法分析程序的运行结果是:产生一个单词序列文件(token文件)和一个常数表、一个符号表文件,并输出错误信息。
(1) token文件结构
token文件用于存放从S语言源程序中扫描出来的一个个单词符号的机内表示,其文件结构如下:
typedef struct token
{
nt label
char name[30]
int code
int addr
}token
说明:
label:单词序号;
name[30]:单词本身;
code:单词的编辑;
addr:地址,单词本身保留字时值为-1,为标识符成常数时为大于0常数,即该标识符成常数在符号表中的入口地址。
-one, Experiment S language compiler of lexical analysis to achieve whatever S scanning each line of source language symbols, makes up words, replaced internal said (token) 2, the experimental requirements call for compiler of the following functions :
Platform: |
Size: 77782 |
Author: 范鹏 |
Hits:
Description: 打印精确定位。DELPHI Code,App,Simple to Publish,forum,WEB/FTP uploads Support,member WEB Space or email addr-Print precise positioning. DELPHI Code, App, Simple to Publish, forum, Web / FTP uploads Support, member Web Space or email addr
Platform: |
Size: 1844842 |
Author: fenglijun |
Hits:
Description: 地址本,一篇用c++编写的地址本,使用了很多c++中的文件流等-address this, a c with the preparation of the address, use a lot of paper c streams
Platform: |
Size: 5097 |
Author: xichuanfu |
Hits:
Description: //led.v
/*-------------------------------------
LED显示模块:led(CLK,AF,ADDR,DATA)
功能: 显示
注意事项: 8位LED
参数: CLK:扫妙时钟输入,推荐1kHz
AF:数码管输出,a~h
ADDR:数码管选择位数出,0~2
DATA:显示数据输入0~9999 9999
编写人: 黄道斌
编写日期: 2006/07/13
-------------------------------------*/-/ / led.v /*--------------------------- ---------- LED Display Module : led (CLK, AF, ADDR. DATA) function : to show : 8 LED parameters : CLK : So Wonderful clock input, Suggest 1kHz AF : digital tube output, a ~ h ADDR : digital control options from the median, 0 ~ 2 DATA : data show that the importation of 0 ~ 9999 9999 prepared : Huang Daobin preparation date : 2006/07/13 ------------------------------ -------*/
Platform: |
Size: 1746 |
Author: 黄道斌 |
Hits:
Description: EEPROM 24CXX应用程序供参考
对EEPROM数据区读出(当前值=ADDR+WRC_<=0FFH),每进行一次读操作将使ADDR值减一;读出数据后程序将把该数据存入通用寄存器中,开始存放的地址由FSR的值指定(范例为30H),每进行一次读操作将使FSR的值加一;读出规定个数(由寄存器REC_给定,范例值为0FH)的数值后,结束读出,回main-EEPROM qi application for reference to the District EEPROM data read out (current value = A DDR WRC_
Platform: |
Size: 1335 |
Author: 风鹰 |
Hits:
Description: delphi写的千年私服登陆器,功能是修改游戏目录中的ADDR.TXT文件中的地址并启动游戏程序。内置外挂(已经没什么用了)-delphi write of the Millennium private servers landers, function is to amend the list of games ADDR.TXT document addresses the procedures and start the game. Built - pylon (already pretty useless)
Platform: |
Size: 223959 |
Author: 李涛 |
Hits:
Description: 含此文档只表示此压缩包来自于DELPHI盒子网站
-------------------------------------------------------------------------
DELPHI盒子 二零零三新版
http://www.2ccc.com
http://www.delphibox.com
Email:root@2ccc.com
DELPHI相关源码下载,作品发布,个性论坛,支持WEB/FTP文件上传,会员WEB空间,VIP会员***@2ccc.com邮箱。
2ccc技术论坛
http://bbs.2ccc.com
2ccc个人网络空间,免费8M永久使用web空间,可以上传任何文件,上传进度显示,送个人留言板,VIP会员可申请100M空间。
http://my.2ccc.com
2003-9-25 第9次改版正式开通,每日更新。
--------------------------------------------------------------------------
DELPHIBOX New Version @ 2003
http://www.2ccc.com
http://www.delphibox.com
Email:root@2ccc.com
DELPHI Code,App,Simple to Publish,forum,WEB/FTP uploads Support,member WEB Space or email addr.
2ccc Tech Forum.
http://bbs.2ccc.com
2ccc Web Space,Free 8M Space,Upload any file-type.
http://my.2ccc.com
2003-9-25 New Version WebSite ninthly,Update everyday.-with this document only said that the package of compressed from the box DELPHI website ------------ ---------------------------------------- DELPHI box --------------------- 2003 New http : / / www.2ccc.com http : / / www.delphibox.com Email : root@2ccc.com DELPHI relevant source download, works published, personality Forum support Web / FTP file uploads, Member Web space, VIP Member *** @ 2ccc.com mail. 2ccc Technical Forum http://bbs.2ccc.com 2ccc personal network space, 8 M permanent free use of web space, can upload any document upload progress indicates that sent personal message board, VIP members can apply for 100 M space. Http://my.2ccc.com 2003-9-25 9th revision opened updated daily. ---------------------------------------- ---------------------------------- DELPHI New Version @
Platform: |
Size: 1494089 |
Author: sbl |
Hits:
Description: 含此文档只表示此压缩包来自于DELPHI盒子网站
-------------------------------------------------------------------------
DELPHI盒子 二零零三新版
http://www.2ccc.com
http://www.delphibox.com
Email:root@2ccc.com
DELPHI相关源码下载,作品发布,个性论坛,支持WEB/FTP文件上传,会员WEB空间,VIP会员***@2ccc.com邮箱。
2ccc技术论坛
http://bbs.2ccc.com
2ccc个人网络空间,免费8M永久使用web空间,可以上传任何文件,上传进度显示,送个人留言板,VIP会员可申请100M空间。
http://my.2ccc.com
2003-9-25 第9次改版正式开通,每日更新。
--------------------------------------------------------------------------
DELPHIBOX New Version @ 2003
http://www.2ccc.com
http://www.delphibox.com
Email:root@2ccc.com
DELPHI Code,App,Simple to Publish,forum,WEB/FTP uploads Support,member WEB Space or email addr.
2ccc Tech Forum.
http://bbs.2ccc.com
2ccc Web Space,Free 8M Space,Upload any file-type.
http://my.2ccc.com
2003-9-25 New Version WebSite ninthly,Update everyday.-with this document only said that the package of compressed from the box DELPHI website ------------ ---------------------------------------- DELPHI box --------------------- 2003 New http : / / www.2ccc.com http : / / www.delphibox.com Email : root@2ccc.com DELPHI relevant source download, works published, personality Forum support Web / FTP file uploads, Member Web space, VIP Member *** @ 2ccc.com mail. 2ccc Technical Forum http://bbs.2ccc.com 2ccc personal network space, 8 M permanent free use of web space, can upload any document upload progress indicates that sent personal message board, VIP members can apply for 100 M space. Http://my.2ccc.com 2003-9-25 9th revision opened updated daily. ---------------------------------------- ---------------------------------- DELPHI New Version @
Platform: |
Size: 82138 |
Author: RockZhou |
Hits:
Description: 本通讯簿所支持的操作系统为 Windows NT4.0 (Service Pack3) 以上,
数据库为支持ODBC的任何一种数据库,本系统使用的是SQL Server 7.0
和Microsoft Access。客户端为任何一种浏览器-the Address Book supported by the operating system to Windows NT4.0 (Service Pac - k) above, the database supports ODBC for any of the databases, The use of the system is SQL Server 7.0 and Microsoft Access. Client in any browser
Platform: |
Size: 14077 |
Author: 陈海峰 |
Hits:
Description: 写入N字节数据程序
把N个字节数据写入起始地址为ADDR的EEPROM内-N bytes of data written into the procedures have to N bytes of data into the starting address of the EEPROM inside the ADDR
Platform: |
Size: 1753 |
Author: zhoulibin |
Hits:
Description: dns查询程序,根据name列出ip addr-dns inquiry procedures, listed under the name ip addr
Platform: |
Size: 2593 |
Author: 周易 |
Hits:
Description: void statistics(int signo)
unsigned short cal_chksum(unsigned short *addr,int len)
int pack(int pack_no)
void send_packet(void)
Platform: |
Size: 137480 |
Author: zhenyun |
Hits:
Description: cpress usb 芯片Vender 处理固件。
The purpose of this software is to demonstrate how
to implement vendor specific commands.
The following vendor specific commands are implemented:
A0 Firmware Upload/Download
A2 EEProm Load
A3 External Ram Load
A4 Set I2C Addr
A5 Get IIC Type (1 Byte or 2 Byte EEPROM)
A6 Get Chip Rev
A8 Renumerate
Platform: |
Size: 25932 |
Author: xw |
Hits:
Description: 将数据data写入addr所指定的pci单元,DSP芯片TMS320VC33控制的汇编源代码。请使用的同时交上笔者的名字《张庆》,谢谢!
Platform: |
Size: 2998 |
Author: 张庆 |
Hits:
Description: 用char *malloc(unsigned size)函数向系统申请一次内存空间(如size=1000,单位为字节),用首次适应法
addr = (char *)fmalloc(unsigned size) 和
ffree(unsigned size,char * addr)(基本要求)或
循环首次适应法(提高一步)
addr = (char *)lmalloc(unsigned size) 和
lfree(unsigned size,char * addr)
模拟UNIX可变分区内存管理,实现对该内存区的分配和释放管理。
Platform: |
Size: 1855 |
Author: lensoft |
Hits:
Description: 本通讯簿所支持的操作系统为 Windows NT4.0 (Service Pack3) 以上,
数据库为支持ODBC的任何一种数据库,本系统使用的是SQL Server 7.0
和Microsoft Access。客户端为任何一种浏览器-the Address Book supported by the operating system to Windows NT4.0 (Service Pac- k) above, the database supports ODBC for any of the databases, The use of the system is SQL Server 7.0 and Microsoft Access. Client in any browser
Platform: |
Size: 18432 |
Author: 陈海峰 |
Hits:
Description: 将数据data写入addr所指定的pci单元,DSP芯片TMS320VC33控制的汇编源代码。请使用的同时交上笔者的名字《张庆》,谢谢!-Data data to write addr specified pci modules, DSP chips TMS320VC33 compilation of source code control. Please use the hand in the author
Platform: |
Size: 3072 |
Author: 张庆 |
Hits:
Description: 一个获取多个IP地址的源程序,对你可能很实用的。-Access to more than one source IP address, you may be very useful.
Platform: |
Size: 38912 |
Author: 罗诚 |
Hits:
Description: 用来获取访问页面的ip地址,并且记录在tracy.txt文件中-get ip addr
Platform: |
Size: 3072 |
Author: 吴梓朋 |
Hits:
Description: drivers mtd maps gpio-addr for Linux v2.13.6.
Platform: |
Size: 3072 |
Author: lkrkrang |
Hits: