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




















 

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

    合肥圖文信息
    2025年10月份更新拼多多改銷助手小象助手多多出評軟件
    2025年10月份更新拼多多改銷助手小象助手多
    有限元分析 CAE仿真分析服務-企業/產品研發/客戶要求/設計優化
    有限元分析 CAE仿真分析服務-企業/產品研發
    急尋熱仿真分析?代做熱仿真服務+熱設計優化
    急尋熱仿真分析?代做熱仿真服務+熱設計優化
    出評 開團工具
    出評 開團工具
    挖掘機濾芯提升發動機性能
    挖掘機濾芯提升發動機性能
    海信羅馬假日洗衣機亮相AWE  復古美學與現代科技完美結合
    海信羅馬假日洗衣機亮相AWE 復古美學與現代
    合肥機場巴士4號線
    合肥機場巴士4號線
    合肥機場巴士3號線
    合肥機場巴士3號線
  • 短信驗證碼 目錄網 排行網

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

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

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

          9000px;">

                久久在线免费观看| 欧美视频一二三区| 亚洲国产精品一区二区久久| 久久这里只有精品6| 欧美久久久久久蜜桃| 91年精品国产| 不卡的电影网站| 成人免费va视频| 九一九一国产精品| 喷水一区二区三区| 日韩成人一区二区| 三级影片在线观看欧美日韩一区二区 | 日本一区二区在线不卡| 欧美一区二区高清| 欧美精品乱人伦久久久久久| 欧美亚洲动漫另类| 91国在线观看| 欧美视频在线观看一区| 欧美中文字幕不卡| 制服丝袜在线91| 欧美日韩中文一区| 欧美美女直播网站| 欧美精选午夜久久久乱码6080| 日本韩国一区二区| 欧美午夜寂寞影院| 欧美剧情片在线观看| 日韩色视频在线观看| 欧美成人精品福利| 国产欧美日韩另类一区| 国产精品色婷婷| 一区二区在线观看免费视频播放| 亚洲永久免费视频| 日本v片在线高清不卡在线观看| 蜜桃视频在线观看一区二区| 国产一区在线不卡| 97久久人人超碰| 欧美美女激情18p| 久久久久久久久久美女| 亚洲视频在线一区二区| 亚洲午夜在线视频| 国产资源精品在线观看| 成人av手机在线观看| 91国偷自产一区二区三区成为亚洲经典 | 日本韩国一区二区三区视频| 欧美日本一道本| 久久精品视频免费观看| 日韩伦理免费电影| 久久黄色级2电影| av激情成人网| 欧美成人a视频| 自拍视频在线观看一区二区| 日韩综合在线视频| 国产98色在线|日韩| 欧美喷水一区二区| 国产欧美一区二区精品秋霞影院| 一区二区三区影院| 国产在线播放一区二区三区| 一本一道久久a久久精品| 精品国产精品网麻豆系列| 亚洲激情综合网| 激情综合色丁香一区二区| 欧美三级蜜桃2在线观看| 欧美激情一区二区三区四区| 免费成人你懂的| 一本一道久久a久久精品| 久久久久国产免费免费| 午夜伦理一区二区| 91日韩在线专区| 日本一区二区三区四区在线视频 | 亚洲va欧美va天堂v国产综合| 99re在线精品| 91精品综合久久久久久| 亚洲女同女同女同女同女同69| 精品一区二区三区的国产在线播放 | 一区二区国产视频| www.在线成人| 日韩欧美一区二区视频| 欧美激情中文字幕| 国产成人亚洲精品狼色在线| 日韩一区二区在线看片| 亚洲va在线va天堂| 欧美高清视频www夜色资源网| 亚洲女与黑人做爰| 99久久精品国产导航| 国产精品成人免费在线| 成人一区二区三区视频| 国产亚洲精久久久久久| 国产激情一区二区三区四区| 久久亚洲综合色一区二区三区| 日韩精品1区2区3区| 欧美日韩国产片| 亚洲欧美日韩一区| 91电影在线观看| 亚洲一区在线观看网站| 欧美日韩精品是欧美日韩精品| 亚洲国产一二三| 在线电影院国产精品| 蜜臀99久久精品久久久久久软件| 日韩欧美色电影| 激情欧美一区二区三区在线观看| 精品国产一区二区三区不卡| 极品尤物av久久免费看| 亚洲国产精品黑人久久久| 国产jizzjizz一区二区| 国产精品久久久爽爽爽麻豆色哟哟| 成人黄色综合网站| 亚洲精品免费在线观看| 欧美美女喷水视频| 国产在线一区二区| 中文字幕综合网| 欧美美女黄视频| 国产在线播放一区| 亚洲视频在线一区观看| 欧美日本在线看| 国产精品一区二区视频| 亚洲啪啪综合av一区二区三区| 欧美三区在线视频| 国产一区二区三区免费| 亚洲欧美成人一区二区三区| 欧美老年两性高潮| 国产精品亚洲专一区二区三区| 综合激情网...| 777久久久精品| 成人免费视频视频| 亚洲国产成人av| 国产欧美日韩亚州综合 | 日本大香伊一区二区三区| 蜜桃视频第一区免费观看| 中文无字幕一区二区三区| 欧美人牲a欧美精品| 大尺度一区二区| 日韩高清在线观看| 亚洲欧美另类综合偷拍| 久久综合999| 欧美日韩免费高清一区色橹橹 | 日本一区二区电影| 欧美一级日韩一级| 日本福利一区二区| 国产99久久久国产精品潘金网站| 午夜影院久久久| 中文字幕一区二区日韩精品绯色| 日韩三级电影网址| 91国偷自产一区二区使用方法| 国产精品99久久久久久似苏梦涵| 一区二区三区四区激情| 国产日本欧美一区二区| 欧美一区二区三区色| 欧美区一区二区三区| 色婷婷激情久久| 国产成a人无v码亚洲福利| 久久精品国产第一区二区三区| 亚洲一区二区美女| 亚洲视频 欧洲视频| 国产精品国产三级国产有无不卡 | 成人性生交大片免费看在线播放| 日产国产欧美视频一区精品| 一区二区三区美女视频| 亚洲美女在线国产| 亚洲三级在线免费| 国产精品成人免费精品自在线观看 | www.亚洲免费av| 国产盗摄一区二区三区| 国产激情一区二区三区四区| 久久99精品国产91久久来源| 美女脱光内衣内裤视频久久网站 | 日韩一级欧美一级| 欧美日韩你懂得| 9191精品国产综合久久久久久| 欧美日韩一级二级| 欧美精品九九99久久| 91精品久久久久久蜜臀| 日韩一级片在线播放| 精品欧美一区二区三区精品久久 | 久久精品欧美日韩精品| 中文字幕欧美激情| 中文字幕一区二区三区不卡在线 | 日本韩国精品在线| 欧美日韩国产在线观看| 欧美精品123区| 日韩一区二区免费高清| 久久久777精品电影网影网| 亚洲国产精品传媒在线观看| 亚洲精选视频在线| 亚洲777理论| 国产在线乱码一区二区三区| 丁香激情综合五月| 色婷婷香蕉在线一区二区| 欧美情侣在线播放| 久久久噜噜噜久噜久久综合| 欧美韩国日本不卡| 一区二区三区不卡视频| 蜜臀av一区二区三区| 丁香另类激情小说| 欧美丝袜丝nylons| 久久青草国产手机看片福利盒子| 中文字幕免费在线观看视频一区| 亚洲国产美国国产综合一区二区| 美女网站色91| 色综合久久久久久久久| 日韩欧美在线123|