CodeBus
www.codebus.net
Search
Sign in
Sign up
Hot Search :
Source
embeded
web
remote control
p2p
game
More...
Location :
Home
Search - tiny-parse
Main Category
SourceCode
Documents
Books
WEB Code
Develop Tools
Other resource
Search - tiny-parse - List
[
ELanguage
]
tiny-parse
DL : 0
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->+ |-
Date
: 2025-07-02
Size
: 1.21mb
User
:
gavinfeng
[
ELanguage
]
compile
DL : 0
这是一个带MFC界面的tiny+语言编译器,当中实现了17个关键字,包括词法分析,语法分析,语义分析,生成语法分析树等功能-This is a tiny+ with MFC interface language compiler, which achieved a 17 keywords, including lexical analysis, syntax analysis, semantic analysis, generating parse trees and other functions
Date
: 2025-07-02
Size
: 13.49mb
User
:
罗洛
[
xml-soap-webservice
]
XmlTree
DL : 0
MFC把xml文档解析,显示在一个树形控件中,可进行增删改,保存操作,用到tiny库-MFC parse the xml document displayed in a tree control, add or delete can be changed, the save operation, use the tiny library
Date
: 2025-07-02
Size
: 20.41mb
User
:
hongwei
[
Internet-Network
]
tiny
DL : 0
最简单的WEB服务器,自动解析资源,实现调用静态网页-The easiest Web server automatically parse resources to achieve call static pages
Date
: 2025-07-02
Size
: 49kb
User
:
andy yang
CodeBus
is one of the largest source code repositories on the Internet!
Contact us :
1999-2046
CodeBus
All Rights Reserved.