Skip to content

Commit 5bb45f2

Browse files
Add expression semantics
Signed-off-by: Yogesh Deshpande <[email protected]>
1 parent 595af4f commit 5bb45f2

File tree

1 file changed

+9
-6
lines changed

1 file changed

+9
-6
lines changed

comid/tdx-profile/numeric_expression.go

+9-6
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,13 @@
33

44
package tdx
55

6-
// Define a structure for NumericExpression
7-
type NumericExpression struct {
8-
Operator NumericOperator
9-
Type NumericType
10-
}
6+
type NumericExpression []interface{}
117

12-
type NumericExpressions []NumericExpression
8+
func NewExpression(a NumericOperator, b NumericType) (*NumericExpression, error) {
9+
// check for validity of a
10+
// check for validity of b
11+
expression := NumericExpression{
12+
a, b,
13+
}
14+
return &expression, nil
15+
}

0 commit comments

Comments
 (0)