美女扒开腿免费视频_蜜桃传媒一区二区亚洲av_先锋影音av在线_少妇一级淫片免费放播放_日本泡妞xxxx免费视频软件_一色道久久88加勒比一_熟女少妇一区二区三区_老司机免费视频_潘金莲一级黄色片_精品国产精品国产精品_黑人巨大猛交丰满少妇

代寫CSE 465/565 解析器 interpreter

時(shí)間:2024-03-01  來源:  作者: 我要糾錯(cuò)


CSE 465/565

Homework #1: 55 points

Outcomes:

● Warming up by writing a java code

● Understand how an interpreter works

● Understand some of the difficulties involved in designing a new programming language.

Scoring:

●   (10 pts) Successful upload on GIT. If your code is submitted on GIT successfully, the following aspects of your program will be graded

● (45 pts) Write an interpreter (Java or C++) to execute Z+-  programs

○ (10 pts) Basic structure, integer variables only

○ (10 pts) Basic structure, integer and string variables

○ (10 pts for Graduate students-20 pts for Undergraduate students) For loops

○ (10 pts) Nested for loops (only for graduate students)

○ (5 pts) Detection of runtime errors

Requirements:

● Java version 17 or older. If you haven’t installed java before on your laptop, download JDK

from here: https://www.oracle.com/java/technologies/downloads/ .You can install the latest  version which is JDK21 (if you already don’t have any java version 17 or older on your laptop), reset your computer, and it should be done.

●   Although you can use any IDE of your choice, Eclipse is recommended. Follow the instructions for installing and configuring Eclipse here: Install and Configure Eclipse

●   You must name your main class Zpm. You can create additional classes as needed, but the Zpm class should be the one containing the main method.

●   Your program must take a Z+- code as a file with .zpm extensions through the command line    argument. which means your program must run on a terminal (windows terminal or CMD on   windows, and terminal on mac) using the standard compile command. Naming the main class Zpm, and assuming prog.zpm is a file with Z+- codes in it:

javac *.java

java Zpm prog.zpm

●   So, your program does not prompt the user to enter a file or anything like that. Instead, it receives a file as an argument when the program is run through the terminal (as shown above), not during compilation.

Instructions:

(55 points) Consider a very simple programming language named Z+-. The Z+-  programming language has the following features:

1.   Call your project on GitLab/GitHub Homework1. This folder/package should be saved inside your “CSE465_565” project on your GIT.

2.   Z+- variables are case-sensitive and consist of one letter [A-Z]. No numbers, no special characters.

3.   Z+- variables can store a string or integer value. A single variable can switch between integer and string values during program execution. Assigning a value to a variable creates that variable for future use.

4.   A runtime error occurs if a variable is used before it is given a value.

5.   The PRINT statement displays a particular variable’s value. This is done as:

PRINT numCookies ;

6.   The right-hand side of a simple assignment statement (i.e., =) is either a variable name (which must have a value), signed integer, or string literal. For example, the following are valid:

A = 12 ;

A = B ;   (B must have values)

A = "hello" ;

7.   There are three compound assignment statements: +=, *=,and -=.  The meaning of these operators depends on the data type of the left and right hand side of the operator.

+=   concat right string onto end of left string

+= increment left integer with value on right

*= multiply left integer by value on right

-= subtract right integer from value on left

A += 34 ;

A *= B ;   (B must have values)

A += "hello world" ;   (Assuming A is already holding a

String value)

All other combinations are illegal and cause a runtime error.

8.    Every statement is terminated by a semi-colon.

9.   There is a loop statement – FOR - whose body contains at least one simple statement (i.e., no nested loops), which are presented on one line. The keyword FOR is followed by an integer constant, which indicates the number of times to execute the loop. Following this number is a sequence of statements defining the loop's body, followed by the word ENDFOR.

FOR 5 B += A ; A *= 2 ; ENDFOR

10. Graduate Students: Graduate students should also make the Z+- language to work with nested loops:

FOR 5 B += A ; A *= 2 ; FOR 10 A += B ; ENDFOR ENDFOR

this could be more than one loop inside another one.

11. Z+- programs must have at least one space separating all elements.

12. You also need to throw an exception if the given file is not a .zpm file or no file is given.

13. A general rule: Any line that ends with a value (e.g., "hello", 3434) or a variable (e.g., A) should conclude with a semicolon. Therefore, assignment statements and print statements must end   with a semicolon. However, for loops should conclude with 'ENDFOR'.

Sample Run:

