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;">

                1024国产精品| 麻豆一区二区在线| 久久精品国产亚洲a| 91精品国产福利| 国产在线播精品第三| 国产精品免费av| 欧美日韩国产电影| 国产在线看一区| 日韩毛片一二三区| 欧美日韩久久不卡| 国产一二精品视频| 亚洲精品第1页| 欧美videofree性高清杂交| 97久久超碰精品国产| 亚洲成人免费电影| 国产精品免费丝袜| 欧美电影在线免费观看| 成人黄色片在线观看| 日韩av在线播放中文字幕| 国产欧美一区二区精品性色| 色哟哟国产精品免费观看| 麻豆精品一区二区三区| 亚洲色图20p| 久久精品欧美日韩精品| 欧美性生活影院| 成人久久视频在线观看| 丝袜美腿成人在线| 亚洲精品成人悠悠色影视| 久久久久久久久久看片| 欧美日韩大陆一区二区| 99久久99久久综合| 国产精品1024| 午夜在线电影亚洲一区| 久久综合丝袜日本网| 欧洲在线/亚洲| av亚洲精华国产精华精| 国产麻豆一精品一av一免费 | 欧美中文字幕一二三区视频| 国产一区在线精品| 麻豆精品视频在线| 亚洲bt欧美bt精品| 亚洲综合视频在线| 亚洲精品大片www| 亚洲另类色综合网站| 亚洲欧洲精品天堂一级| 国产精品初高中害羞小美女文| 精品国产精品一区二区夜夜嗨| 5月丁香婷婷综合| 欧美群妇大交群中文字幕| 欧美日韩一卡二卡| 91九色最新地址| 99精品久久免费看蜜臀剧情介绍| 国产成人a级片| 成人动漫av在线| 99久久伊人网影院| 99视频精品在线| 欧美亚日韩国产aⅴ精品中极品| 欧美中文字幕一区| 制服丝袜成人动漫| 欧美精品一区二区在线播放 | 国产欧美日韩久久| 国产日产精品1区| 国产精品理论片在线观看| 国产欧美精品在线观看| 亚洲欧美综合在线精品| 亚洲精品久久久久久国产精华液 | 亚洲人成精品久久久久| 亚洲黄色小视频| 日韩精品亚洲专区| 国产在线国偷精品免费看| 国产精品白丝jk黑袜喷水| 成人av一区二区三区| 欧美性色综合网| 日韩一区二区三区三四区视频在线观看| 欧美久久婷婷综合色| 国产欧美一区二区精品忘忧草| 中文字幕一区二区三区不卡| 亚洲va天堂va国产va久| 国产成人在线色| 911精品产国品一二三产区| 久久香蕉国产线看观看99| 亚洲色欲色欲www| 久久国产精品色婷婷| 91亚洲精品一区二区乱码| 日韩一区二区视频| 亚洲日本va在线观看| 免费精品视频在线| 色综合色狠狠综合色| 精品少妇一区二区三区在线播放| 亚洲欧美日韩国产手机在线 | 欧美xxx久久| 国产精品高潮呻吟久久| 日韩不卡一区二区| 色欧美88888久久久久久影院| 日韩网站在线看片你懂的| 亚洲人成在线观看一区二区| 久久精品国产第一区二区三区| 欧美在线|欧美| 一色屋精品亚洲香蕉网站| 黄色成人免费在线| 91精品国产综合久久久久久久久久 | 亚洲人xxxx| 国产精品18久久久久| 欧美日韩的一区二区| 亚洲丝袜自拍清纯另类| 国产成人精品亚洲日本在线桃色 | 樱花草国产18久久久久| 久久国产日韩欧美精品| 欧美视频完全免费看| 国产午夜精品久久久久久免费视 | 成人激情电影免费在线观看| 日韩一级二级三级精品视频| 亚洲精品乱码久久久久久黑人| 成人午夜伦理影院| 亚洲国产精品v| 国产乱淫av一区二区三区| 91精品国产乱码| 婷婷开心激情综合| 在线观看日韩电影| 有坂深雪av一区二区精品| 日本高清不卡在线观看| 国产精品大尺度| 91视频国产资源| 一区二区三区美女视频| 91精彩视频在线观看| 亚洲精品欧美专区| 欧美亚洲国产怡红院影院| 亚洲愉拍自拍另类高清精品| 91成人国产精品| 亚洲第一综合色| 91麻豆精品国产综合久久久久久 | 中文字幕日韩av资源站| 成人综合日日夜夜| 亚洲精品综合在线| 色综合视频在线观看| 亚州成人在线电影| 精品乱人伦小说| 国产乱码精品一区二区三| 国产网站一区二区| 成年人午夜久久久| 亚洲一区二区黄色| 欧美不卡一区二区三区| 国产精品一区三区| 亚洲人成在线观看一区二区| 欧美日韩在线电影| 精品一区二区三区的国产在线播放 | 欧美日韩成人在线| 国产一区二区三区最好精华液| 欧美激情中文不卡| 在线免费观看成人短视频| 婷婷亚洲久悠悠色悠在线播放 | 国产一区二三区好的| 中文字幕在线一区二区三区| 91极品视觉盛宴| 九色综合狠狠综合久久| 亚洲美女偷拍久久| 日韩精品专区在线| 91丨porny丨蝌蚪视频| 日韩电影免费在线观看网站| 中文在线一区二区| 91精品国产综合久久久蜜臀粉嫩| 成人爽a毛片一区二区免费| 午夜激情一区二区三区| 中文字幕免费一区| 欧美一区二区精品| 色综合久久天天| 精品一区二区三区免费观看| 亚洲五月六月丁香激情| 国产人成亚洲第一网站在线播放| 欧美日韩免费电影| 99久久精品免费看国产| 国产综合色在线| 五月婷婷综合在线| 国产精品久久久久久一区二区三区| 欧美日韩中文另类| 一本色道**综合亚洲精品蜜桃冫| 国内精品写真在线观看| 图片区小说区国产精品视频| 亚洲欧洲精品一区二区精品久久久| 欧美刺激脚交jootjob| 欧美日韩免费视频| 欧美最新大片在线看| 色综合一区二区三区| 成人免费视频一区| 国产iv一区二区三区| 狠狠久久亚洲欧美| 麻豆国产一区二区| 男人操女人的视频在线观看欧美| 亚洲香蕉伊在人在线观| 亚洲免费伊人电影| 亚洲精品中文在线观看| 国产精品白丝在线| 亚洲蜜臀av乱码久久精品蜜桃| 国产精品美女久久久久久久久 | 国产精品理伦片| 中文字幕不卡三区| 国产精品麻豆99久久久久久| 国产视频一区在线播放| 久久久国产一区二区三区四区小说| 日韩欧美www|