21 lines
570 B
C#
21 lines
570 B
C#
|
using System;
|
|||
|
using System.Collections.Generic;
|
|||
|
using System.Linq;
|
|||
|
using System.Text;
|
|||
|
using System.Threading.Tasks;
|
|||
|
|
|||
|
namespace ShintenScript
|
|||
|
{
|
|||
|
public class ASTNodeDivide : ASTNodeBinaryNumericOperator
|
|||
|
{
|
|||
|
public ASTNodeDivide(IASTNode lhs, IASTNode rhs) : base(lhs, rhs) { }
|
|||
|
|
|||
|
public override object CreateFunction11(Func<ExecutionContext, float> left, Func<ExecutionContext, float> right)
|
|||
|
{
|
|||
|
return (Func<ExecutionContext, float>)(ctx => left(ctx) / right(ctx));
|
|||
|
}
|
|||
|
|
|||
|
public override string Op() => "/";
|
|||
|
}
|
|||
|
}
|