CS154
Chris Pollett
Mar 16, 2020
int parseWhile(String program, int whereParsing, MachineCode whileCode) { MachineCode expressionCode = new MachineCode(); MachineCode statementCode = new MachineCode(); whereParsing += 5; //advance past the keyword 'while' whereParsing = parseExpression(program, whereParsing, expressionCode); whereParsing = parseStatement(program, whereParsing, statementCode); // some code to build whileCode from expressionCode and statementCode return whereParsing; }
Which of the following is true?