This is the formula interpreter of openLCA. The formula parser
is generated from the grammar file
(FormulaParser.jj)
using JavaCC. The last version was generated with
JavaCC 5.0 (see the generate_parser.bat
script).
Add this dependency to your project:
<dependency>
<groupId>org.openlca</groupId>
<artifactId>olca-formula</artifactId>
<version>2.0.0</version>
</dependency>
See the tests for examples how the interpreter can be used.