99爱在线视频这里只有精品_窝窝午夜看片成人精品_日韩精品久久久毛片一区二区_亚洲一区二区久久

合肥生活安徽新聞合肥交通合肥房產生活服務合肥教育合肥招聘合肥旅游文化藝術合肥美食合肥地圖合肥社保合肥醫院企業服務合肥法律

COMPILER代做、代寫C/C++設計編程

時間:2024-06-12  來源:合肥網hfw.cc  作者:hfw.cc 我要糾錯



COMPILER PROJECT 2024 
 
The goal of the term-project is to implement a bottom-up syntax analyzer (a.k.a., parser) as we’ve 
learned. More specifically, you will implement the syntax analyzer for a simplified C programming 
language with the following context free grammar G; 
CFG G: 
01: CODE → VDECL CODE | FDECL CODE | ϵ 
02: VDECL → vtype id semi | vtype ASSIGN semi 
03: ASSIGN → id assign RHS 
04: RHS → EXPR | literal | character | boolstr 
05: EXPR → EXPR addsub EXPR | EXPR multdiv EXPR 
06: EXPR → lparen EXPR rparen | id | num 
07: FDECL → vtype id lparen ARG rparen lbrace BLOCK RETURN rbrace 
08: ARG → vtype id MOREARGS | ϵ 
09: MOREARGS → comma vtype id MOREARGS | ϵ 
10: BLOCK → STMT BLOCK | ϵ 
11: STMT → VDECL | ASSIGN semi 
12: STMT → if lparen COND rparen lbrace BLOCK rbrace ELSE 
13: STMT → while lparen COND rparen lbrace BLOCK rbrace 
14: COND → COND comp COND | boolstr 
15: ELSE → else lbrace BLOCK rbrace | ϵ 
16: RETURN → return RHS semi 
 
✓ Terminals (21) 
1. vtype for the types of variables and functions 
2. num for signed integers 
3. character for a single character 
4. boolstr for Boolean strings 
5. literal for literal strings 
6. id for the identifiers of variables and functions 
7. if, else, while, and return for if, else, while, and return statements respectively 8. class for class declarations 
9. addsub for + and - arithmetic operators 
10. multdiv for * and / arithmetic operators 
11. assign for assignment operators 
12. comp for comparison operators 
13. semi and comma for semicolons and commas respectively 
14. lparen, rparen, lbrace, and rbrace for (, ), {, and } respectively 
✓ Non-terminals (13) 
CODE, VDECL, ASSIGN, RHS, EXPR, FDECL, ARG, MOREARGS, BLOCK, STMT, COND, ELSE, 
RETURN 
✓ Start symbol: CODE 
 
Descriptions 
✓ The given CFG G is non-left recursive, but ambiguous. 
✓ Codes include zero or more declarations of functions and variables (CFG line 1) 
✓ Variables are declared with or without initialization (CFG line 2 ~ 3) 
✓ The right hand side of assignment operations can be classified into four types; 1) arithmetic 
operations (expressions), 2) literal strings, 3) a single character, and 4) Boolean strings (CFG 
4) 
✓ Arithmetic operations are the combinations of +, -, *, / operators (CFG line 5 ~ 6) 
✓ Functions can have zero or more input arguments (CFG line 7 ~ 9) 
✓ Function blocks include zero or more statements (CFG line 10) 
✓ There are four types of statements: 1) variable declarations, 2) assignment operations, 3) ifelse
 statements, and 4) while statements (CFG line 11 ~ 13) 
✓ if and while statements include a conditional operation which consists of Boolean strings 
and condition operators (CFG line 12 ~ 14) ✓ if statements can be used with or without an else statement (CFG line 12 & 15) 
✓ return statements return 1) the computation result of arithmetic operations, 2) literal strings, 
3) a single character, or 4) Boolean strings (CFG line 16) 
✓ This is not a CFG for C. This is for simplified C. So, you don’t need to consider grammars 
and structures not mentioned in this specification. 
 
Based on this CFG, you should implement a bottom-up parser as follows: 
✓ Discard an ambiguity in the CFG 
✓ Construct a SLR parsing table for the non-ambiguous CFG through the following website: 
http://jsmachines.sourceforge.net/machines/slr.html 
✓ Implement a SLR parsing program for the simplified Java programming language by using the 
constructed table. 
 
