cuelang.org/go@v0.10.1/cue/op.go (about) 1 // Copyright 2018 The CUE Authors 2 // 3 // Licensed under the Apache License, Version 2.0 (the "License"); 4 // you may not use this file except in compliance with the License. 5 // You may obtain a copy of the License at 6 // 7 // http://www.apache.org/licenses/LICENSE-2.0 8 // 9 // Unless required by applicable law or agreed to in writing, software 10 // distributed under the License is distributed on an "AS IS" BASIS, 11 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 // See the License for the specific language governing permissions and 13 // limitations under the License. 14 15 package cue 16 17 import ( 18 "cuelang.org/go/internal/core/adt" 19 ) 20 21 // Op indicates the operation at the top of an expression tree of the expression 22 // use to evaluate a value. 23 type Op = adt.Op 24 25 // Values of Op. 26 const ( 27 NoOp Op = adt.NoOp 28 29 AndOp Op = adt.AndOp 30 OrOp Op = adt.OrOp 31 32 SelectorOp Op = adt.SelectorOp 33 IndexOp Op = adt.IndexOp 34 SliceOp Op = adt.SliceOp 35 CallOp Op = adt.CallOp 36 37 BooleanAndOp Op = adt.BoolAndOp 38 BooleanOrOp Op = adt.BoolOrOp 39 40 EqualOp Op = adt.EqualOp 41 NotOp Op = adt.NotOp 42 NotEqualOp Op = adt.NotEqualOp 43 LessThanOp Op = adt.LessThanOp 44 LessThanEqualOp Op = adt.LessEqualOp 45 GreaterThanOp Op = adt.GreaterThanOp 46 GreaterThanEqualOp Op = adt.GreaterEqualOp 47 48 RegexMatchOp Op = adt.MatchOp 49 NotRegexMatchOp Op = adt.NotMatchOp 50 51 AddOp Op = adt.AddOp 52 SubtractOp Op = adt.SubtractOp 53 MultiplyOp Op = adt.MultiplyOp 54 FloatQuotientOp Op = adt.FloatQuotientOp 55 IntQuotientOp Op = adt.IntQuotientOp 56 IntRemainderOp Op = adt.IntRemainderOp 57 IntDivideOp Op = adt.IntDivideOp 58 IntModuloOp Op = adt.IntModuloOp 59 60 InterpolationOp Op = adt.InterpolationOp 61 )