Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Example code #68

Closed
buildbreaker opened this issue Jun 5, 2023 · 1 comment
Closed

Example code #68

buildbreaker opened this issue Jun 5, 2023 · 1 comment

Comments

@buildbreaker
Copy link

👋 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?

@l46kok
Copy link
Collaborator

l46kok commented Jun 6, 2023

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants