国产人妻人伦精品_欧美一区二区三区图_亚洲欧洲久久_日韩美女av在线免费观看

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

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




















 

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

    合肥圖文信息
    流體仿真外包多少錢_專業CFD分析代做_友商科技CAE仿真
    流體仿真外包多少錢_專業CFD分析代做_友商科
    CAE仿真分析代做公司 CFD流體仿真服務 管路流場仿真外包
    CAE仿真分析代做公司 CFD流體仿真服務 管路
    流體CFD仿真分析_代做咨詢服務_Fluent 仿真技術服務
    流體CFD仿真分析_代做咨詢服務_Fluent 仿真
    結構仿真分析服務_CAE代做咨詢外包_剛強度疲勞振動
    結構仿真分析服務_CAE代做咨詢外包_剛強度疲
    流體cfd仿真分析服務 7類仿真分析代做服務40個行業
    流體cfd仿真分析服務 7類仿真分析代做服務4
    超全面的拼多多電商運營技巧,多多開團助手,多多出評軟件徽y1698861
    超全面的拼多多電商運營技巧,多多開團助手
    CAE有限元仿真分析團隊,2026仿真代做咨詢服務平臺
    CAE有限元仿真分析團隊,2026仿真代做咨詢服
    釘釘簽到打卡位置修改神器,2026怎么修改定位在范圍內
    釘釘簽到打卡位置修改神器,2026怎么修改定
  • 短信驗證碼 豆包網頁版入口 破天一劍 目錄網 排行網

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

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

    国产人妻人伦精品_欧美一区二区三区图_亚洲欧洲久久_日韩美女av在线免费观看
    日韩视频免费播放| 国内免费久久久久久久久久久| 日本一区二区不卡高清更新| 国产美女精品视频免费观看| 国产精品视频免费观看| 日本在线高清视频一区| 99精品国产一区二区| 国产精品久久中文字幕| 欧美伊久线香蕉线新在线| 久久这里只有精品8| 亚洲在线第一页| 国产日韩欧美成人| 欧美成人第一页| 国内精品免费午夜毛片| 国产精品美女在线播放| 男人亚洲天堂网| 国产精品欧美久久| 国内一区二区三区在线视频| 久久精品国产成人| 欧美久久在线观看| 久久精品国产一区二区电影| 青青在线免费观看| 久久久久免费看黄a片app| 日本在线播放不卡| 久久精品国产sm调教网站演员| 日本一道本久久| 久久久久久久久久久久av| 欧美一级视频免费看| 日本欧美精品久久久| 亚洲熟妇av日韩熟妇在线| 免费97视频在线精品国自产拍| 欧美极品欧美精品欧美| 视频一区二区三区免费观看| 日本亚洲导航| 亚洲中文字幕无码av永久| 国产伦精品一区二区三区视频免费| 久久成人av网站| 激情综合在线观看| 插插插亚洲综合网| 91国产丝袜在线放| 亚洲最大福利视频网| 中文字幕一区二区三区乱码 | 日韩日韩日韩日韩日韩| 九色在线视频观看| 国产精品入口日韩视频大尺度 | 欧美做受777cos| 欧洲亚洲一区二区三区四区五区| 久久久久久久久久码影片| 国产成人在线精品| 青青青免费在线| 国产精品欧美激情在线观看| 国产人妖伪娘一区91| 亚洲精品无人区| www.久久撸.com| 国产一区二区高清不卡| 午夜精品一区二区三区四区| 日韩天堂在线视频| 国产美女主播在线播放| 日韩av电影中文字幕| 国产精品视频大全| 91精品91久久久中77777老牛| 欧美一性一乱一交一视频| 欧美激情区在线播放| 69久久夜色精品国产69 | 北条麻妃99精品青青久久| 欧美在线一级va免费观看| 无码人妻精品一区二区三区99v| 国产99在线播放| 国产精品高清一区二区三区| 久久久久久久久久久免费| 8090成年在线看片午夜| 隔壁老王国产在线精品| 国产一区精品在线| 欧美国产综合在线| 日韩免费中文字幕| 少妇av一区二区三区无码| 在线天堂一区av电影| 色综合久久精品亚洲国产| 国产精品美女免费看| 久久久国产91| 日韩视频―中文字幕| 久久精彩视频| 国产不卡在线观看| 国产freexxxx性播放麻豆| 久久人人九九| 久久男人资源视频| 久久久久国产精品熟女影院| 国产精品.com| 久久免费一级片| 久久免费精品日本久久中文字幕| 国产精品99导航| 久久精品香蕉视频| 久久久一二三四| 久久综合九九| 久久99精品久久久久久久久久| 国产成人a亚洲精品| 久久精品综合一区| 久久久久久香蕉| 久久精品这里热有精品| 国产精品久久久久久影视| 久久综合免费视频| 欧美激情18p| 亚洲一区三区视频在线观看| 亚洲国产高清国产精品| 偷拍盗摄高潮叫床对白清晰| 色一情一乱一伦一区二区三区| 日本欧美中文字幕| 人偷久久久久久久偷女厕| 欧美一区二区影视| 免费拍拍拍网站| 国产日韩视频在线观看| 成人av.网址在线网站| 久久影视中文粉嫩av| 久久久久久伊人| 国产精品久久不能| 亚洲中文字幕无码专区| 日本福利视频网站| 免费看欧美一级片| 高清国产一区| 国产不卡一区二区三区在线观看 | 91精品国产自产91精品| 久久精品免费一区二区| 久久精品久久久久久| 欧美成年人视频网站| 亚洲在线一区二区| 日韩美女免费视频| 国产资源在线免费观看| 99电影在线观看| 日韩中文字幕第一页| 久久99国产精品自在自在app| 亚洲国产欧洲综合997久久| 欧美一级二级三级九九九| 国产日产欧美a一级在线| 91超碰中文字幕久久精品| 国产成人免费av电影| 色综合久久中文字幕综合网小说| 日韩中文字幕一区| 国产在线视频91| 国产成人一区二区| 欧美xxxx14xxxxx性爽| 日本一区二区三区www| 国产在线视频一区| 国产成人黄色av| 欧美日本亚洲视频| 任我爽在线视频精品一| 国产精选一区二区| www.日韩不卡电影av| 欧美激情精品久久久久久黑人| 日本午夜人人精品| 国产精品中出一区二区三区| 久久9精品区-无套内射无码| 色综合久久天天综线观看| 热久久免费视频精品| αv一区二区三区| 国产精品久久久久久久久久久久冷 | 欧美日本精品在线| 日韩不卡一二区| 国产伦精品一区二区三区高清 | 国产伦视频一区二区三区| 深夜福利国产精品| 一本久久a久久精品vr综合 | 极品粉嫩国产18尤物| 国产精品91在线| 精品久久久久久乱码天堂| 日韩国产一区久久| 91精品在线播放| 久国内精品在线| 欧美成ee人免费视频| 久久青草福利网站| 亚洲淫片在线视频| 国产午夜精品视频一区二区三区| 国产av无码专区亚洲精品| 亚洲综合色激情五月| 国产一区二区在线网站| 色噜噜狠狠狠综合曰曰曰88av| 亚洲精品一区二区三区四区五区 | 国产在线播放不卡| 国产精品男人的天堂| 日本成人在线不卡| 久久青青草综合| 亚洲精品欧美一区二区三区| 国产精品一区二区欧美| 欧美乱人伦中文字幕在线| 精品欧美一区二区精品久久 | 亚洲第一综合| 操人视频欧美| 中日韩在线视频| 国产免费一区二区三区视频| 国产精品美女久久久久久免费| 欧美亚洲丝袜| 日韩中文字幕视频在线观看| 日本在线成人一区二区| 久久琪琪电影院| 欧美一级在线播放| 久久香蕉综合色| 日日噜噜噜夜夜爽爽| 久久亚洲一区二区| 日韩中文在线字幕| 国产激情在线观看视频| 日韩精品久久一区二区|