For the implementation, please use C, C++, or Python (If you want to use . Your syntax analyzer 
must run on Linux or Unix-like OS without any error. 
Your syntax analyzer should work as follows: 
✓ The execution flow of your syntax analyzer: 
syntax_analyzer <input file> 
✓ Input: A sequence of tokens (terminals) written in the input file 
e.g., vtype id semi vtype id lparen rparen lbrace if lparen boolstr comp boolstr rparen lbrace 
rbrace 
✓ Output 
◼ (If a parsing decision output is “accept”) please construct a parse tree (not abstract 
syntax tree) for the input sequence 
◆ You can design the data structure to represent the tree as you want. 
◼ (If an output is “reject”) please make an error report which explains why and where the error occurred (e.g., line number) 
 
Term-project schedule and submission 
✓ Deadline: 6/9, 23:59 (through an e-class system) 
◼ For a delayed submission, you will lose 0.1 * your original project score per each 
delayed day 
✓ Submission file: team_<your_team_number>.zip or .tar.gz 
◼ The compressed file should contain 
◆ The source code of your syntax analyzer with detailed comments 
◆ The executable binary file of your syntax analyzer (if you implemented using 
a complied language) 
◆ Documentation (the most important thing!) 
⚫ It must include 1) your non-ambiguous CFG G and 2) your SLR parsing table 
⚫ It must also include any change in the CFG G and all about how your syntax 
analyzer works for validating token sequences (for example, overall 
procedures, implementation details like algorithms and data structures, 
working examples, and so on) 
◆ Test input files and outputs which you used in this project 
⚫ The test input files are not given. You should make the test files, by yourself, 
which can examine all the syntax grammars. 

請加QQ:99515681  郵箱:99515681@qq.com   WX:codinghelp




















 

