Methods to check arithmetic expressions, cast to number if needed,
return number node.
Methods
-
add(node)
-
[ 'add' a b ]casts tonumber.Parameters:
Name Type Description nodeArray to check.
-
divide(node)
-
[ 'divide' a b ]casts tonumber.Parameters:
Name Type Description nodeArray to check.
-
minus(node)
-
[ 'minus' b ]casts tonumber.Parameters:
Name Type Description nodeArray to check.
-
multiply(node)
-
[ 'multiply' a b ]casts tonumber.Parameters:
Name Type Description nodeArray to check.
-
number(node)
-
[ 'number' value ]expectsnumbervalue.Parameters:
Name Type Description nodeArray to check.
-
power(node)
-
[ 'power' a b ]casts tonumber.Parameters:
Name Type Description nodeArray to check.
-
subtract(node)
-
[ 'subtract' a b ]casts tonumber.Parameters:
Name Type Description nodeArray to check.