Support Binary Math Operators
Signed-off-by: Will Hawkins <hawkinsw@obs.cr>
This commit is contained in:
@@ -58,6 +58,7 @@ public struct SelectExpression {
|
||||
}
|
||||
|
||||
public typealias NamedBinaryOperatorEvaluator = (String, P4Type, (P4Value, P4Value) -> P4Value)
|
||||
public typealias BinaryOperatorEvaluator = (P4Value, P4Value) -> P4Value
|
||||
public struct BinaryOperatorExpression {
|
||||
public let evaluator: NamedBinaryOperatorEvaluator
|
||||
public let left: EvaluatableExpression
|
||||
|
||||
Reference in New Issue
Block a user