掃一掃在手機打開當前頁
  • 上一篇:什么地方辦越南簽證最快(越南電子簽證多長時間能拿到)
  • 下一篇:菲律賓留學生簽證過期(學生簽過期解決方式)
  • 無相關信息
    合肥生活資訊

    合肥圖文信息
    2025年10月份更新拼多多改銷助手小象助手多多出評軟件
    2025年10月份更新拼多多改銷助手小象助手多
    有限元分析 CAE仿真分析服務-企業/產品研發/客戶要求/設計優化
    有限元分析 CAE仿真分析服務-企業/產品研發
    急尋熱仿真分析?代做熱仿真服務+熱設計優化
    急尋熱仿真分析?代做熱仿真服務+熱設計優化
    出評 開團工具
    出評 開團工具
    挖掘機濾芯提升發動機性能
    挖掘機濾芯提升發動機性能
    海信羅馬假日洗衣機亮相AWE  復古美學與現代科技完美結合
    海信羅馬假日洗衣機亮相AWE 復古美學與現代
    合肥機場巴士4號線
    合肥機場巴士4號線
    合肥機場巴士3號線
    合肥機場巴士3號線
  • 短信驗證碼 目錄網 排行網

    關于我們 | 打賞支持 | 廣告服務 | 聯系我們 | 網站地圖 | 免責聲明 | 幫助中心 | 友情鏈接 |

    Copyright © 2025 hfw.cc Inc. All Rights Reserved. 合肥網 版權所有
    ICP備06013414號-3 公安備 42010502001045

    99爱在线视频这里只有精品_窝窝午夜看片成人精品_日韩精品久久久毛片一区二区_亚洲一区二区久久

          9000px;">

                欧美成人一级视频| 亚洲成人一区二区在线观看| 一区二区三区在线看| 91麻豆6部合集magnet| 亚洲精品中文在线影院| 欧美日韩在线免费视频| 久久国产人妖系列| 国产精品电影院| 5月丁香婷婷综合| 国产成人精品1024| 亚洲激情自拍视频| 国产亚洲综合av| 欧美日韩日本视频| 成人视屏免费看| 一区二区三区不卡在线观看| 日韩欧美的一区二区| 色哟哟日韩精品| 国产成人三级在线观看| 亚洲高清视频在线| 亚洲视频免费观看| 日韩视频免费观看高清完整版在线观看| 日本乱码高清不卡字幕| 夜夜精品浪潮av一区二区三区| 日韩欧美色综合| 在线免费观看日韩欧美| 国产成人8x视频一区二区| 五月婷婷综合网| 中文字幕综合网| 久久久久久久久久看片| 欧美一级爆毛片| 欧美性色aⅴ视频一区日韩精品| 国产精品系列在线观看| 麻豆视频观看网址久久| 亚洲精品日日夜夜| 国产精品美女久久久久高潮| 精品国产伦理网| 欧美一卡二卡在线| 欧美老肥妇做.爰bbww| 在线视频国内一区二区| 国产精品一区二区久久精品爱涩| 免费观看30秒视频久久| 日本特黄久久久高潮| 亚洲美女电影在线| 17c精品麻豆一区二区免费| 久久噜噜亚洲综合| 欧美精品一区二区精品网| 日韩一二三区视频| 欧美一级高清大全免费观看| 欧美区一区二区三区| 欧美乱熟臀69xxxxxx| 欧美日本在线视频| 日韩一区二区在线看片| 日韩欧美国产综合在线一区二区三区| 欧美挠脚心视频网站| 欧美日韩精品一区二区天天拍小说| 欧美影院一区二区| 欧美日韩亚洲综合在线 | 91丝袜美腿高跟国产极品老师| 国产成人综合视频| 成人性生交大片免费看视频在线| 顶级嫩模精品视频在线看| eeuss鲁片一区二区三区| 91视频.com| 欧美日韩在线精品一区二区三区激情| 欧美日本在线视频| 久久亚洲精品国产精品紫薇| 国产日韩影视精品| 亚洲黄色免费网站| 麻豆成人av在线| 国产a级毛片一区| 在线一区二区视频| 日韩欧美精品三级| 亚洲视频在线一区观看| 午夜天堂影视香蕉久久| 激情六月婷婷久久| 久久亚洲二区三区| 国产精品毛片久久久久久久| 亚洲精品高清在线观看| 欧美aⅴ一区二区三区视频| 国产不卡高清在线观看视频| 欧美综合久久久| 国产日本一区二区| 一卡二卡欧美日韩| 国产麻豆精品视频| 91在线观看成人| 欧美tk—视频vk| 亚洲午夜成aⅴ人片| 国产精品中文字幕一区二区三区| 一本色道**综合亚洲精品蜜桃冫| 日韩欧美的一区二区| 亚洲男人电影天堂| 国产精一品亚洲二区在线视频| 色欧美乱欧美15图片| 26uuu色噜噜精品一区| 亚洲国产精品久久久久秋霞影院| 韩国理伦片一区二区三区在线播放| 一本色道久久综合亚洲91| 欧美大片在线观看一区| 亚洲精品国产品国语在线app| 国产精品亚洲а∨天堂免在线| 欧美亚男人的天堂| 国产精品区一区二区三区| 久久精品噜噜噜成人av农村| 色av成人天堂桃色av| 国产拍欧美日韩视频二区| 日本午夜一本久久久综合| 在线视频一区二区免费| 亚洲视频免费看| 成人精品小蝌蚪| 国产女人18毛片水真多成人如厕| 久久福利资源站| 精品蜜桃在线看| 日本欧美肥老太交大片| 3d成人h动漫网站入口| |精品福利一区二区三区| 成人黄色免费短视频| 久久精品在这里| 国产精品亚洲人在线观看| 久久亚洲一区二区三区四区| 精品一区二区三区免费视频| 欧美一级生活片| 久久丁香综合五月国产三级网站| 91精品国产一区二区三区| 日本在线观看不卡视频| 日韩三级免费观看| 麻豆精品精品国产自在97香蕉| 在线91免费看| 麻豆91在线播放| 欧美va亚洲va国产综合| 激情小说欧美图片| 国产亚洲精品bt天堂精选| 国产成人99久久亚洲综合精品| 国产精品天美传媒| 色综合久久久久综合| 亚洲国产精品久久久久秋霞影院 | 欧美一级xxx| 色偷偷88欧美精品久久久| 亚洲成人福利片| 精品国精品国产| 成人午夜又粗又硬又大| 一区在线中文字幕| 欧美日韩一区二区不卡| 久久99精品久久久久久国产越南 | 亚洲国产美女搞黄色| 91精品国产综合久久香蕉的特点 | 欧美福利视频导航| 美女一区二区久久| 国产日本欧洲亚洲| 91丨九色丨蝌蚪丨老版| 日本大胆欧美人术艺术动态| 国产日韩精品一区| 欧美三级资源在线| 国产精品一二三区在线| 亚洲午夜精品在线| 国产亚洲精品bt天堂精选| 欧美午夜电影网| 国产福利91精品一区二区三区| 亚洲精品高清在线| 久久网站热最新地址| 91成人在线精品| 国产剧情一区在线| 亚洲不卡在线观看| 亚洲欧美影音先锋| 日韩视频一区在线观看| 91欧美激情一区二区三区成人| 精品一区二区三区日韩| 亚洲电影第三页| 亚洲欧洲精品天堂一级| 日韩一级在线观看| 精品视频在线免费| 91丝袜美女网| 福利视频网站一区二区三区| 老司机精品视频一区二区三区| 一区二区三区毛片| 国产精品护士白丝一区av| 精品国产区一区| 欧美疯狂做受xxxx富婆| 色综合久久88色综合天天免费| 懂色av噜噜一区二区三区av| 国产一区二区网址| 麻豆成人av在线| 日韩制服丝袜先锋影音| 亚洲美女屁股眼交3| 欧美高清在线一区二区| www国产成人免费观看视频 深夜成人网 | 粉嫩一区二区三区在线看| 久久99精品国产91久久来源| 日韩综合小视频| 亚洲午夜在线观看视频在线| 亚洲免费av高清| 亚洲黄色av一区| 一区二区三区不卡在线观看| 亚洲色图第一区| 亚洲精品国产第一综合99久久| 中文字幕人成不卡一区| 国产精品成人一区二区艾草| 国产精品久久久久久久久搜平片| 日韩成人免费在线| 午夜一区二区三区在线观看| 夜夜亚洲天天久久|