Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Proto types#116

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Draft
JonasHedEng wants to merge3 commits intocel-rust:master
base:master
Choose a base branch
Loading
fromJonasHedEng:proto-types
Draft

Conversation

JonasHedEng
Copy link
Contributor

Based off of#81 . I made an attempt at some initial conversion to/from proto expressions. Does the expression IDs exist somewhere or are they computable as of now? I skipped it for now. I'll try to pick it up at a later point, but please feel free to pick it up from here!

I think what "should" be implemented is actually to/fromParsedExpr andCheckedExpr but sinceExpr is the underlying type, I went for that to begin with.

clarkmcc reacted with eyes emoji
flokliand others added3 commitsDecember 5, 2024 15:17
These are vendored fromhttps://github.com/google/cel-spec,proto/cel/expr/ at ed066e332b7acc3dbf68e65e0001061539d25e83.The other files only contain messages for interacting with a CELinterpreter, but don't represent ASTs.
This adds the cel_interpreter::proto mod, exposing the cel.expr protobuftypes, as well as the necessary plumbing to generate the typedefinitions at compile time.The outcome can be best explored by invoking `cargo doc` with the`proto` feature enabled, and starting at the`cel_interpreter::proto::[Parsed]Expr` struct.
@alexsnaps
Copy link
Contributor

I think you might be interested inthis PR that reuses the original antlr grammar and creates an AST aligned with the one of the go code (and java & C++).Expr are wrapped inIdedExpr that do have an ID.

Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers
No reviews
Assignees
No one assigned
Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

3 participants
@JonasHedEng@alexsnaps@flokli

[8]ページ先頭

©2009-2025 Movatter.jp