CDN加速镜像 | 设为首页 | 加入收藏夹
当前位置: 首页 资源下载 源码下载 其它 编译器/词法分析

文件名称:tiny-parse

介绍说明--下载内容来自于网络,使用问题请自行百度

Syntax of TINY+

An EBNF grammar for TINY+ is as follows (Strings in bold are terminals):

1. program -> declarations stmt-sequence

2. declarations -> decl declarations |²

3. decl -> type-specifi er varlist

4. type-specifi er -> int | bool | string

5. varlist -> identifi er { , identifi er }

6. stmt-sequence -> statement { statement }

7. statement -> if-stmt | repeat-stmt | assign-stmt | read-stmt | write-stmt

| while-stmt

8. while-stmt -> while bool-exp do stmt-sequence end

9. if-stmt -> if bool-exp then stmt-sequence [else stmt-sequence] end

10. repeat-stmt -> repeat stmt-sequence until bool-exp

11. assign-stmt -> identifi er := exp

12. read-stmt -> read identifi er

13. write-stmt -> write exp

14. exp -> arithmetic-exp | bool-exp | string-exp

15. arithmetic-exp -> term { addop term }

16. addop -> + | --Syntax of TINY+

An EBNF grammar for TINY+ is as follows (Strings in bold are terminals):

1. program-> declarations stmt-sequence

2. declarations-> decl  declarations |²

3. decl-> type-specifi er varlist

4. type-specifi er-> int | bool | string

5. varlist-> identifi er { , identifi er }

6. stmt-sequence-> statement {  statement }

7. statement-> if-stmt | repeat-stmt | assign-stmt | read-stmt | write-stmt

| while-stmt

8. while-stmt-> while bool-exp do stmt-sequence end

9. if-stmt-> if bool-exp then stmt-sequence [else stmt-sequence] end

10. repeat-stmt-> repeat stmt-sequence until bool-exp

11. assign-stmt-> identifi er := exp

12. read-stmt-> read identifi er

13. write-stmt-> write exp

14. exp-> arithmetic-exp | bool-exp | string-exp

15. arithmetic-exp-> term { addop term }

16. addop->+ |-
相关搜索: EBNF tiny-parse

(系统自动生成,下载前可以参看下载内容)

下载文件列表

