/** * Calculates the line and stores the result to destination variable. * While doing operations, prints intermediate step information for stacks * and postfix expressions. * @param codeLine The code line which will be calculated. */ void calculateLine(struct code_line *codeLine) { printf("----> Arithmetic Expression: %s\n", codeLine->lineContentInfix); printf("--> Infix-Postfix Conversion\n"); infixToPostfix(codeLine); printf("--> Parsing Postfix Expression\n"); parsePostfixExpression(codeLine, codeLine->lineContentInfix[0]); printf("----> Operations completed for this arithmetic expression.\n\n\n"); }
bool DebugInterface::parseExpression(PostfixExpression& exp, u64& dest) { MipsExpressionFunctions funcs(this); return parsePostfixExpression(exp,&funcs,dest); }