国产人妻人伦精品_欧美一区二区三区图_亚洲欧洲久久_日韩美女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在线免费观看
    久久久久久久久91| 精品卡一卡二| 日韩在线国产| 久久精品美女| 欧美亚洲成人网| 国产精品高清免费在线观看| 国产欧美日韩小视频| 在线免费观看一区二区三区| 77777亚洲午夜久久多人| 日本精品二区| 国产精品视频在线播放| 国产色一区二区三区| 亚洲综合中文字幕在线观看| 97人人模人人爽人人喊中文字| 午夜精品美女自拍福到在线| 色999日韩欧美国产| 国产一区喷水| 无码人妻丰满熟妇区96| 久久久精品久久| 国产一级片黄色| 亚洲 欧美 日韩 国产综合 在线| 少妇精69xxtheporn| 国内精品400部情侣激情| 一道本在线观看视频| 久久精品国产精品青草色艺| 麻豆精品传媒视频| 天堂资源在线亚洲视频| 按摩亚洲人久久| 国产无套内射久久久国产| 亚洲精品免费网站| 国产精品丝袜一区二区三区| www.欧美黄色| 欧美日韩性生活片| 亚洲欧美日韩另类精品一区二区三区| 色伦专区97中文字幕| 国产精品午夜av在线| 日本999视频| 欧美激情第三页| 久久久久久久免费| 成人免费在线网| 欧美亚洲国产另类| 亚洲xxxx视频| 久久五月天综合| 91精品国产91久久久久久久久 | 亚洲五码在线观看视频| 日韩亚洲一区二区| www.浪潮av.com| 国模吧无码一区二区三区| 色噜噜色狠狠狠狠狠综合色一| 精品中文字幕在线| 日韩中文字幕免费看| 97免费视频在线| 国产一区福利视频| 青青草原一区二区| 天天操天天干天天玩| 在线免费一区| 久久综合久久八八| 久草精品电影| 国产精品aaa| www.欧美黄色| 国产伦精品一区二区三区免 | 91精品在线观| 久久综合九色综合88i| 日韩视频第二页| 川上优av一区二区线观看| 欧美激情中文网| 国产精品私拍pans大尺度在线| 成人国产精品日本在线| 免费看黄色a级片| 欧美乱大交xxxxx| 久久综合精品一区| 国产日韩欧美亚洲一区| 日本一级黄视频| 国产aaa精品| 日韩免费电影一区二区三区| 国产精品二区二区三区| 久热99视频在线观看| 国产成人亚洲综合91精品| 91久久精品www人人做人人爽| 国产欧美一区二区三区久久人妖| 黄页免费在线观看视频| 国产精品亚洲片夜色在线| 中文字幕成人一区| 久青草国产97香蕉在线视频| 91精品在线国产| 国产在线精品一区| 品久久久久久久久久96高清| 99久久精品无码一区二区毛片 | 91久久精品久久国产性色也91| 成人91免费视频| 成人av色在线观看| 99伊人久久| 99久久免费国| 91福利视频网| yellow视频在线观看一区二区| 99精品一级欧美片免费播放| 99在线观看视频免费| 91高清免费在线观看| 国产成人精品久久二区二区| 久久久久久久久久网| 播播国产欧美激情| 国产精品视频精品| 久久在线精品视频| 一区二区三区在线视频看| 亚洲国产精品日韩| 日本一区二区三区视频在线播放| 日韩精品第一页| 免费国产黄色网址| 国产精品一区二区三区观看| 成人国产精品久久久久久亚洲| 国产日韩欧美精品在线观看| 天天久久人人| 播播国产欧美激情| 久久国产日韩欧美| 久久久中精品2020中文| 91精品视频播放| 97国产一区二区精品久久呦| 国产免费一区二区视频| 国产日韩亚洲欧美在线| 国内精品伊人久久| 国内自拍中文字幕| 好吊色欧美一区二区三区四区| 欧美精品一区二区三区久久 | 91国产在线精品| 91久久国产精品91久久性色| 99久久国产免费免费| 阿v天堂2017| 91国产美女在线观看| 久久网站免费视频| 国产极品尤物在线| 国产成人精品国内自产拍免费看| 久久艳妇乳肉豪妇荡乳av| 国产成人a亚洲精品| 69av在线视频| 久久久久久欧美| 日韩中文字幕国产| 久久精品一偷一偷国产| 国产精品丝袜久久久久久不卡| 国产精品偷伦免费视频观看的 | 久久av二区| 日韩中文字幕视频| 亚洲bt天天射| 蜜桃日韩视频| 久久亚洲一区二区| 国产精品第一页在线| 午夜精品99久久免费| 国产肉体ⅹxxx137大胆| 国产伦精品一区二区三区照片| 91精品国产自产在线老师啪| 久久久人成影片一区二区三区| 日韩一区二区久久久| 日韩精品久久一区二区三区| 国产欧美精品一区二区三区| 国产白丝袜美女久久久久| 精品国产一区二区三区麻豆免费观看完整版 | 亚洲国产欧美一区二区三区不卡 | 亚洲精品偷拍视频| 国产一区二区三区播放| 日日噜噜噜夜夜爽亚洲精品| 正在播放国产精品| 黄色大片在线免费看| 国产极品精品在线观看| 欧美激情国产精品| 欧美连裤袜在线视频| 国产成人亚洲综合青青| 一区二区三区免费看| 加勒比在线一区二区三区观看| 777久久精品一区二区三区无码| 精品不卡在线| 免费在线观看一区二区| 国产成人在线小视频| 中文字幕制服丝袜在线| 好吊色欧美一区二区三区| 九九九九九九精品| 亚洲第一综合网站| 国产毛片视频网站| 国产精品久久久久9999爆乳| 日韩免费毛片| 国产精品99免视看9| 在线一区亚洲| 国产美女精品免费电影| 国产精品二区二区三区| 含羞草久久爱69一区| 久久精品小视频| 欧洲精品在线视频| 色婷婷综合久久久久| 日本午夜在线亚洲.国产| 久久最新免费视频| 天天好比中文综合网| 97国产在线视频| 一本一本a久久| 成人在线观看毛片| 久久久久久成人精品| 麻豆av免费在线| 国产精品久久成人免费观看| 欧美成人精品欧美一级乱| 久久久久北条麻妃免费看| 欧美日韩国产不卡在线看| 久久久国产一区二区三区| 欧美亚洲国产另类|