Bump cel-go to v0.12.3

This commit is contained in:
Cici Huang
2022-07-13 20:19:59 +00:00
parent 51fcfb97ce
commit c67e914373
10 changed files with 249 additions and 54 deletions

View File

@@ -141,3 +141,13 @@ func Precedence(symbol string) int {
}
return op.precedence
}
// Arity returns the number of argument the operator takes
// -1 is returned if an undefined symbol is provided
func Arity(symbol string) int {
op, found := operatorMap[symbol]
if !found {
return -1
}
return op.arity
}