Giter VIP home page Giter VIP logo

cel-dart's People

Contributors

atn832 avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

cel-dart's Issues

Lists don't seem to work in web app

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.

Is it possible to use overloads?

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?

timestamp & duration support

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.