We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
My code:
use cel_interpreter::Program; fn main() { Program::compile("3-1").unwrap(); }
I expect this code to run without any issue, but the actual result:
$ cargo run Compiling pubsub v0.1.0 (/home/user/test) Finished `dev` profile [unoptimized + debuginfo] target(s) in 1.48s Running `target/debug/test` thread 'main' panicked at src/main.rs:5:29: called `Result::unwrap()` on an `Err` value: ParseError { msg: "unrecognized token: '-1'", expected: ["\"!=\"", "\"%\"", "\"&&\"", "\"*\"", "\"+\"", "\"-\"", "\".\"", "\"/\"", "\"<\"", "\"<=\"", "\"==\"", "\">\"", "\">=\"", "\"?\"", "\"[\"", "\"in\"", "\"{\"", "\"||\""], span: Span { start: Some(Location { line: 0, column: 1, absolute: 1 }), end: Some(Location { line: 0, column: 3, absolute: 3 }) } } note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
The text was updated successfully, but these errors were encountered:
Yes, it might be that the CEL parser is not handling the '-' sign properly.
Sorry, something went wrong.
No branches or pull requests
My code:
I expect this code to run without any issue, but the actual result:
The text was updated successfully, but these errors were encountered: