summaryrefslogtreecommitdiff
path: root/vendor/github.com/hashicorp/hil/ast/arithmetic_op.go
blob: 18880c60473842e9ecf74ee322ed47d99069710d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
package ast

// ArithmeticOp is the operation to use for the math.
type ArithmeticOp int

const (
	ArithmeticOpInvalid ArithmeticOp = 0

	ArithmeticOpAdd ArithmeticOp = iota
	ArithmeticOpSub
	ArithmeticOpMul
	ArithmeticOpDiv
	ArithmeticOpMod

	ArithmeticOpLogicalAnd
	ArithmeticOpLogicalOr

	ArithmeticOpEqual
	ArithmeticOpNotEqual
	ArithmeticOpLessThan
	ArithmeticOpLessThanOrEqual
	ArithmeticOpGreaterThan
	ArithmeticOpGreaterThanOrEqual
)