Implement IS_ARRAY, IS_BOOL, IS_FINITE_NUMBER, IS_INTEGER, IS_NULL, IS_NUMBER, IS_OBJECT, IS_PRIMITIVE, IS_STRING functions

This commit is contained in:
Pijus Kamandulis
2024-02-24 22:29:33 +02:00
parent 2431307a12
commit b29608e4c8
7 changed files with 1789 additions and 368 deletions

View File

@@ -81,14 +81,12 @@ type FunctionCallType string
const (
FunctionCallStringEquals FunctionCallType = "StringEquals"
FunctionCallIsDefined FunctionCallType = "IsDefined"
FunctionCallConcat FunctionCallType = "Concat"
FunctionCallContains FunctionCallType = "Contains"
FunctionCallEndsWith FunctionCallType = "EndsWith"
FunctionCallStartsWith FunctionCallType = "StartsWith"
FunctionCallIndexOf FunctionCallType = "IndexOf"
FunctionCallToString FunctionCallType = "ToString"
FunctionCallIn FunctionCallType = "In"
FunctionCallUpper FunctionCallType = "Upper"
FunctionCallLower FunctionCallType = "Lower"
FunctionCallLeft FunctionCallType = "Left"
@@ -101,6 +99,19 @@ const (
FunctionCallRTrim FunctionCallType = "RTrim"
FunctionCallSubstring FunctionCallType = "Substring"
FunctionCallTrim FunctionCallType = "Trim"
FunctionCallIsDefined FunctionCallType = "IsDefined"
FunctionCallIsArray FunctionCallType = "IsArray"
FunctionCallIsBool FunctionCallType = "IsBool"
FunctionCallIsFiniteNumber FunctionCallType = "IsFiniteNumber"
FunctionCallIsInteger FunctionCallType = "IsInteger"
FunctionCallIsNull FunctionCallType = "IsNull"
FunctionCallIsNumber FunctionCallType = "IsNumber"
FunctionCallIsObject FunctionCallType = "IsObject"
FunctionCallIsPrimitive FunctionCallType = "IsPrimitive"
FunctionCallIsString FunctionCallType = "IsString"
FunctionCallIn FunctionCallType = "In"
)
type FunctionCall struct {