Add stub for judge action @var.

This commit is contained in:
2023-06-06 09:44:00 +08:00
parent 65c225e93b
commit 754e3be906

View File

@@ -20,6 +20,9 @@ namespace Cryville.Crtr {
else if (a.Remove("score")) {
return new Score(a, k);
}
else if (a.Remove("var")) {
return new Variable(a, new Identifier(k));
}
throw new FormatException("Invalid judge action format.");
}
public readonly HashSet<string> annotations;
@@ -64,5 +67,15 @@ namespace Cryville.Crtr {
return new JudgeActionResult();
}
}
public class Variable : JudgeAction {
readonly Identifier _target;
public Variable(IEnumerable<string> a, Identifier k) : base(a) {
_target = k;
}
internal override JudgeActionResult Execute(IJudge judge, JudgeEvent ev, float time, PdtExpression exp, bool onMiss, int depth, int index) {
// throw new NotImplementedException();
return new JudgeActionResult();
}
}
}
}