Example #1
0
 public virtual void Visit(RppBinOp node)
 {
 }
Example #2
0
 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);
     }
 }
Example #3
0
 public override void Visit(RppBinOp node)
 {
     node.Left.Accept(this);
     node.Right.Accept(this);
 }