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




















 

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

    合肥圖文信息
    急尋熱仿真分析?代做熱仿真服務+熱設計優化
    急尋熱仿真分析?代做熱仿真服務+熱設計優化
    出評 開團工具
    出評 開團工具
    挖掘機濾芯提升發動機性能
    挖掘機濾芯提升發動機性能
    海信羅馬假日洗衣機亮相AWE  復古美學與現代科技完美結合
    海信羅馬假日洗衣機亮相AWE 復古美學與現代
    合肥機場巴士4號線
    合肥機場巴士4號線
    合肥機場巴士3號線
    合肥機場巴士3號線
    合肥機場巴士2號線
    合肥機場巴士2號線
    合肥機場巴士1號線
    合肥機場巴士1號線
  • 短信驗證碼 豆包 幣安下載 AI生圖 目錄網

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

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

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

          9000px;">

                欧美一区二区视频观看视频| 首页综合国产亚洲丝袜| 在线免费观看一区| 国产成人福利片| 国产又黄又大久久| 麻豆精品一区二区三区| 日本最新不卡在线| 美女在线视频一区| 精品一区二区免费看| 蓝色福利精品导航| 久久99精品国产麻豆不卡| 麻豆成人av在线| 久久激情综合网| 久久成人免费网| 国产一区二区免费视频| 国产传媒日韩欧美成人| 国产乱码一区二区三区| 处破女av一区二区| av亚洲精华国产精华精华| 91首页免费视频| 欧美午夜精品久久久久久超碰 | 国产精品一区二区在线观看不卡| 国产在线不卡一区| 国产精品亚洲第一| 99久久伊人精品| 欧美日韩不卡视频| 2019国产精品| 国产精品不卡视频| 午夜欧美视频在线观看| 男女激情视频一区| 成人av在线资源网站| 欧美日韩三级一区二区| 久久亚洲一区二区三区明星换脸| 国产精品女人毛片| 日韩和欧美一区二区| 风间由美性色一区二区三区| 在线观看一区不卡| 久久嫩草精品久久久久| 亚洲日韩欧美一区二区在线| 秋霞国产午夜精品免费视频| 成人精品高清在线| 欧美伦理视频网站| 国产日韩欧美高清在线| 亚洲另类在线制服丝袜| 久久99精品久久久久婷婷| 91啪九色porn原创视频在线观看| 欧美电影在哪看比较好| 欧美国产精品一区二区| 天堂va蜜桃一区二区三区| 成人精品免费看| 精品国精品国产| 亚洲伊人色欲综合网| 福利91精品一区二区三区| 日韩女优av电影在线观看| 亚洲精品国产高清久久伦理二区| 国内精品伊人久久久久av影院 | 五月综合激情日本mⅴ| 国产自产v一区二区三区c| 欧美性受xxxx| 亚洲免费资源在线播放| 国产91精品久久久久久久网曝门| 欧美一区二区日韩一区二区| 亚洲激情图片小说视频| 国产成人精品网址| 亚洲精品在线网站| 免费在线观看精品| 欧美三级日韩三级| 依依成人精品视频| 成人教育av在线| 欧美国产激情二区三区| 狠狠v欧美v日韩v亚洲ⅴ| 4438x亚洲最大成人网| 亚洲成人激情社区| 欧美性受xxxx黑人xyx性爽| 亚洲女人的天堂| 一本大道综合伊人精品热热| 国产精品无人区| 成人免费视频app| 国产精品福利影院| 一本大道久久a久久综合| 亚洲美腿欧美偷拍| 一道本成人在线| 亚洲午夜在线观看视频在线| 色综合天天综合狠狠| 伊人夜夜躁av伊人久久| 欧美伊人久久大香线蕉综合69| 一区二区在线看| 精品视频一区二区三区免费| 日日噜噜夜夜狠狠视频欧美人| 欧美精品视频www在线观看| 免费xxxx性欧美18vr| 欧美mv日韩mv国产网站| 国产河南妇女毛片精品久久久| 国产人成一区二区三区影院| 成人av在线资源网| 亚洲一卡二卡三卡四卡无卡久久| 欧美系列在线观看| 麻豆91在线观看| 国产精品久久久久久久蜜臀 | 色哟哟一区二区在线观看| 亚洲欧美日韩成人高清在线一区| 91福利在线导航| 亚洲成人动漫av| 欧美不卡123| 欧美videos中文字幕| 99久久精品国产导航| 成人小视频免费观看| 欧美日韩一区视频| 欧美激情在线看| 国产成人av影院| 欧美不卡123| 日韩一区精品字幕| 成人av资源在线| 国产亚洲精品中文字幕| 久久激情五月婷婷| 日韩一区二区电影在线| 亚洲精品国产一区二区三区四区在线 | 日韩精品每日更新| 欧美伊人久久大香线蕉综合69| 久久久久久9999| 国产又粗又猛又爽又黄91精品| 欧美日韩成人激情| 香蕉av福利精品导航| 91麻豆国产福利在线观看| 国产精品污网站| 99精品一区二区三区| 亚洲免费观看视频| 欧美在线色视频| 亚洲第一福利一区| 91麻豆精品国产91久久久久久久久| 亚洲午夜在线观看视频在线| 欧洲av一区二区嗯嗯嗯啊| 婷婷激情综合网| 精品久久人人做人人爱| 国产精品系列在线观看| 中文字幕日韩精品一区| 欧美日韩高清在线播放| 韩国一区二区视频| 亚洲精选在线视频| 欧美视频一区在线观看| 国产一区在线不卡| 亚洲综合免费观看高清完整版在线 | 青青草原综合久久大伊人精品优势| 欧美精品在线一区二区三区| 韩国中文字幕2020精品| 亚洲一线二线三线久久久| 久久久久久一二三区| 欧美视频在线一区| 99精品视频在线免费观看| 美女网站色91| 日韩国产欧美一区二区三区| 亚洲丝袜另类动漫二区| 国产亚洲一区二区在线观看| 欧美日产国产精品| 91成人免费网站| 成人美女视频在线观看| 国产精品综合在线视频| 日本人妖一区二区| 免费成人av资源网| 日本免费在线视频不卡一不卡二| 国产精品久久久久久久午夜片 | 色先锋久久av资源部| 成人国产免费视频| a亚洲天堂av| 日本久久一区二区| 欧美午夜电影一区| 欧美日韩国产在线观看| 欧美精品久久一区| 日韩欧美一区二区三区在线| 538prom精品视频线放| 欧美变态tickling挠脚心| 欧美va在线播放| 综合激情成人伊人| 免费欧美在线视频| 丁香另类激情小说| 在线日韩av片| 国产女人18水真多18精品一级做| 国产视频亚洲色图| 亚洲视频在线观看一区| 成人免费在线观看入口| 久久精品噜噜噜成人av农村| 久久99在线观看| 91浏览器在线视频| 精品久久久网站| 一区二区三区在线视频观看| 欧美aⅴ一区二区三区视频| 国产美女娇喘av呻吟久久| 91年精品国产| 精品国产一区二区三区久久久蜜月 | 欧美日韩在线播放三区| 久久久精品国产免大香伊| 亚洲男人的天堂一区二区| 精品中文字幕一区二区小辣椒| 99精品国产一区二区三区不卡| 日韩视频不卡中文| 亚洲va在线va天堂| 99精品热视频| 久久久影视传媒| 精品一区二区三区在线播放视频| 欧美日韩亚州综合|