文件名称:tiny-parse
-
所属分类:
- 标签属性:
- 上传时间:2012-11-16
-
文件大小:1.21mb
-
已下载:1次
-
提 供 者:
-
相关连接:无下载说明:别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容来自于网络,使用问题请自行百度
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->+ |-
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
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
本网站为编程资源及源代码搜集、介绍的搜索网站,版权归原作者所有! 粤ICP备11031372号
1999-2046 搜珍网 All Rights Reserved.