arithmetic_factor ::= [{+|-}] arithmetic_primary
@see ArithmeticFactor @version 2.4 @since 2.4 @author Pascal Filion
610611612613614615616617618619620621622623
@Override public void visit(ArithmeticFactor expression) { expression.getExpression().accept(this); ArithmeticFactorStateObject stateObject = new ArithmeticFactorStateObject( parent, expression.isPlusSign(), this.stateObject ); stateObject.setExpression(expression); this.stateObject = stateObject; }
118119120121122123124125
add(stateObject); return (T) this; } protected void arithmetic(boolean plusSign) { StateObject stateObject = new ArithmeticFactorStateObject(parent, plusSign, pop()); add(stateObject); }
117118119120121122123124
@Override public void visit(ArithmeticFactor expression) { expression.getExpression().accept(this); ArithmeticFactorStateObject stateObject = new ArithmeticFactorStateObject( parent, expression.isPositive(), this.stateObject ); stateObject.setExpression(expression); this.stateObject = stateObject; }