public override void Visit(MultiplicationExpression me) { // todo me.LHS.Accept(this); sb.Append("*"); me.RHS.Accept(this); }
static void Main(string[] args) { var exp = new MultiplicationExpression(new Value(1), new AdditionExpression(new Value(2), new Value(3))); var ev = new ExpressionPrinter(); exp.Accept(ev); Console.WriteLine($"{ev.ToString()}"); }
public abstract void Visit(MultiplicationExpression me);