TINY+2/
TINY+1/
TINY+2/TINY+实验报告.doc
TINY+2/源代码/
TINY+2/源代码/Debug/
TINY+2/源代码/Debug/tiny2.exe
TINY+2/源代码/Debug/tiny2.ilk
TINY+2/源代码/Debug/tiny2.pdb
TINY+2/源代码/tiny2/
TINY+2/源代码/tiny2/ANALYZE.C
TINY+2/源代码/tiny2/ANALYZE.H
TINY+2/源代码/tiny2/CGEN.C
TINY+2/源代码/tiny2/CGEN.H
TINY+2/源代码/tiny2/CODE.C
TINY+2/源代码/tiny2/CODE.H
TINY+2/源代码/tiny2/Debug/
TINY+2/源代码/tiny2/Debug/ANALYZE.obj
TINY+2/源代码/tiny2/Debug/BuildLog.htm
TINY+2/源代码/tiny2/Debug/CGEN.obj
TINY+2/源代码/tiny2/Debug/CODE.obj
TINY+2/源代码/tiny2/Debug/MAIN.obj
TINY+2/源代码/tiny2/Debug/mt.dep
TINY+2/源代码/tiny2/Debug/PARSE.obj
TINY+2/源代码/tiny2/Debug/SCAN.obj
TINY+2/源代码/tiny2/Debug/SYMTAB.obj
TINY+2/源代码/tiny2/Debug/tiny2.exe.embed.manifest
TINY+2/源代码/tiny2/Debug/tiny2.exe.embed.manifest.res
TINY+2/源代码/tiny2/Debug/tiny2.exe.intermediate.manifest
TINY+2/源代码/tiny2/Debug/UTIL.obj
TINY+2/源代码/tiny2/Debug/vc90.idb
TINY+2/源代码/tiny2/Debug/vc90.pdb
TINY+2/源代码/tiny2/GLOBALS.H
TINY+2/源代码/tiny2/lab1sample.tny
TINY+2/源代码/tiny2/LEX/
TINY+2/源代码/tiny2/LEX/TINY.L
TINY+2/源代码/tiny2/MAIN.C
TINY+2/源代码/tiny2/PARSE.C
TINY+2/源代码/tiny2/PARSE.H
TINY+2/源代码/tiny2/README.DOS
TINY+2/源代码/tiny2/sample+.tm
TINY+2/源代码/tiny2/SAMPLE+.TNY
TINY+2/源代码/tiny2/SAMPLE.TM
TINY+2/源代码/tiny2/SAMPLE.TNY
TINY+2/源代码/tiny2/SAMPLE2.TNY
TINY+2/源代码/tiny2/SCAN.C
TINY+2/源代码/tiny2/SCAN.H
TINY+2/源代码/tiny2/SYMTAB.C
TINY+2/源代码/tiny2/SYMTAB.H
TINY+2/源代码/tiny2/tiny2.vcproj
TINY+2/源代码/tiny2/tiny2.vcproj.GAVIN-NB.GAVIN.user
TINY+2/源代码/tiny2/TM.C
TINY+2/源代码/tiny2/UTIL.C
TINY+2/源代码/tiny2/UTIL.H
TINY+2/源代码/tiny2/YACC/
TINY+2/源代码/tiny2/YACC/GLOBALS.H
TINY+2/源代码/tiny2/YACC/TINY.Y
TINY+2/源代码/tiny2.ncb
TINY+2/源代码/tiny2.sln
TINY+2/源代码/tiny2.suo
TINY+1/TINY+实验报告.doc
TINY+1/源代码/
TINY+1/源代码/Debug/
TINY+1/源代码/Debug/tiny.exe
TINY+1/源代码/Debug/tiny.ilk
TINY+1/源代码/Debug/tiny.pdb
TINY+1/源代码/tiny/
TINY+1/源代码/tiny/ANALYZE.C
TINY+1/源代码/tiny/ANALYZE.H
TINY+1/源代码/tiny/CGEN.C
TINY+1/源代码/tiny/CGEN.H
TINY+1/源代码/tiny/CODE.C
TINY+1/源代码/tiny/CODE.H
TINY+1/源代码/tiny/Debug/
TINY+1/源代码/tiny/Debug/ANALYZE.obj
TINY+1/源代码/tiny/Debug/BuildLog.htm
TINY+1/源代码/tiny/Debug/CGEN.obj
TINY+1/源代码/tiny/Debug/CODE.obj
TINY+1/源代码/tiny/Debug/MAIN.obj
TINY+1/源代码/tiny/Debug/mt.dep
TINY+1/源代码/tiny/Debug/PARSE.obj
TINY+1/源代码/tiny/Debug/scan.obj
TINY+1/源代码/tiny/Debug/SYMTAB.obj
TINY+1/源代码/tiny/Debug/tiny.exe.embed.manifest
TINY+1/源代码/tiny/Debug/tiny.exe.embed.manifest.res
TINY+1/源代码/tiny/Debug/tiny.exe.intermediate.manifest
TINY+1/源代码/tiny/Debug/TM.obj
TINY+1/源代码/tiny/Debug/UTIL.obj
TINY+1/源代码/tiny/Debug/vc90.idb
TINY+1/源代码/tiny/Debug/vc90.pdb
TINY+1/源代码/tiny/GLOBALS.H
TINY+1/源代码/tiny/lab1sample.tny
TINY+1/源代码/tiny/LEX/
TINY+1/源代码/tiny/LEX/TINY.L
TINY+1/源代码/tiny/MAIN.C
TINY+1/源代码/tiny/MAKEFILE
TINY+1/源代码/tiny/PARSE.C
TINY+1/源代码/tiny/PARSE.H
TINY+1/源代码/tiny/README.DOS
TINY+1/源代码/tiny/sample+.tm
TINY+1/源代码/tiny/SAMPLE+.TNY
TINY+1/源代码/tiny/SAMPLE.TM
TINY+1/源代码/tiny/SAMPLE.TNY
TINY+1/源代码/tiny/SAMPLE2.TNY
TINY+1/源代码/tiny/SCAN.C
TINY+1/源代码/tiny/SCAN.H
TINY+1/源代码/tiny/SYMTAB.C
TINY+1/源代码/tiny/SYMTAB.H
TINY+1/源代码/tiny/TINY.EXE
TINY+1/源代码/tiny/tiny.vcproj
TINY+1/源代码/tiny/tiny.vcproj.B3-138-055.Administrator.user
TINY+1/源代码/tiny/tiny.vcproj.GAVIN-NB.GAVIN.user
TINY+1/源代码/tiny/TM.C
TINY+1/源代码/tiny/TM.EXE
TINY+1/源代码/tiny/UTIL.C
TINY+1/源代码/tiny/UTIL.H
TINY+1/源代码/tiny/YACC/
TINY+1/源代码/tiny/YACC/GLOBALS.H
TINY+1/源代码/tiny/YACC/TINY.Y
TINY+1/源代码/tiny.ncb
TINY+1/源代码/tiny.sln
TINY+1/源代码/tiny.suo

相关说明

  • 本站资源为会员上传分享交流与学习,如有侵犯您的权益,请联系我们删除.
  • 搜珍网是交换下载平台,只提供交流渠道,下载内容来自于网络,除下载问题外,其它问题请自行百度。更多...
  • 本站已设置防盗链,请勿用迅雷、QQ旋风等下载软件下载资源,下载后用WinRAR最新版进行解压.
  • 如果您发现内容无法下载,请稍后再次尝试;或换浏览器;或者到消费记录里找到下载记录反馈给我们.
  • 下载后发现下载的内容跟说明不相乎,请到消费记录里找到下载记录反馈给我们,经确认后退回积分.
  • 如下载前有疑问,可以通过点击"提供者"的名字,查看对方的联系方式,联系对方咨询.

相关评论

暂无评论内容.

发表评论

*快速评论: 推荐 一般 有密码 和说明不符 不是源码或资料 文件不全 不能解压 纯粹是垃圾
*内  容:
*验 证 码:
搜珍网 www.dssz.com