ASTNode* Parser::statement() { _stmtNum++; if (isKeyword("while")) { return whileStmt(); } if (isKeyword("if")) { return ifStmt(); } if (isKeyword("call")) { return callStmt(); } if (isName()) { return assignStmt(); } throw ParseException(_stmtNum, _token, "Unable to parse statement"); }
SNode SNode::multiplyAssignStmt() const { ENTERMETHOD(); CHECKNODETYPE(*this,NT_ASSIGN); SNode result = assignStmt(left(), right().multiplyParentheses()); RETURNNODE( result ); }