Evaluation¶
ratus
¶
ratus - A simple expression language.
ratus is a simple expression language intended to be used to easily and safely extend applications in a controllable way. It provides the following features:
- Callable functions
- These can be injected when evaluating the expression but they cannot be defined within the expression language
if
is provided by default but can be overridden if you really want to
- Simple math operations, more advanced functions can be implemented as
functions
- Addition (
+
) - Subtractions (
-
) - Multiplication (
*
) - Division (
/
)
- Addition (
- Comparison operators
- Equal (
=
) - Not equal (
!=
) - Greater than (
>
) - Greater than or equal (
>=
) - Less than (
<
) - Less than or equal (
<=
)
- Equal (
- Literals
- String (double and single quotes)
- Integer (positive and negative)
- Float (positive and negative)