InequalityExpressionMatcher
Struct that is used to validate inequality expressions.
-
InequalitySignof expression to be matched.Declaration
Swift
let sign: InequalitySign -
A value that will be used during validation to compare to passed one.
Declaration
Swift
let value: Double -
Initialization method takes few parameters that has been fetched from expression parser.
Declaration
Swift
init(sign: InequalitySign, value: Double)Parameters
signInequalitySignparsed from expression pattern.valuevalue that will be used to compare.
Return Value
inquality expression matcher.
-
Method used to validate passed value and check if it match to expression.
Declaration
Swift
func validate(val: String) -> BoolParameters
valvalue passed as
Stringthat will be converted toDouble.Return Value
trueifvalmatch expression pattern, otherwisefalse.
View on GitHub
InequalityExpressionMatcher Struct Reference