合肥生活安徽新聞合肥交通合肥房產(chǎn)生活服務(wù)合肥教育合肥招聘合肥旅游文化藝術(shù)合肥美食合肥地圖合肥社保合肥醫(yī)院企業(yè)服務(wù)合肥法律

        代做 CSE 3341Core Interpreter

        時(shí)間:2023-11-14  來源:合肥網(wǎng)hfw.cc  作者:hfw.cc 我要糾錯(cuò)



        CSE 3341, Core Interpreter Project, Part 2 (Parser, Printer, Executor)
        Due: 11:59 pm, Friday, Nov. 10, ’23; 100 points
        Notes:
        1. This is the second part of the Core interpreter project. In this part, you have to implement the parser,
        printer, and executor. You should use the same language, Java or Python, that you used for writing
        your Tokenizer.
        2. If there are any special considerations for compiling and running your code, make sure you specify,
        in your README file, how your code is supposed to be compiled and run.
        3. Your interpreter should take two command-line arguments. The first will be the name of the file that
        contains the Core program to be interpreted. The second will be the name of the file that contains the
        data for the Core program. Note that this is a change from the Tokenizer project. In that project, your
        Tokenizer read the input Core program from the standard input stream. But now, since there are two
        input files, the names of these files will be given as command-line arguments.
        4. The Core program in the first file will not contain any illegal tokens but may contain other kinds
        of errors, i.e., not meeting the requirements of the BNF grammar of Core; undeclared variables;
        uninitialized variables; and another kind of error described in the next item. If the Core program
        violates the BNF grammar or if undeclared variables are used in the <stmt seq> portion of the
        Core program, your interpreter, before execution begins, should print an appropriate error message
        and stop.
        5. The data in the second file will consist of a sequence of integers (positive or negative), one per line.
        This data will be read when your interpreter executes the “read” statements in the Core program.
        If this file is empty when the interpreter tries to execute a “read” statement, your interpreter should
        terminate with a suitable error message.
        6. If during execution, the interpreter tries to access the current value of an identifier which has not yet
        been initialized, your interpreter should terminate with a suitable error message.
        7. The output from your interpreter should go to the standard output stream.
        8. If there are no errors related to the requirements of the BNF grammar and no undeclared variables
        appear in the <stmt seq>, the print-procedures of your interpreter should pretty-print the Core
        program and then execute the program.
        9. Pretty-printing requirements: There are no specific requirements about what precisely “pretty-printing”
        means. Follow your own instincts on what would make the structure of any given program easy to understand and try to implement that. The goal is to make the structure of the code clear by just looking
        at the pretty-printed version. Python’s indenting style is a good model to follow. Our eyes/brain seem
        naturally wired to group together lines that are aligned (vertically) with each other. So, the Python
        model is a good one to follow; or come up with your own variation – as long as it makes the code
        clear by looking at it. (This site seems to do a reasonably good job of describing best pravctices in
        Python regarding formatting: Python best practices
        1
        10. During execution, if your interpreter executes an <out> statement such as “write X, Y;”, and
        the values of X and Y at that point are 20 and 30, your interpreter should produce the following output:
        X = 20
        Y = 30
        11. Important: Your code must follow the principles of encapsulation (also known as “abstraction”) that
        we have talked about, rather than have the details of the representation of the abstract parse tree visible
        to all parts of your interpreter. In other words, do not use the PT[] explicitly in your parse, print and
        execute methods. Instead, use either the ParseTree class approach or the approach using a separate
        class corresponding to each non-terminal in the grammar. If you violate this guideline, your lab will
        be penalized heavily even if it is otherwise correct.
        12. Zip all your files into one archive and submit to Carmen. (If Carmen doesn’t accept the Zip file,
        upload to your “My Files” site on Carmen and submit from there.)
        What To Submit And When: On or before 11:59 pm on the due date, you should submit, on Carmen, the
        .zip file as specified above. DO NOT include object files in your .zip file. If the grader has problems with
        compiling or executing your program, he will e-mail you; you must respond within 48 hours to resolve the
        problem. If you do not, the grader will assume that your program does not, in fact, compile/execute properly.
        The project will be graded using the project rubric on Piazza.
        請加QQ:99515681 或郵箱:99515681@qq.com   WX:codehelp

        掃一掃在手機(jī)打開當(dāng)前頁
      1. 上一篇:代寫INFS 2042 Data Structures
      2. 下一篇:代做指標(biāo)定制選股公式代寫通達(dá)信山峰心理線副圖
      3. 無相關(guān)信息
        合肥生活資訊

        合肥圖文信息
        急尋熱仿真分析?代做熱仿真服務(wù)+熱設(shè)計(jì)優(yōu)化
        急尋熱仿真分析?代做熱仿真服務(wù)+熱設(shè)計(jì)優(yōu)化
        出評 開團(tuán)工具
        出評 開團(tuán)工具
        挖掘機(jī)濾芯提升發(fā)動機(jī)性能
        挖掘機(jī)濾芯提升發(fā)動機(jī)性能
        海信羅馬假日洗衣機(jī)亮相AWE  復(fù)古美學(xué)與現(xiàn)代科技完美結(jié)合
        海信羅馬假日洗衣機(jī)亮相AWE 復(fù)古美學(xué)與現(xiàn)代
        合肥機(jī)場巴士4號線
        合肥機(jī)場巴士4號線
        合肥機(jī)場巴士3號線
        合肥機(jī)場巴士3號線
        合肥機(jī)場巴士2號線
        合肥機(jī)場巴士2號線
        合肥機(jī)場巴士1號線
        合肥機(jī)場巴士1號線
      4. 短信驗(yàn)證碼 酒店vi設(shè)計(jì) deepseek 幣安下載 AI生圖 AI寫作 aippt AI生成圖片 trae

        關(guān)于我們 | 打賞支持 | 廣告服務(wù) | 聯(lián)系我們 | 網(wǎng)站地圖 | 免責(zé)聲明 | 幫助中心 | 友情鏈接 |

        Copyright © 2025 hfw.cc Inc. All Rights Reserved. 合肥網(wǎng) 版權(quán)所有
        ICP備06013414號-3 公安備 42010502001045

        主站蜘蛛池模板: 性无码免费一区二区三区在线| 日韩精品国产一区| 免费观看日本污污ww网站一区| 亚洲AV福利天堂一区二区三| 少妇精品无码一区二区三区| 国产精品高清一区二区三区不卡 | 亚洲日韩国产一区二区三区 | 伊人久久一区二区三区无码| 内射一区二区精品视频在线观看| 一区二区视频在线免费观看| 日本一区二区不卡在线| 国产精品香蕉在线一区| 九九久久99综合一区二区| 99久久人妻精品免费一区| 天美传媒一区二区三区| 中文字幕一区日韩在线视频| 人妻激情偷乱视频一区二区三区| 成人精品视频一区二区| 中文字幕亚洲一区二区va在线| 精品国产aⅴ无码一区二区| 国产成人高清亚洲一区91| 日本高清不卡一区| 在线视频精品一区| 无码国产精品一区二区免费3p| 韩国精品福利一区二区三区| 中文字幕久久亚洲一区| 日韩一区在线视频| 亚欧色一区W666天堂| 一区二区三区电影网| 97精品一区二区视频在线观看| 精品国产不卡一区二区三区| 精品欧洲av无码一区二区14| 久久久久国产一区二区| 亚洲码欧美码一区二区三区| 亚洲综合色自拍一区| 精品无码一区二区三区水蜜桃| 麻豆亚洲av熟女国产一区二| 插我一区二区在线观看| 成人精品一区二区三区校园激情| 无码人妻AV免费一区二区三区| 一区二区三区四区视频在线|