1.   Here is an example Z+- program:

A = 1 ;

B = 0 ;

FOR 5 B += A ; A *= 2 ; ENDFOR

A += 1000 ;

PRINT A ;

PRINT B ;

This program's output is (pay attention that there is no space in between):

A=1032

B=31

2.   Here is a second Z+- program:

A = 10 ;

A += A ;

PRINT A ;

A = "hello" ;

A += A ;

PRINT A ;

A += 123 ;

PRINT A ;

The output to this second program would be (pay attention that there is no space in between):

A=20

A=hellohello

RUNTIME ERROR: line 7

You may assume that the programs are syntactically correct but may have runtime errors (e.g., add integer and string, or doing operator on a variable that hasn't been initialized).

When an error happens, your program should print the runtime error, and stop the program.

Test your program:

Come up with Z+- codes similar to the ones shown above, and test your program comprehensively.
請加QQ:99515681  郵箱:99515681@qq.com   WX:codehelp 

標(biāo)簽:

掃一掃在手機(jī)打開當(dāng)前頁
  • 上一篇:代寫CS444 Linear classifiers
  • 下一篇:代做代寫COMPSCI 4091 Advanced Networked Systems
  • 無相關(guān)信息
    昆明生活資訊

    昆明圖文信息
    蝴蝶泉(4A)-大理旅游
    蝴蝶泉(4A)-大理旅游
    油炸竹蟲
    油炸竹蟲
    酸筍煮魚(雞)
    酸筍煮魚(雞)
    竹筒飯
    竹筒飯
    香茅草烤魚
    香茅草烤魚
    檸檬烤魚
    檸檬烤魚
    昆明西山國家級(jí)風(fēng)景名勝區(qū)
    昆明西山國家級(jí)風(fēng)景名勝區(qū)
    昆明旅游索道攻略
    昆明旅游索道攻略
  • 短信驗(yàn)證碼平臺(tái) 理財(cái) WPS下載

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

    Copyright © 2025 kmw.cc Inc. All Rights Reserved. 昆明網(wǎng) 版權(quán)所有
    ICP備06013414號(hào)-3 公安備 42010502001045

    美女扒开腿免费视频_蜜桃传媒一区二区亚洲av_先锋影音av在线_少妇一级淫片免费放播放_日本泡妞xxxx免费视频软件_一色道久久88加勒比一_熟女少妇一区二区三区_老司机免费视频_潘金莲一级黄色片_精品国产精品国产精品_黑人巨大猛交丰满少妇
    免费观看黄网站| 欧美极品jizzhd欧美18| 美国精品一区二区| www色aa色aawww| 在线观看网站黄| 精品无码国产一区二区三区51安| 日韩精品电影一区二区| 国精品无码一区二区三区| 成人免费看片载| 国产又粗又长又黄的视频| 女人扒开双腿让男人捅| 五级黄高潮片90分钟视频| chinese全程对白| 亚洲一级中文字幕| 69xx绿帽三人行| 日韩免费成人av| bl动漫在线观看| 一区二区视频免费看| 黄色片在线观看免费| 韩国无码一区二区三区精品| 日韩在线视频网址| 国产又粗又黄又猛| 五月开心播播网| 国产精品老熟女一区二区| 久久久久亚洲AV成人无在| 在线免费观看a级片| 香蕉在线观看视频| 性欧美videos| 在线免费看视频| 国产真实乱人偷精品人妻| 97人妻精品一区二区三区免费| 国产精品免费在线视频| 舐め犯し波多野结衣在线观看| 亚洲国产精品自拍视频| www.超碰97| 免费国产羞羞网站美图| 我要看一级黄色录像| 夫妇交换中文字幕| 亚洲AV无码成人精品区明星换面 | 激情五月激情综合| 无码一区二区三区在线| 国产制服丝袜在线| 中文精品在线观看| 粉嫩av蜜桃av蜜臀av| 国产在线观看免费播放| 老妇女50岁三级| 91福利视频免费观看| 久久国产劲爆∧v内射| 国产成人av片| 在线免费观看a级片| www在线观看免费视频| 久久丫精品忘忧草西安产品| 日本xxxxxxxxx18| 中文国语毛片高清视频| 四虎影院中文字幕| 99国产精品免费视频| 制服.丝袜.亚洲.中文.综合懂 | 欧美丰满少妇人妻精品| 三级视频网站在线观看| 91中文字幕永久在线| 91视频免费观看网站| 在线观看黄网址| 中文字幕无码毛片免费看| 娇妻高潮浓精白浆xxⅹ| 噜噜噜在线视频| 国产又粗又猛又爽又黄的视频四季 | caopeng视频| 在线免费观看成年人视频| 国产精品三级在线观看无码| 国产三级aaa| 无码人妻一区二区三区一| 中文字幕免费在线播放| 久操视频免费看| 日日噜噜夜夜狠狠久久波多野| 国语对白在线播放| 一起草在线视频| 久草视频手机在线| www.四虎精品| 波多野结衣av在线观看| 国产激情无码一区二区三区| 成人无码www在线看免费| 日韩欧美综合视频| v8888av| 欧美图片自拍偷拍| 中文字幕美女视频| 三上悠亚影音先锋| 日本女人性视频| 国产喷水在线观看| 成人黄色免费网址| 久久午夜夜伦鲁鲁片| 杨幂一区二区国产精品| 成人小视频免费看| 人妻丰满熟妇av无码久久洗澡| 中文字幕在线有码| а天堂中文在线资源| 国产成人精品无码免费看夜聊软件| 免费黄色在线播放| 亚洲色婷婷一区二区三区| 懂色av粉嫩av浪潮av| brazzers精品成人一区| 无码人妻aⅴ一区二区三区| 久久免费精品国产| 最好看的中文字幕| 丰满人妻一区二区三区大胸| 老湿机69福利| 久久精品视频免费在线观看| 国产又粗又硬又长又爽| 秋霞欧美一区二区三区视频免费| 免费看裸体网站| 无码少妇精品一区二区免费动态| 一本色道久久综合亚洲精品图片| 中国xxxx性xxxx产国| 稀缺呦国内精品呦| 国产精品成人无码专区| 在线免费看黄色片| 波多野结衣一本| 国产肥白大熟妇bbbb视频| 久久精品视频18| 激情无码人妻又粗又大| 尤物在线免费视频| 欧美xxxx日本和非洲| 中文字幕乱视频| 黄色在线观看av| 伊人网在线视频观看| 一二三四国产精品| 久久久久亚洲av片无码v| 午夜性福利视频| 99久久人妻无码中文字幕系列| 欧美性xxxx图片| 99精品中文字幕| 国产伦理在线观看| 少妇毛片一区二区三区| 国产主播av在线| 先锋资源在线视频| 手机在线看片日韩| 蜜桃av免费在线观看| 亚洲熟女乱综合一区二区| 一区二区三区免费在线观看视频| 美国精品一区二区| 国产人妻黑人一区二区三区| 无码人妻丰满熟妇啪啪欧美| 美女福利视频在线观看| 少妇一级淫片免费放播放| 欧美激情亚洲色图| 91人人澡人人爽| 欧美日韩国产一二三区| 香蕉视频污视频| 成年人视频软件| 中文字幕在线观看91| 1024手机在线观看你懂的| 特种兵之深入敌后| 少妇视频在线播放| 性高潮免费视频| 欧美做爰啪啪xxxⅹ性| 欧美 日韩 国产 成人 在线观看| 亚洲成人av免费观看| 国产18无套直看片| 中文字幕在线观看网址| 日本黄色大片在线观看| 日本精品久久久久中文| 男生草女生视频| 少妇户外露出[11p]| 亚洲免费观看在线| 中文字幕av久久爽av| 国产又黄又粗的视频| 加勒比综合在线| 亚洲精品女人久久久| 在线播放av网址| 在线观看成人毛片| 自拍偷拍第9页| 极品久久久久久久| 亚洲一区二区观看| 香蕉视频黄色在线观看| 中文人妻一区二区三区| 中文字幕影片免费在线观看| 天天躁日日躁狠狠躁av麻豆男男| 久久综合桃花网| 国产一区二区播放| 五月天av网站| 亚洲成人福利视频| 中文在线字幕观看| 成人做爰69片免费| 精品国产乱码久久久久夜深人妻| 丰满饥渴老女人hd| 中文在线字幕观看| 黄色性视频网站| 精品人妻一区二区三区日产乱码卜| 亚洲一区二区在线免费| 玖玖爱在线精品视频| 99久久久久久久久久| xxxx日本黄色| 国产传媒免费在线观看| 91日韩中文字幕| 午夜不卡久久精品无码免费| 精品无码在线视频| 亚洲欧美日韩第一页| 久热这里有精品| 精品中文字幕在线播放| 久久久久亚洲av无码a片| 一起操在线播放|