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爱在线视频这里只有精品_窝窝午夜看片成人精品_日韩精品久久久毛片一区二区_亚洲一区二区久久

          国产精品免费观看视频| 欧美资源在线| 激情校园亚洲| 欧美精品久久一区| 欧美一区激情视频在线观看| 亚洲国产视频一区| 国产日韩欧美综合在线| 欧美日韩在线观看一区二区三区| 久久精品国产第一区二区三区最新章节 | 久久免费偷拍视频| 亚洲综合激情| 洋洋av久久久久久久一区| 韩日在线一区| 国产农村妇女精品| 欧美午夜精品久久久| 蜜乳av另类精品一区二区| 亚洲嫩草精品久久| 一卡二卡3卡四卡高清精品视频| 国产日韩一区欧美| 国产精品香蕉在线观看| 欧美日韩在线不卡一区| 欧美福利在线| 欧美成人中文字幕在线| 久热精品视频| 理论片一区二区在线| 久久精品中文字幕一区| 欧美一区二区性| 欧美一区二区三区久久精品茉莉花| 亚洲美女免费视频| 99国产精品自拍| 99视频超级精品| 在线亚洲自拍| 亚洲婷婷在线| 欧美一区日韩一区| 欧美在线影院| 久久午夜国产精品| 欧美国产一区二区在线观看| 蜜臀久久久99精品久久久久久 | 亚洲欧美日本国产有色| 新狼窝色av性久久久久久| 性欧美精品高清| 久久久国产成人精品| 久久裸体艺术| 欧美国产日韩亚洲一区| 欧美母乳在线| 国产精品爽黄69| 国产在线精品一区二区中文| 亚洲国产一区二区视频| 亚洲色图在线视频| 性欧美暴力猛交另类hd| 久久成人在线| 欧美精品乱人伦久久久久久| 国产精品h在线观看| 国产日韩在线视频| 91久久久久| 亚洲在线1234| 美女国产精品| 国产精品欧美日韩一区| 亚洲成在线观看| 在线一区日本视频| 久久久久久久91| 欧美日韩高清在线一区| 国产亚洲亚洲| 99精品视频一区二区三区| 午夜精品在线| 欧美精品乱码久久久久久按摩| 欧美性一二三区| 亚洲二区免费| 欧美主播一区二区三区美女 久久精品人| 久久综合中文字幕| 国产精品一区二区久久精品| 亚洲乱码国产乱码精品精天堂| 亚洲欧美国产日韩天堂区| 久久久久久久97| 国产精品久久久久久五月尺| 亚洲国产精品日韩| 午夜视频一区在线观看| 欧美乱人伦中文字幕在线| 国产一区999| 亚洲欧美日韩视频一区| 欧美日韩高清区| 亚洲国产精品ⅴa在线观看 | 欧美一区二区精品| 欧美精品一区二区精品网| 激情综合中文娱乐网| 欧美一级二区| 国产精品日韩一区二区三区| 99国产精品私拍| 欧美日本在线| 亚洲精品美女在线| 欧美大色视频| 亚洲第一级黄色片| 久久中文欧美| 亚洲电影一级黄| 久久亚洲精品欧美| 国语自产精品视频在线看抢先版结局| 亚洲一区在线播放| 国产精品无码永久免费888| 中日韩高清电影网| 欧美亚洲不卡| 亚洲欧美久久久| 国产欧美精品一区| 久久国产福利| 在线日韩视频| 欧美精品麻豆| 一本一本久久a久久精品综合妖精 一本一本久久a久久精品综合麻豆 | 国产麻豆午夜三级精品| 亚洲欧美日韩在线不卡| 国产精品免费在线| 欧美亚洲一区二区在线观看| 国产免费亚洲高清| 久久久久国产一区二区三区四区 | 久久国产精品黑丝| 国内精品久久久久国产盗摄免费观看完整版 | 久久视频在线免费观看| 狠狠88综合久久久久综合网| 久久久久成人网| 亚洲乱码国产乱码精品精| 欧美日韩国产大片| 欧美一级成年大片在线观看| 国产亚洲欧洲997久久综合| 久久婷婷麻豆| 99精品热视频只有精品10| 国产精品豆花视频| 久久久www成人免费精品| 亚洲高清二区| 国产精品国产自产拍高清av| 欧美尤物一区| 亚洲人体一区| 国产日韩一区二区| 欧美成人免费网| 亚洲欧美日韩一区二区三区在线观看| 国产亚洲欧洲一区高清在线观看| 久久久久欧美| 亚洲专区在线视频| 最新日韩中文字幕| 国产精品人人爽人人做我的可爱| 久久亚洲视频| 亚洲视频在线观看免费| 精品二区视频| 国产精品一区二区三区久久| 免费成人在线观看视频| 亚洲欧美日本伦理| 亚洲美女av网站| 在线精品视频在线观看高清| 欧美日韩亚洲一区二区三区在线| 欧美在线www| 亚洲一区二区精品在线观看| 亚洲国产精品电影在线观看| 国产日韩欧美中文在线播放| 欧美日韩国产麻豆| 美女主播视频一区| 亚洲欧美一区二区三区极速播放| 尤物yw午夜国产精品视频明星| 国产精品免费网站在线观看| 欧美精品粉嫩高潮一区二区 | 久久久久免费观看| 欧美一区日韩一区| 亚洲女ⅴideoshd黑人| 99精品国产在热久久婷婷| 在线观看免费视频综合| 国产日韩一区二区三区| 国产欧美91| 国产精品丝袜久久久久久app| 欧美日韩黄视频| 欧美日韩91| 欧美精品一区在线观看| 欧美精品v国产精品v日韩精品| 久久婷婷国产综合精品青草| 久久久一二三| 久久免费黄色| 久久亚洲春色中文字幕| 久久免费高清视频| 免费亚洲一区二区| 美国成人直播| 欧美精品在线一区二区| 欧美日韩免费高清| 国产精品高潮粉嫩av| 国产精品爱啪在线线免费观看| 欧美色综合天天久久综合精品| 欧美图区在线视频| 国产精品久久久久9999高清| 国产精品爱啪在线线免费观看| 国产精品五月天| 国产日韩欧美精品一区| 国外成人性视频| 亚洲国产欧美一区| 亚洲日本电影在线| 亚洲精选视频免费看| 亚洲尤物影院| 久久精品亚洲精品| 免费在线看成人av| 欧美精品大片| 国产精品久久久久久久久| 国产日韩综合| 亚洲国产精品激情在线观看| 亚洲美女黄网| 欧美一区高清| 欧美日韩国产一区二区三区| 国产精品免费视频观看|