-
Notifications
You must be signed in to change notification settings - Fork 15
Getting Started
Tomasz Fijalkowski edited this page Oct 7, 2016
·
4 revisions
To use Opel, just add this dependency to your project:
compile group: 'pl.allegro.tech', name: 'opel', version: '1.0.1'<dependency>
<groupId>pl.allegro.tech</groupId>
<artifactId>opel</artifactId>
<version>1.0.1</version>
</dependency>And you’re ready to go!
OpelEngine engine = OpelEngineBuilder.create().build()String expression = "2 * 3 + 4";
engine.eval(expression)
.whenComplete((result, error) -> System.out.println(result));