API Reference Elex v#0.2.1
View SourceModules
Elex is an expression language library for parsing, validating, and evaluating expressions.
Ash resource validation for Elex expression strings.
Holds variables and functions available when parsing and evaluating expressions.
Evaluates a parsed expression AST to a runtime value.
Behaviour for implementing custom Elex functions.
Returns the absolute value of x.
Returns whether x is within the inclusive range between low and high.
Returns the smallest integer greater than or equal to x.
Clamps a value to the inclusive range between min and max.
Returns the first non-null argument.
Concatenates two strings.
Returns whether haystack contains needle.
Returns whether text ends with suffix.
Returns the largest integer less than or equal to x.
Returns value1 if condition is true, otherwise value2.
Returns the length of a string as a decimal.
Returns the lowercase form of a string.
Returns the larger of two or more values.
Returns the smaller of two or more values.
Returns the floored modulo of a divided by b (sign follows the divisor).
Returns the mathematical constant π (3.14159...).
Returns base raised to the power of exponent.
Returns the remainder of a divided by b (sign follows the dividend).
Returns x rounded to the nearest integer.
Returns the square root of x.
Returns whether text starts with prefix.
Returns a string with leading and trailing whitespace removed.
Returns the uppercase form of a string.
Inverts simple arithmetic expressions with a single variable.
Provides human-readable labels for expression types.
Parses Elex expression strings into AST tuples.
Translates low-level parser failures into human-readable error messages.
Validates a parsed expression AST for type correctness.
A named value with a type used during expression validation and evaluation.