12 lines
257 B
C#
12 lines
257 B
C#
namespace Bts.ArithmeticExpressions;
|
|
|
|
class IntegerConstant : IArithmeticExpression<int> {
|
|
readonly int value;
|
|
|
|
public IntegerConstant(int value) =>
|
|
this.value = value;
|
|
|
|
public int Evaluate(IDictionary<string, object?> env) =>
|
|
value;
|
|
}
|