atn832 / cel-dart Goto Github PK
View Code? Open in Web Editor NEWLicense: MIT License
License: MIT License
Hi,
I was trying to use cel in a flutter web application. It looks like the parser has an issue with lists.
The code runs fine when running the tests, but when I run the same code in the context of my web app, I get parser errors on the debug console and the list is parsed as an empty list. I looked into the generated ast in the debugger and the other parts of the expression look reasonable, just the list doesn't have any elements.
final environment = Environment.standard();
final ast = environment.compile("value in ['london', 'paris']");
Debugging console output:
line 1:10 extraneous input ''london'' expecting {']', ','}
line 1:20 extraneous input ''paris'' expecting ']'
I also tried simpler expressions, e.g. "[1]" and still get an error message and the result is an empty list.
I am not 100% sure that the issue is related to the web target, but it's the only difference between the test and application execution I can think of right now.
Hi, I'm trying to understand if it's possible to use this library with existing expressions from cel-go. In cel-go it's possible to declare custom functions (overloads) and use in expressions. README says that this project doesn't support passing custom environment options. Does it also mean that it's not possible to specify overloads?
If so, any plans to implement it?
Hi,
We are evaluating if CEL is a good fit for our project. However, we would need timestamp and duration support.
We would be interested in implementing this feature.
I wanted to check if you can give an estimation of the difficulty of adding timestamp and duration support? Is the higher complexity the reason it was not initially implemented?
Thank you in advance
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.