19 lines
477 B
C#
19 lines
477 B
C#
namespace Bts.BooleanExpressions;
|
|
|
|
using System.Collections.Immutable;
|
|
|
|
public class Definition {
|
|
public Definition(string id, ImmutableList<string> args, IBooleanExpression exp) {
|
|
this.id = id;
|
|
this.args = args;
|
|
this.exp = exp;
|
|
}
|
|
|
|
public string id { get; }
|
|
public ImmutableList<string> args { get; }
|
|
public IBooleanExpression exp { get; }
|
|
|
|
public override string ToString() =>
|
|
$"{id}({string.Join(", ", args)} | {exp?.GetType()})";
|
|
}
|