public virtual void Visit(RppBinOp node) { }
private void GenerateCodeForArithmOp(RppBinOp node, IReadOnlyDictionary<string, OpCode> arithmToIl) { OpCode opCode; if (arithmToIl.TryGetValue(node.Op, out opCode)) { node.Left.Accept(this); node.Right.Accept(this); _body.Emit(opCode); } else { throw new Exception("Can't generate code for: " + node.Op); } }
public override void Visit(RppBinOp node) { node.Left.Accept(this); node.Right.Accept(this); }