The two files attached have everything that would be needed to complete the project. I am struggling with project 4 I have worked on it myself but I cant get it so I'm turning to help.
Project3Canonical/Cases/Correct/1.code program int x; begin x=10; output x; end Project3Canonical/Cases/Correct/1.data 0 1 2 3 4 5 6 7 8 9 Project3Canonical/Cases/Correct/1.expected 10 Project3Canonical/Cases/Correct/1.student 10 Project3Canonical/Cases/Correct/10.code program int x; begin x=1-1-1-1; output x; end Project3Canonical/Cases/Correct/10.data 0 1 2 3 4 5 6 7 8 9 Project3Canonical/Cases/Correct/10.expected 0 Project3Canonical/Cases/Correct/10.student 0 Project3Canonical/Cases/Correct/11.code program int x; begin x=1*2*3*4; output x; end Project3Canonical/Cases/Correct/11.data 0 1 2 3 4 5 6 7 8 9 Project3Canonical/Cases/Correct/11.expected 24 Project3Canonical/Cases/Correct/11.student 24 Project3Canonical/Cases/Correct/12.code program int x, y; begin x = 1; y = 2; output x; output y; end Project3Canonical/Cases/Correct/12.data 0 1 2 3 4 5 6 7 8 9 Project3Canonical/Cases/Correct/12.expected 1 2 Project3Canonical/Cases/Correct/12.student 1 2 Project3Canonical/Cases/Correct/13.code program int x, y, z; begin x = 1; y = 10; z = 100; while !(x==y) begin x = z - x; while 1 <= z="" begin="" z="z-1;" x="y;" endwhile="" endwhile="" output="" x;="" end="" project3canonical/cases/correct/13.data="" 0="" 1="" 2="" 3="" 4="" 5="" 6="" 7="" 8="" 9="" project3canonical/cases/correct/13.expected="" 10="" project3canonical/cases/correct/13.student="" 10="" project3canonical/cases/correct/14.code="" program="" int="" x,="" y;="" begin="" x="10;" y="5;" if="" x="=y" then="" output="" x;="" endif="" output="" y;="" end="" project3canonical/cases/correct/14.data="" 0="" 1="" 2="" 3="" 4="" 5="" 6="" 7="" 8="" 9="" project3canonical/cases/correct/14.expected="" 5="" project3canonical/cases/correct/14.student="" 5="" project3canonical/cases/correct/15.code="" program="" int="" x,="" y;="" begin="" x="1;" y="1;" if="" x="=y" then="" x="0;" if="">=>
<=y then="" x="5;" endif="" endif="" output="" x;="" end="" project3canonical/cases/correct/15.data="" 0="" 1="" 2="" 3="" 4="" 5="" 6="" 7="" 8="" 9="" project3canonical/cases/correct/15.expected="" 10="" project3canonical/cases/correct/15.student="" 10="" project3canonical/cases/correct/16.code="" program="" int="" x,="" y,="" z;="" begin="" x="5;" y="10;" z="100;" while="" !(x="=0)" begin="" x="x-1;" while="" !(y="=100)" begin="" y="y+1;" while="" 0="">=y><= z="" begin="" z="z-1;" endwhile="" endwhile="" output="" x;="" endwhile="" output="" x;="" end="" project3canonical/cases/correct/16.data="" 0="" 1="" 2="" 3="" 4="" 5="" 6="" 7="" 8="" 9="" project3canonical/cases/correct/16.expected="" 4="" 3="" 2="" 1="" 0="" 0="" project3canonical/cases/correct/16.student="" 4="" 3="" 2="" 1="" 0="" 0="" project3canonical/cases/correct/17.code="" program="" int="" x,="" y,="" z;="" begin="" x="5;" y="10;" z="x" *="" y="" +="" 5;="" output="" z;="" end="" project3canonical/cases/correct/17.data="" 0="" 1="" 2="" 3="" 4="" 5="" 6="" 7="" 8="" 9="" project3canonical/cases/correct/17.expected="" 55="" project3canonical/cases/correct/17.student="" 55="" project3canonical/cases/correct/18.code="" program="" int="" x,="" y,="" z;="" begin="" x="5;" y="10;" z="x" -="" y="" -="" 5="" -="" 5;="" output="" z;="" end="" project3canonical/cases/correct/18.data="" 0="" 1="" 2="" 3="" 4="" 5="" 6="" 7="" 8="" 9="" project3canonical/cases/correct/18.expected="" -5="" project3canonical/cases/correct/18.student="" -5="" project3canonical/cases/correct/19.code="" program="" int="" x,="" y,="" z;="" begin="" x="5;" y="10;" z="((x" -="" y)="" -="" 5)="" -="" 5;="" output="" z;="" end="" project3canonical/cases/correct/19.data="" 0="" 1="" 2="" 3="" 4="" 5="" 6="" 7="" 8="" 9="" project3canonical/cases/correct/19.expected="" -15="" project3canonical/cases/correct/19.student="" -15="" project3canonical/cases/correct/2.code="" program="" int="" x;="" begin="" x="0-10;" output="" x;="" end="" project3canonical/cases/correct/2.data="" 0="" 1="" 2="" 3="" 4="" 5="" 6="" 7="" 8="" 9="" project3canonical/cases/correct/2.expected="" -10="" project3canonical/cases/correct/2.student="" -10="" project3canonical/cases/correct/20.code="" program="" int="" x,="" y,="" z;="" begin="" x="5;" y="10;" z="x" -="" y="" *="" 5="" -="" 5;="" output="" z;="" end="" project3canonical/cases/correct/20.data="" 0="" 1="" 2="" 3="" 4="" 5="" 6="" 7="" 8="" 9="" project3canonical/cases/correct/20.expected="" -40="" project3canonical/cases/correct/20.student="" -40="" project3canonical/cases/correct/21.code="" program="" int="" x,="" y,="" z;="" int="" a,="" b,="" c;="" begin="" x="5;" y="2;" z="x" -="" y="" *="" 5="" -="" 5;="" a="z;" b="z;" c="x" +="" y="" -="" z="" *="" (a="" *="" b);="" output="" c;="" end="" project3canonical/cases/correct/21.data="" 0="" 1="" 2="" 3="" 4="" 5="" 6="" 7="" 8="" 9="" project3canonical/cases/correct/21.expected="" 7="" project3canonical/cases/correct/21.student="" 7="" project3canonical/cases/correct/22.code="" program="" int="" x,="" y,="" z;="" int="" a,="" b,="" c;="" begin="" x="5;" y="10;" if="" x="">=>< y="" then="" while="" (0="" -="" 10)="">< x="" begin="" x="x" -="" 1;="" endwhile="" endif="" output="" x;="" end="" project3canonical/cases/correct/22.data="" 0="" 1="" 2="" 3="" 4="" 5="" 6="" 7="" 8="" 9="" project3canonical/cases/correct/22.expected="" -10="" project3canonical/cases/correct/22.student="" -10="" project3canonical/cases/correct/23.code="" program="" int="" x,="" y,="" z;="" int="" a,="" b,="" c;="" begin="" x="5;" y="10;" if="" !(x="">< y)="" then="" while="" (0="" -="" 10)="">< x="" begin="" x="x" -="" 1;="" endwhile="" else="" while="" y=""><= 15="" begin="" y="y+2;" endwhile="" endif="" output="" y;="" end="" project3canonical/cases/correct/23.data="" 0="" 1="" 2="" 3="" 4="" 5="" 6="" 7="" 8="" 9="" project3canonical/cases/correct/23.expected="" 16="" project3canonical/cases/correct/23.student="" 16="" project3canonical/cases/correct/24.code="" program="" int="" x,="" y,="" z;="" begin="" x="5;" y="10;" while="" !(x="=y)" begin="" if="" x="">=><= y="" then="" x="x" +="" 2;="" endif="" if="" !(x="">=>< y)="" then="" y="y+1;" endif="" endwhile="" output="" x;="" output="" y;="" end="" project3canonical/cases/correct/24.data="" 0="" 1="" 2="" 3="" 4="" 5="" 6="" 7="" 8="" 9="" project3canonical/cases/correct/24.expected="" 11="" 11="" project3canonical/cases/correct/24.student="" 11="" 11="" project3canonical/cases/correct/25.code="" program="" int="" x,="" n;="" begin="" n="5;" x="4;" while="" !(x="=0)" begin="" n="n*x;" x="x-1;" output="" n;="" endwhile="" end="" project3canonical/cases/correct/25.data="" 0="" 1="" 2="" 3="" 4="" 5="" 6="" 7="" 8="" 9="" project3canonical/cases/correct/25.expected="" 20="" 60="" 120="" 120="" project3canonical/cases/correct/25.student="" 20="" 60="" 120="" 120="" project3canonical/cases/correct/26.code="" program="" int="" x,="" n;="" begin="" x="4;" while="" !(x="=0)" begin="" input="" n;="" x="x-1;" output="" n;="" endwhile="" end="" project3canonical/cases/correct/26.data="" 0="" 1="" 2="" 3="" 4="" 5="" 6="" 7="" 8="" 9="" project3canonical/cases/correct/26.expected="" 0="" 1="" 2="" 3="" project3canonical/cases/correct/26.student="" 0="" 1="" 2="" 3="" project3canonical/cases/correct/27.code="" program="" ref="" x;="" int="" n;="" begin="" x="new;" x="4;" while="" !(x="=0)" begin="" input="" n;="" x="x-1;" output="" n;="" endwhile="" end="" project3canonical/cases/correct/27.data="" 0="" 1="" 2="" 3="" 4="" 5="" 6="" 7="" 8="" 9="" project3canonical/cases/correct/27.expected="" 0="" 1="" 2="" 3="" project3canonical/cases/correct/27.student="" 0="" 1="" 2="" 3="" project3canonical/cases/correct/28.code="" program="" begin="" ref="" x;="" x="new;" x="0-10;" output="" x;="" end="" project3canonical/cases/correct/28.data="" 0="" 1="" 2="" 3="" 4="" 5="" 6="" 7="" 8="" 9="" project3canonical/cases/correct/28.expected="" -10="" project3canonical/cases/correct/28.student="" -10="" project3canonical/cases/correct/29.code="" program="" int="" x;="" begin="" x="1;" ref="" y,="" z;="" y="new;" y="10;" z="new;" z="100;" while="" !(x="=y)" begin="" x="z" -="" x;="" while="" 1=""><= z="" begin="" z="z-1;" x="y;" endwhile="" endwhile="" output="" x;="" end="" project3canonical/cases/correct/29.data="" 0="" 1="" 2="" 3="" 4="" 5="" 6="" 7="" 8="" 9="" project3canonical/cases/correct/29.expected="" 10="" project3canonical/cases/correct/29.student="" 10="" project3canonical/cases/correct/3.code="" program="" int="" x;="" begin="" x="2;" x="x+x*x;" output="" x;="" end="" project3canonical/cases/correct/3.data="" 0="" 1="" 2="" 3="" 4="" 5="" 6="" 7="" 8="" 9="" project3canonical/cases/correct/3.expected="" 6="" project3canonical/cases/correct/3.student="" 6="" project3canonical/cases/correct/30.code="" program="" begin="" ref="" x,="" y,="" z;="" x="new;" y="ref" x;="" z="ref" y;="" x="10;" while="" !(z="=0)" begin="" x="x-1;" ref="" y;="" y="new;" y="1;" while="" !(y="=64)" begin="" y="2*y;" output="" y;="" endwhile="" endwhile="" end="" project3canonical/cases/correct/30.data="" 0="" 1="" 2="" 3="" 4="" 5="" 6="" 7="" 8="" 9="" project3canonical/cases/correct/30.expected="" 2="" 4="" 8="" 16="" 32="" 64="" 2="" 4="" 8="" 16="" 32="" 64="" 2="" 4="" 8="" 16="" 32="" 64="" 2="" 4="" 8="" 16="" 32="" 64="" 2="" 4="" 8="" 16="" 32="" 64="" 2="" 4="" 8="" 16="" 32="" 64="" 2="" 4="" 8="" 16="" 32="" 64="" 2="" 4="" 8="" 16="" 32="" 64="" 2="" 4="" 8="" 16="" 32="" 64="" 2="" 4="" 8="" 16="" 32="" 64="" project3canonical/cases/correct/30.student="" 2="" 4="" 8="" 16="" 32="" 64="" 2="" 4="" 8="" 16="" 32="" 64="" 2="" 4="" 8="" 16="" 32="" 64="" 2="" 4="" 8="" 16="" 32="" 64="" 2="" 4="" 8="" 16="" 32="" 64="" 2="" 4="" 8="" 16="" 32="" 64="" 2="" 4="" 8="" 16="" 32="" 64="" 2="" 4="" 8="" 16="" 32="" 64="" 2="" 4="" 8="" 16="" 32="" 64="" 2="" 4="" 8="" 16="" 32="" 64="" project3canonical/cases/correct/4.code="" program="" int="" x;="" begin="" int="" y;="" y="10;" if="" 1="=" 1="" then="" y="11;" output="" y;="" endif="" end="" project3canonical/cases/correct/4.data="" 0="" 1="" 2="" 3="" 4="" 5="" 6="" 7="" 8="" 9="" project3canonical/cases/correct/4.expected="" 11="" project3canonical/cases/correct/4.student="" 11="" project3canonical/cases/correct/5.code="" program="" int="" x;="" begin="" if="" 1="=" 1="" then="" x="1;" else="" x="2;" endif="" output="" x;="" end="" project3canonical/cases/correct/5.data="" 0="" 1="" 2="" 3="" 4="" 5="" 6="" 7="" 8="" 9="" project3canonical/cases/correct/5.expected="" 1="" project3canonical/cases/correct/5.student="" 1="" project3canonical/cases/correct/6.code="" program="" int="" y;="" begin="" int="" x;="" while="" 1="">=>< 1="" begin="" x="1;" endwhile="" output="" 4;="" end="" project3canonical/cases/correct/6.data="" 0="" 1="" 2="" 3="" 4="" 5="" 6="" 7="" 8="" 9="" project3canonical/cases/correct/6.expected="" 4="" project3canonical/cases/correct/6.student="" 4="" project3canonical/cases/correct/7.code="" program="" int="" x;="" begin="" input="" x;="" if="" x="=x" then="" int="" x;="" x="99;" endif="" output="" x;="" end="" project3canonical/cases/correct/7.data="" 0="" 1="" 2="" 3="" 4="" 5="" 6="" 7="" 8="" 9="" project3canonical/cases/correct/7.expected="" 0="" project3canonical/cases/correct/7.student="" 0="" project3canonical/cases/correct/8.code="" program="" int="" x,="" y,="" z;="" begin="" input="" x;="" output="" 4;="" end="" project3canonical/cases/correct/8.data="" 0="" 1="" 2="" 3="" 4="" 5="" 6="" 7="" 8="" 9="" project3canonical/cases/correct/8.expected="" 4="" project3canonical/cases/correct/8.student="" 4="" project3canonical/cases/correct/9.code="" program="" int="" x;="" begin="" x="10;" output="" x;="" end="" project3canonical/cases/correct/9.data="" 0="" 1="" 2="" 3="" 4="" 5="" 6="" 7="" 8="" 9="" project3canonical/cases/correct/9.expected="" 10="" project3canonical/cases/correct/9.student="" 10="" project3canonical/cases/error/01.code="" program="" int="" x,="" y;="" begin="" x="100;" while="">
<"); break;="" case 2:="">");><="); break;="" }="" expr2.print();="" }="" ="" boolean execute() {="" boolean result =" false;" int lhs =" expr1.execute();" int rhs =" expr2.execute();" switch(option) {="" case 0:="" result =" lhs == rhs;" break;="" case 1:="" result ="">=");>< rhs; break;="" case 2:="" result =""> rhs;><= rhs; break;="" }="" return result;="" }="" }="" project3canonical/java/cond.java="" project3canonical/java/cond.java="" class cond {="" cmpr cmpr;="" cond cond;="" ="" void parse() {="" if (parser.scanner.currenttoken() ="= Core.NEGATION){" parser.scanner.nexttoken();="" parser.expectedtoken(core.lparen);="" parser.scanner.nexttoken();="" cond =" new Cond();" cond.parse();="" parser.expectedtoken(core.rparen);="" parser.scanner.nexttoken();="" } else {="" cmpr =" new Cmpr();" cmpr.parse();="" if (parser.scanner.currenttoken() ="= Core.OR) {" parser.scanner.nexttoken();="" cond =" new Cond();" cond.parse();="" }="" }="" }="" ="" void print() {="" if (cmpr ="= null) {" system.out.print("!(");="" cond.print();="" system.out.print(")");="" } else {="" cmpr.print();="" if (cond !=" null) {" system.out.print(" or ");="" cond.print();="" }="" }="" }="" ="" boolean execute() {="" boolean result =" false;" if (cmpr ="= null) {" result =" !cond.execute();" } else {="" result =" cmpr.execute();" if (cond !=" null) {" result =" result || cond.execute();" }="" }="" return result;="" }="" }="" project3canonical/java/core.java="" project3canonical/java/core.java="" enum core {="" program,="" begin,="" end,="" new,="" define,="" extends,="" class,="" endclass,="" int,="" endfunc,="" if,="" then,="" else,="" while,="" endwhile,="" endif,="" semicolon,="" lparen,="" rparen,="" comma,="" assign,="" negation,="" or,="" equal,="" less,="" lessequal,="" add,="" sub,="" mult,="" input,="" output,="" ref,="" const,="" id,="" eof,="" error;="" }="" project3canonical/java/decl.java="" project3canonical/java/decl.java="" class decl implements stmt {="" declint declint;="" declclass declclass;="" ="" public void parse() {="" if (parser.scanner.currenttoken() ="= Core.INT) {" declint =" new DeclInt();" declint.parse();="" } else {="" declclass =" new DeclClass();" declclass.parse();="" }="" }="" ="" public void print(int indent) {="" if (declint !=" null) {" declint.print(indent);="" } else {="" declclass.print(indent);="" }="" }="" ="" public void execute() {="" if (declint !=" null) {" declint.execute();="" } else {="" declclass.execute();="" }="" }="" }="" project3canonical/java/declclass.java="" project3canonical/java/declclass.java="" class declclass {="" idlist list;="" ="" void parse() {="" parser.expectedtoken(core.ref);="" parser.scanner.nexttoken();="" list =" new IdList();" list.parse();="" parser.expectedtoken(core.semicolon);="" parser.scanner.nexttoken();="" }="" ="" void print(int indent) {="" for (int i="">= rhs;>