BadScript 2
Loading...
Searching...
No Matches
BadExpressionValidator.cs
Go to the documentation of this file.
2
7
11public abstract class BadExpressionValidator
12{
18 public abstract void Validate(BadExpressionValidatorContext context, BadExpression expr);
19}
20
26 where T : BadExpression
27{
33 protected abstract void Validate(BadExpressionValidatorContext context, T expr);
34
36 public override void Validate(BadExpressionValidatorContext context, BadExpression expr)
37 {
38 if (expr is T t)
39 {
40 Validate(context, t);
41 }
42 }
43}
Base Implementation for all Expressions used inside the Script.
void Validate(BadExpressionValidatorContext context, BadExpression expr)
Validates the given expression.
override void Validate(BadExpressionValidatorContext context, BadExpression expr)
void Validate(BadExpressionValidatorContext context, T expr)
Validates the given expression.
Contains the Expressions for the BadScript2 Language.
Contains the Comparison Operators for the BadScript2 Language.