qamp/Qrakhen.Qamp.Core/Compilation/Rule.cs

11 lines
375 B
C#

namespace Qrakhen.Qamp.Core.Compilation;
public delegate void RuleDelegate(Digester digester, bool canAssign);
public readonly struct Rule(RuleDelegate? prefix = null, RuleDelegate? infix = null, Weight weight = Weight.None)
{
public readonly RuleDelegate? Prefix = prefix;
public readonly RuleDelegate? Infix = infix;
public readonly Weight Weight = weight;
}