Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

shijinglu/lure-java

Open more actions menu

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

lure-java

A DSL evaluator that evaluates expression like APP_VERSION > v3.2.1 && USER_NAME like Tom*

Quick Start

Map<String, IData> ctx = new Expr.ContextBuilder()
            .addDoubleContext("PI", 3.14)
            .addCustomizedContext("APP_VERSION", "v3.2.1", "semver")
            .addStringContext("USER_NAME", "Tom Cruise")
            .addIntContext("USER_ID", 123)
            .addStringContext("environment", "Dev")
            .build();
            
boolean res = Expr.compile("APP_VERSION > `v3.2.1` && USER_NAME like `Tom*`").eval(context);

assert res;

About

Java implementation of the Lu's Rule Engine

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Morty Proxy This is a proxified and sanitized view of the page, visit original site.