mocha
is a lightweight, fast and efficient Molang lexer, parser, interpreter and compiler
for Java 8+. Molang is a simple expression-based language designed for fast and data-driven
calculation of values at run-time.
Its focus is to enable low-level systems like animation to support flexible data-driven behavior, while staying highly performant.
Pretty much everything in this language evaluates to a number; if something doesn't evaluate to a number, you can use an operator to make it into one. You can basically just think of Molang as one big math equation.
This library lets programmers easily evaluate Molang expressions and bind objects or functions so that they can be called from the evaluated expressions.
Check the documentation for installation, usage and some more information for this project