google / cel-java

Fast, portable, non-Turing complete expression evaluation with gradual typing (Java)

Home Page:https://cel.dev

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Example code

buildbreaker opened this issue Β· comments

πŸ‘‹ I'm looking to give this repository a shot but I'm finding that the examples in the README are incomplete and the Examples directory in the table of contents goes to a 404.

Do you happen to have a snippet of how to construct a CelProgram and evaluate a simple expression with an Activation?

commented

Hi, here's an example I've crafted with a handrolled Checked expression. Currently, you must use a compiler from other stacks such as cel-go to produce a checked expression, thus the missing examples.

Once the CEL-Java compiler is fully open sourced, we hope to provide some canonical materials demonstrating its usage. Hopefully this helps.