Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: google/cel-go
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v0.17.8
Choose a base ref
...
head repository: google/cel-go
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: v0.20.1
Choose a head ref

Commits on Jul 20, 2023

  1. Bump word-wrap from 1.2.3 to 1.2.4 in /repl/appengine/web (#783)

    Bumps [word-wrap](https://github.com/jonschlinkert/word-wrap) from 1.2.3 to 1.2.4.
    - [Release notes](https://github.com/jonschlinkert/word-wrap/releases)
    - [Commits](jonschlinkert/word-wrap@1.2.3...1.2.4)
    
    ---
    updated-dependencies:
    - dependency-name: word-wrap
      dependency-type: indirect
    ...
    
    Signed-off-by: dependabot[bot] <support@github.com>
    Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
    dependabot[bot] authored Jul 20, 2023
    Copy the full SHA
    766076f View commit details

Commits on Jul 31, 2023

  1. String format validator (#775)

    * String format validator
    * Remove unused method from prior string validation
    TristonianJones authored Jul 31, 2023
    Copy the full SHA
    965e9c8 View commit details
  2. Copy the full SHA
    5359cfd View commit details

Commits on Aug 4, 2023

  1. Copy the full SHA
    20720f3 View commit details

Commits on Aug 9, 2023

  1. Split Expr from NavigableExpr with interpreter support (#788)

    * Split Expr from NavigableExpr with interpreter support
    * Handle errors during proto transformation in the type-checker
    TristonianJones authored Aug 9, 2023
    Copy the full SHA
    a6388a3 View commit details

Commits on Aug 11, 2023

  1. Migrate the type-checker to a native AST representation (#793)

    * Migrate the type-checker to a native AST representation
    * Minor doc update to the type-checker
    * Patch cost_test.go fixes
    * Removed nil field initializer
    TristonianJones authored Aug 11, 2023
    Copy the full SHA
    337fc07 View commit details

Commits on Aug 14, 2023

  1. Copy the full SHA
    b99d122 View commit details
  2. Copy the full SHA
    bf4f82c View commit details

Commits on Aug 15, 2023

  1. Copy the full SHA
    2ef121b View commit details
  2. Copy the full SHA
    036015e View commit details
  3. Migrate cel.Ast to be a thin layer on ast.AST (#806)

    * Migrate cel.Ast to be a thin layer on ast.AST
    * Adjust IsChecked() criteria
    TristonianJones authored Aug 15, 2023
    Copy the full SHA
    51cf846 View commit details

Commits on Aug 16, 2023

  1. Copy the full SHA
    fc3b794 View commit details
  2. Copy the full SHA
    6643a4a View commit details
  3. Copy the full SHA
    0bd4d39 View commit details

Commits on Aug 18, 2023

  1. Creating a Function that Reverses a String (#796)

    Creating a reverse function for CEL that takes a string and returns a
    new string whose characters are in the reverse order of the original.
    bboogler authored Aug 18, 2023
    Copy the full SHA
    5be9464 View commit details
  2. Migrate the parser to the Go-native Expr (#797)

    * Migrate the type-checker to a native AST representation
    * Parser expr update
    * Unify cel.MacroExprFactory with ast.ExprFactory
    TristonianJones authored Aug 18, 2023
    Copy the full SHA
    0b8fcf3 View commit details
  3. Migrate the checker.Coster to the ast.Expr (#798)

    Migrate Cost calculations to Go-native Expr.
    
    Note, this is a breaking changes as the type of the checker.AstNode
    has been modified to return a Go-native Expr value rather than its
    protobuf equivalent.
    TristonianJones authored Aug 18, 2023
    Copy the full SHA
    0453692 View commit details
  4. Migrate the interpreter.PruneAst to the Go-native Expr (#799)

    Migrate pruner to Go-native Expr
    TristonianJones authored Aug 18, 2023
    Copy the full SHA
    b6d0e04 View commit details
  5. Migrate the parser.Unparse to the Go-native Expr (#800)

    Migrate unparser internals to native Expr type
    TristonianJones authored Aug 18, 2023
    Copy the full SHA
    26aa367 View commit details
  6. Copy the full SHA
    eaebecb View commit details

Commits on Aug 19, 2023

  1. Introduce pre-order / post-order visitor pattern (#813)

    * Introduce pre-order / post-order visitor pattern
    TristonianJones authored Aug 19, 2023
    Copy the full SHA
    1a6373d View commit details
  2. Copy the full SHA
    2de9952 View commit details

Commits on Aug 22, 2023

  1. Copy the full SHA
    78039f1 View commit details

Commits on Aug 23, 2023

  1. Copy the full SHA
    8a45955 View commit details
  2. Copy the full SHA
    dd6d31d View commit details
  3. Copy the full SHA
    509c1d6 View commit details

Commits on Aug 30, 2023

  1. Static optimizer for constant folding (#804)

    * Optimizer API with Constant Folding implementatiton
    * Better logical folds and additional tests
    * Add a configurable limit to constant folding
    TristonianJones authored Aug 30, 2023
    Copy the full SHA
    705546a View commit details

Commits on Aug 31, 2023

  1. Copy the full SHA
    bfccebd View commit details

Commits on Sep 1, 2023

  1. Copy the full SHA
    4eebcf3 View commit details
  2. Upgrade go-genproto to latest (#831)

    * Upgrade go-genproto to latest
    
    See googleapis/go-genproto#1015.
    
    * Update WORKSPACE
    l46kok authored Sep 1, 2023
    Copy the full SHA
    8943046 View commit details
  3. Inlining optimizer (#827)

    Inliner with support for identifiers and simple select expressions
    
    Note: optional field selections are not supported for inlining matches
    at this time.
    TristonianJones authored Sep 1, 2023
    Copy the full SHA
    5db3640 View commit details

Commits on Sep 5, 2023

  1. Fix typo in the README.md (#835)

    Signed-off-by: Tulgacan Güdü <tulgacan.gudu@gmail.com>
    TulgaCG authored Sep 5, 2023
    Copy the full SHA
    92e92b5 View commit details
  2. Copy the full SHA
    ea648d7 View commit details

Commits on Sep 19, 2023

  1. Fix last optional element to be retained as an optional index while f…

    …olding (#841)
    
    * Fix last optional element to be marked as an optional index while folding
    l46kok authored Sep 19, 2023
    Copy the full SHA
    89b799e View commit details
  2. Copy the full SHA
    2de55a4 View commit details

Commits on Sep 21, 2023

  1. Update cel-spec and enable wrappers conformance tests (#842)

    Signed-off-by: Justin King <jcking@google.com>
    jcking authored Sep 21, 2023
    Copy the full SHA
    f719bfa View commit details

Commits on Sep 25, 2023

  1. refactor: remove lexer and parser pools (#838)

    Signed-off-by: aimuz <mr.imuz@gmail.com>
    aimuz authored Sep 25, 2023
    Copy the full SHA
    5840875 View commit details

Commits on Sep 26, 2023

  1. Copy the full SHA
    1b217e6 View commit details

Commits on Oct 11, 2023

  1. Bump golang.org/x/net from 0.10.0 to 0.17.0 in /server (#845)

    Bumps [golang.org/x/net](https://github.com/golang/net) from 0.10.0 to 0.17.0.
    - [Commits](golang/net@v0.10.0...v0.17.0)
    
    ---
    updated-dependencies:
    - dependency-name: golang.org/x/net
      dependency-type: indirect
    ...
    
    Signed-off-by: dependabot[bot] <support@github.com>
    Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
    dependabot[bot] authored Oct 11, 2023
    Copy the full SHA
    fc501a3 View commit details

Commits on Oct 24, 2023

  1. Bump @babel/traverse from 7.21.3 to 7.23.2 in /repl/appengine/web (#847)

    Bumps [@babel/traverse](https://github.com/babel/babel/tree/HEAD/packages/babel-traverse) from 7.21.3 to 7.23.2.
    - [Release notes](https://github.com/babel/babel/releases)
    - [Changelog](https://github.com/babel/babel/blob/main/CHANGELOG.md)
    - [Commits](https://github.com/babel/babel/commits/v7.23.2/packages/babel-traverse)
    
    ---
    updated-dependencies:
    - dependency-name: "@babel/traverse"
      dependency-type: indirect
    ...
    
    Signed-off-by: dependabot[bot] <support@github.com>
    Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
    dependabot[bot] authored Oct 24, 2023
    Copy the full SHA
    3a8e854 View commit details

Commits on Oct 25, 2023

  1. Bump google.golang.org/grpc from 1.57.0 to 1.57.1 in /server (#849)

    Bumps [google.golang.org/grpc](https://github.com/grpc/grpc-go) from 1.57.0 to 1.57.1.
    - [Release notes](https://github.com/grpc/grpc-go/releases)
    - [Commits](grpc/grpc-go@v1.57.0...v1.57.1)
    
    ---
    updated-dependencies:
    - dependency-name: google.golang.org/grpc
      dependency-type: indirect
    ...
    
    Signed-off-by: dependabot[bot] <support@github.com>
    Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
    dependabot[bot] authored Oct 25, 2023
    Copy the full SHA
    d52f357 View commit details

Commits on Oct 26, 2023

  1. Add basic examples to the appengine repl (#848)

    * Add basic examples to the repl.
    
    - Add examples covering basic CEL features and extensions
    - Add evaluate button to repl console
    - Fix import rewrite issue in cel/env_test for copybara
    jnthntatum authored Oct 26, 2023
    Copy the full SHA
    46f0f09 View commit details

Commits on Oct 27, 2023

  1. Sets cost estimation and tracking options (#850)

    * Sets cost estimation and tracking options
    * Fix ContextEval support for estimator, tracker overloads
    * Add a guard around the set estimates
    * Adjust cost factor clamping as overflow calculations were incorrect
    TristonianJones authored Oct 27, 2023
    Copy the full SHA
    39c2810 View commit details

Commits on Nov 10, 2023

  1. Fix expression inlining when working with macros (#853)

    * Allow constant macro references to remain in the macro call set
    * Fix stability issues in the macro rewrites
    * Introduce `NativeRep` call on `cel.Ast`
    * Additional tests and refactors to simplify testing / extension
    TristonianJones authored Nov 10, 2023
    Copy the full SHA
    1460938 View commit details
  2. Copy the full SHA
    cfbf821 View commit details

Commits on Nov 21, 2023

  1. Copy the full SHA
    46cd126 View commit details

Commits on Nov 30, 2023

  1. Add AST node IDs to types.Err for errorable expressions (#862)

    Currently, it is not possible to obtain the source location of a runtime
    error making it difficult sometimes to identify the cause of an issue.
    If an AST node ID is available, the source location can be obtained, so
    add this information to runtime errors.
    
    ref.Val values returned by the following types are examined for error
    state and if an error and no AST node has been set, the node ID of the
    Interpretable is added to the error.
    
    * evalAnd
    * evalAttr
    * evalBinary
    * evalExhaustiveConditional
    * evalList
    * evalMap
    * evalMap
    * evalObj
    * evalOr
    * evalTestOnly
    * evalUnary
    * evalVarArgs
    * evalWatchAttrQual
    * evalWatchConstQual
    * evalWatchQual
    * evalZeroArity
    kortschak authored Nov 30, 2023
    Copy the full SHA
    8657c98 View commit details

Commits on Dec 5, 2023

  1. Update builtin macros to use unique IDs. (#866)

    Filter and map macros previously reused Expr.id values for repeated
    references to the accumulator var. After this change, the parser
    should always provide unique node IDs per AST assuming standard macros.
    jnthntatum authored Dec 5, 2023
    Copy the full SHA
    967fca9 View commit details
  2. Set membership test rewriting optimizer (#865)

    * Set membership test rewriting optimizer
    * Additional tests for macros and enums
    TristonianJones authored Dec 5, 2023
    Copy the full SHA
    52e5dcc View commit details

Commits on Dec 14, 2023

  1. Copy the full SHA
    a18f8e7 View commit details
Showing with 24,398 additions and 12,337 deletions.
  1. +1 −0 .bazelversion
  2. +1 −1 README.md
  3. +19 −19 WORKSPACE
  4. +8 −0 cel/BUILD.bazel
  5. +179 −21 cel/cel_test.go
  6. +0 −40 cel/decls.go
  7. +75 −70 cel/env.go
  8. +48 −1 cel/env_test.go
  9. +559 −0 cel/folding.go
  10. +754 −0 cel/folding_test.go
  11. +228 −0 cel/inlining.go
  12. +760 −0 cel/inlining_test.go
  13. +8 −28 cel/io.go
  14. +1 −1 cel/io_test.go
  15. +30 −31 cel/library.go
  16. +444 −12 cel/macro.go
  17. +509 −0 cel/optimizer.go
  18. +161 −0 cel/optimizer_test.go
  19. +21 −0 cel/options.go
  20. +34 −61 cel/program.go
  21. +19 −32 cel/validator.go
  22. +0 −1 checker/BUILD.bazel
  23. +146 −210 checker/checker.go
  24. +91 −27 checker/checker_test.go
  25. +157 −116 checker/cost.go
  26. +134 −21 checker/cost_test.go
  27. +1 −1 checker/decls/decls.go
  28. +8 −0 checker/env.go
  29. +7 −11 checker/errors.go
  30. +17 −17 checker/printer.go
  31. +9 −4 checker/types.go
  32. +6 −6 codelab/go.mod
  33. +12 −12 codelab/go.sum
  34. +9 −7 common/ast/BUILD.bazel
  35. +355 −125 common/ast/ast.go
  36. +220 −88 common/ast/ast_test.go
  37. +632 −0 common/ast/conversion.go
  38. +469 −0 common/ast/conversion_test.go
  39. +559 −408 common/ast/expr.go
  40. +392 −332 common/ast/expr_test.go
  41. +303 −0 common/ast/factory.go
  42. +652 −0 common/ast/navigable.go
  43. +601 −0 common/ast/navigable_test.go
  44. +2 −2 common/containers/BUILD.bazel
  45. +11 −11 common/containers/container.go
  46. +8 −28 common/containers/container_test.go
  47. +3 −1 common/debug/BUILD.bazel
  48. +77 −79 common/debug/debug.go
  49. +2 −1 common/decls/decls.go
  50. +1 −1 common/errors.go
  51. +24 −1 common/types/err.go
  52. +12 −0 common/types/int.go
  53. +30 −0 common/types/int_test.go
  54. +7 −1 common/types/list.go
  55. +1 −1 common/types/optional.go
  56. +40 −0 common/types/overflow.go
  57. +48 −3 common/types/provider.go
  58. +65 −1 common/types/provider_test.go
  59. +2 −5 common/types/string.go
  60. +11 −0 common/types/string_test.go
  61. +18 −1 common/types/types.go
  62. +12 −1 common/types/types_test.go
  63. +12 −0 common/types/uint.go
  64. +32 −0 common/types/uint_test.go
  65. +1 −0 conformance/BUILD.bazel
  66. +5 −3 ext/BUILD.bazel
  67. +14 −0 ext/README.md
  68. +12 −12 ext/bindings.go
  69. +904 −0 ext/formatting.go
  70. +5 −6 ext/guards.go
  71. +33 −34 ext/math.go
  72. +62 −4 ext/native.go
  73. +61 −2 ext/native_test.go
  74. +22 −23 ext/protos.go
  75. +124 −1 ext/sets.go
  76. +457 −51 ext/sets_test.go
  77. +63 −393 ext/strings.go
  78. +75 −21 ext/strings_test.go
  79. +6 −6 go.mod
  80. +12 −12 go.sum
  81. +0 −1 interpreter/BUILD.bazel
  82. +3 −0 interpreter/attributes.go
  83. +20 −0 interpreter/attributes_test.go
  84. +0 −383 interpreter/formatting.go
  85. +26 −24 interpreter/interpretable.go
  86. +3 −23 interpreter/interpreter.go
  87. +56 −88 interpreter/interpreter_test.go
  88. +122 −157 interpreter/planner.go
  89. +210 −286 interpreter/prune.go
  90. +15 −13 interpreter/prune_test.go
  91. +36 −11 interpreter/runtimecost.go
  92. +92 −0 interpreter/runtimecost_test.go
  93. +7 −2 parser/BUILD.bazel
  94. +1 −1 parser/gen/BUILD.bazel
  95. +2 −2 parser/gen/cel_base_listener.go
  96. +3 −2 parser/gen/cel_base_visitor.go
  97. +301 −302 parser/gen/cel_lexer.go
  98. +3 −2 parser/gen/cel_listener.go
  99. +1,610 −868 parser/gen/cel_parser.go
  100. +5 −3 parser/gen/cel_visitor.go
  101. +1 −1 parser/gen/generate.sh
  102. +227 −353 parser/helper.go
  103. +17 −10 parser/helper_test.go
  104. +2 −2 parser/input.go
  105. +86 −106 parser/macro.go
  106. +76 −113 parser/parser.go
  107. +116 −102 parser/parser_test.go
  108. +107 −115 parser/unparser.go
  109. +16 −13 parser/unparser_test.go
  110. +6 −1 repl/BUILD.bazel
  111. +9 −6 repl/appengine/go.mod
  112. +14 −12 repl/appengine/go.sum
  113. +121 −94 repl/appengine/web/package-lock.json
  114. +17 −12 repl/appengine/web/src/app/app-component.html
  115. +6 −5 repl/appengine/web/src/app/app-component.scss
  116. +8 −1 repl/appengine/web/src/app/app-component.ts
  117. +44 −5 repl/appengine/web/src/app/reference_panel/reference-panel-component.html
  118. +10 −2 repl/appengine/web/src/app/reference_panel/reference-panel-component.spec.ts
  119. +156 −0 repl/appengine/web/src/app/reference_panel/reference-panel-component.ts
  120. +9 −3 repl/appengine/web/src/app/reference_panel/reference-panel-module.ts
  121. +4 −3 repl/appengine/web/src/app/repl_console/repl-console-component.html
  122. +1 −1 repl/appengine/web/src/app/repl_console/repl-console-component.scss
  123. +34 −10 repl/appengine/web/src/app/repl_console/repl-console-component.ts
  124. +1 −2 repl/appengine/web/src/app/shared/repl-api-service.ts
  125. +51 −0 repl/appengine/web/src/app/shared/repl-example-service.spec.ts
  126. +49 −0 repl/appengine/web/src/app/shared/repl-example-service.ts
  127. +2 −2 repl/appengine/web/src/main.ts
  128. +3 −1 repl/appengine/web/src/theme.scss
  129. +8 −1 repl/commands.go
  130. +6 −0 repl/commands_test.go
  131. +106 −16 repl/evaluator.go
  132. +66 −1 repl/evaluator_test.go
  133. +8 −7 repl/go.mod
  134. +14 −10 repl/go.sum
  135. +13 −6 repl/main/README.md
  136. +4 −2 repl/parser/BUILD.bazel
  137. +2 −2 repl/parser/commands_base_listener.go
  138. +3 −2 repl/parser/commands_base_visitor.go
  139. +350 −351 repl/parser/commands_lexer.go
  140. +3 −2 repl/parser/commands_listener.go
  141. +2,603 −1,494 repl/parser/commands_parser.go
  142. +1 −1 repl/parser/commands_test.go
  143. +5 −3 repl/parser/commands_visitor.go
  144. +1 −1 repl/parser/regen.sh
  145. +1 −1 repl/typefmt.go
  146. +11 −11 server/go.mod
  147. +22 −22 server/go.sum
  148. +1 −1 server/server.go
  149. +0 −26 vendor/github.com/antlr/antlr4/runtime/Go/antlr/v4/LICENSE
  150. +0 −68 vendor/github.com/antlr/antlr4/runtime/Go/antlr/v4/antlrdoc.go
  151. +0 −303 vendor/github.com/antlr/antlr4/runtime/Go/antlr/v4/atn_config.go
  152. +0 −441 vendor/github.com/antlr/antlr4/runtime/Go/antlr/v4/atn_config_set.go
  153. +0 −113 vendor/github.com/antlr/antlr4/runtime/Go/antlr/v4/input_stream.go
  154. +0 −198 vendor/github.com/antlr/antlr4/runtime/Go/antlr/v4/jcollect.go
  155. +0 −806 vendor/github.com/antlr/antlr4/runtime/Go/antlr/v4/prediction_context.go
  156. +0 −529 vendor/github.com/antlr/antlr4/runtime/Go/antlr/v4/prediction_mode.go
  157. +0 −114 vendor/github.com/antlr/antlr4/runtime/Go/antlr/v4/rule_context.go
  158. +0 −235 vendor/github.com/antlr/antlr4/runtime/Go/antlr/v4/utils_set.go
  159. +18 −0 vendor/github.com/antlr4-go/antlr/v4/.gitignore
  160. +28 −0 vendor/github.com/antlr4-go/antlr/v4/LICENSE
  161. +54 −0 vendor/github.com/antlr4-go/antlr/v4/README.md
  162. +102 −0 vendor/github.com/antlr4-go/antlr/v4/antlrdoc.go
  163. +6 −3 vendor/github.com/{antlr/antlr4/runtime/Go → antlr4-go}/antlr/v4/atn.go
  164. +335 −0 vendor/github.com/antlr4-go/antlr/v4/atn_config.go
  165. +301 −0 vendor/github.com/antlr4-go/antlr/v4/atn_config_set.go
  166. +4 −3 vendor/github.com/{antlr/antlr4/runtime/Go → antlr4-go}/antlr/v4/atn_deserialization_options.go
  167. +5 −4 vendor/github.com/{antlr/antlr4/runtime/Go → antlr4-go}/antlr/v4/atn_deserializer.go
  168. +4 −13 vendor/github.com/{antlr/antlr4/runtime/Go → antlr4-go}/antlr/v4/atn_simulator.go
  169. +146 −78 vendor/github.com/{antlr/antlr4/runtime/Go → antlr4-go}/antlr/v4/atn_state.go
  170. 0 vendor/github.com/{antlr/antlr4/runtime/Go → antlr4-go}/antlr/v4/atn_type.go
  171. +1 −1 vendor/github.com/{antlr/antlr4/runtime/Go → antlr4-go}/antlr/v4/char_stream.go
  172. 0 vendor/github.com/{antlr/antlr4/runtime/Go → antlr4-go}/antlr/v4/common_token_factory.go
  173. +20 −19 vendor/github.com/{antlr/antlr4/runtime/Go → antlr4-go}/antlr/v4/common_token_stream.go
  174. +18 −15 vendor/github.com/{antlr/antlr4/runtime/Go → antlr4-go}/antlr/v4/comparators.go
  175. +214 −0 vendor/github.com/antlr4-go/antlr/v4/configuration.go
  176. +37 −10 vendor/github.com/{antlr/antlr4/runtime/Go → antlr4-go}/antlr/v4/dfa.go
  177. +1 −1 vendor/github.com/{antlr/antlr4/runtime/Go → antlr4-go}/antlr/v4/dfa_serializer.go
  178. +15 −14 vendor/github.com/{antlr/antlr4/runtime/Go → antlr4-go}/antlr/v4/dfa_state.go
  179. +6 −5 vendor/github.com/{antlr/antlr4/runtime/Go → antlr4-go}/antlr/v4/diagnostic_error_listener.go
  180. +18 −22 vendor/github.com/{antlr/antlr4/runtime/Go → antlr4-go}/antlr/v4/error_listener.go
  181. +209 −241 vendor/github.com/{antlr/antlr4/runtime/Go → antlr4-go}/antlr/v4/error_strategy.go
  182. +47 −26 vendor/github.com/{antlr/antlr4/runtime/Go → antlr4-go}/antlr/v4/errors.go
  183. +32 −14 vendor/github.com/{antlr/antlr4/runtime/Go → antlr4-go}/antlr/v4/file_stream.go
  184. +157 −0 vendor/github.com/antlr4-go/antlr/v4/input_stream.go
  185. 0 vendor/github.com/{antlr/antlr4/runtime/Go → antlr4-go}/antlr/v4/int_stream.go
  186. +39 −21 vendor/github.com/{antlr/antlr4/runtime/Go → antlr4-go}/antlr/v4/interval_set.go
  187. +685 −0 vendor/github.com/antlr4-go/antlr/v4/jcollect.go
  188. +39 −29 vendor/github.com/{antlr/antlr4/runtime/Go → antlr4-go}/antlr/v4/lexer.go
  189. +60 −40 vendor/github.com/{antlr/antlr4/runtime/Go → antlr4-go}/antlr/v4/lexer_action.go
  190. +24 −37 vendor/github.com/{antlr/antlr4/runtime/Go → antlr4-go}/antlr/v4/lexer_action_executor.go
  191. +89 −96 vendor/github.com/{antlr/antlr4/runtime/Go → antlr4-go}/antlr/v4/lexer_atn_simulator.go
  192. +32 −30 vendor/github.com/{antlr/antlr4/runtime/Go → antlr4-go}/antlr/v4/ll1_analyzer.go
  193. +47 −0 vendor/github.com/antlr4-go/antlr/v4/nostatistics.go
  194. +76 −84 vendor/github.com/{antlr/antlr4/runtime/Go → antlr4-go}/antlr/v4/parser.go
  195. +448 −339 vendor/github.com/{antlr/antlr4/runtime/Go → antlr4-go}/antlr/v4/parser_atn_simulator.go
  196. +72 −13 vendor/github.com/{antlr/antlr4/runtime/Go → antlr4-go}/antlr/v4/parser_rule_context.go
  197. +727 −0 vendor/github.com/antlr4-go/antlr/v4/prediction_context.go
  198. +48 −0 vendor/github.com/antlr4-go/antlr/v4/prediction_context_cache.go
  199. +536 −0 vendor/github.com/antlr4-go/antlr/v4/prediction_mode.go
  200. +45 −20 vendor/github.com/{antlr/antlr4/runtime/Go → antlr4-go}/antlr/v4/recognizer.go
  201. +40 −0 vendor/github.com/antlr4-go/antlr/v4/rule_context.go
  202. +14 −19 vendor/github.com/{antlr/antlr4/runtime/Go → antlr4-go}/antlr/v4/semantic_context.go
  203. +281 −0 vendor/github.com/antlr4-go/antlr/v4/statistics.go
  204. +23 −0 vendor/github.com/antlr4-go/antlr/v4/stats_data.go
  205. +20 −16 vendor/github.com/{antlr/antlr4/runtime/Go → antlr4-go}/antlr/v4/token.go
  206. 0 vendor/github.com/{antlr/antlr4/runtime/Go → antlr4-go}/antlr/v4/token_source.go
  207. +2 −1 vendor/github.com/{antlr/antlr4/runtime/Go → antlr4-go}/antlr/v4/token_stream.go
  208. +112 −109 vendor/github.com/{antlr/antlr4/runtime/Go → antlr4-go}/antlr/v4/tokenstream_rewriter.go
  209. 0 vendor/github.com/{antlr/antlr4/runtime/Go → antlr4-go}/antlr/v4/trace_listener.go
  210. +120 −109 vendor/github.com/{antlr/antlr4/runtime/Go → antlr4-go}/antlr/v4/transition.go
  211. +80 −29 vendor/github.com/{antlr/antlr4/runtime/Go → antlr4-go}/antlr/v4/tree.go
  212. +13 −9 vendor/github.com/{antlr/antlr4/runtime/Go → antlr4-go}/antlr/v4/trees.go
  213. +30 −54 vendor/github.com/{antlr/antlr4/runtime/Go → antlr4-go}/antlr/v4/utils.go
  214. +60 −20 vendor/golang.org/x/exp/slices/slices.go
  215. +31 −30 vendor/golang.org/x/exp/slices/sort.go
  216. +10 −4 vendor/google.golang.org/protobuf/encoding/protojson/encode.go
  217. +10 −4 vendor/google.golang.org/protobuf/encoding/prototext/encode.go
  218. +6 −4 vendor/google.golang.org/protobuf/internal/encoding/json/encode.go
  219. +6 −4 vendor/google.golang.org/protobuf/internal/encoding/text/encode.go
  220. +48 −0 vendor/google.golang.org/protobuf/internal/genid/descriptor_gen.go
  221. +6 −0 vendor/google.golang.org/protobuf/internal/genid/type_gen.go
  222. +1 −1 vendor/google.golang.org/protobuf/internal/order/order.go
  223. +1 −1 vendor/google.golang.org/protobuf/internal/version/version.go
  224. +7 −3 vendor/google.golang.org/protobuf/proto/size.go
  225. +27 −0 vendor/google.golang.org/protobuf/reflect/protoreflect/source_gen.go
  226. +633 −378 vendor/google.golang.org/protobuf/types/descriptorpb/descriptor.pb.go
  227. +177 −0 vendor/google.golang.org/protobuf/types/dynamicpb/types.go
  228. +35 −35 vendor/google.golang.org/protobuf/types/known/anypb/any.pb.go
  229. +1 −1 vendor/google.golang.org/protobuf/types/known/structpb/struct.pb.go
  230. +1 −1 vendor/google.golang.org/protobuf/types/known/timestamppb/timestamp.pb.go
  231. +9 −9 vendor/modules.txt
1 change: 1 addition & 0 deletions .bazelversion
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
6.4.0
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -68,7 +68,7 @@ env, err := cel.NewEnv(
)
```

That's it. The environment is ready to be use for parsing and type-checking.
That's it. The environment is ready to be used for parsing and type-checking.
CEL supports all the usual primitive types in addition to lists, maps, as well
as first-class support for JSON and Protocol Buffers.

38 changes: 19 additions & 19 deletions WORKSPACE
Original file line number Diff line number Diff line change
@@ -30,13 +30,13 @@ http_archive(
],
)

# googleapis as of 05/26/2023
# googleapis as of 08/31/2023
http_archive(
name = "com_google_googleapis",
strip_prefix = "googleapis-07c27163ac591955d736f3057b1619ece66f5b99",
sha256 = "bd8e735d881fb829751ecb1a77038dda4a8d274c45490cb9fcf004583ee10571",
sha256 = "5c56500adf7b1b7a3a2ee5ca5b77500617ad80afb808e3d3979f582e64c0523d",
strip_prefix = "googleapis-25f99371444ea7fd0dc1523ca6925e91cc48a664",
urls = [
"https://github.com/googleapis/googleapis/archive/07c27163ac591955d736f3057b1619ece66f5b99.tar.gz",
"https://github.com/googleapis/googleapis/archive/25f99371444ea7fd0dc1523ca6925e91cc48a664.tar.gz",
],
)

@@ -68,22 +68,22 @@ go_repository(
tag = "v1.28.1",
)

# Generated Google APIs protos for Golang 05/25/2023
# Generated Google APIs protos for Golang 08/03/2023
go_repository(
name = "org_golang_google_genproto_googleapis_api",
build_file_proto_mode = "disable_global",
importpath = "google.golang.org/genproto/googleapis/api",
sum = "h1:m8v1xLLLzMe1m5P+gCTF8nJB9epwZQUBERm20Oy1poQ=",
version = "v0.0.0-20230525234035-dd9d682886f9",
sum = "h1:nIgk/EEq3/YlnmVVXVnm14rC2oxgs1o0ong4sD/rd44=",
version = "v0.0.0-20230803162519-f966b187b2e5",
)

# Generated Google APIs protos for Golang 05/25/2023
# Generated Google APIs protos for Golang 08/03/2023
go_repository(
name = "org_golang_google_genproto_googleapis_rpc",
build_file_proto_mode = "disable_global",
importpath = "google.golang.org/genproto/googleapis/rpc",
sum = "h1:0nDDozoAU19Qb2HwhXadU8OcsiO/09cnTqhUtq2MEOM=",
version = "v0.0.0-20230525234030-28d5490b6b19",
sum = "h1:eSaPbMR4T7WfH9FvABk36NBMacoTUKdWCvV0dx+KfOg=",
version = "v0.0.0-20230803162519-f966b187b2e5",
)

# gRPC deps for v1.49.0 (including x/text and x/net)
@@ -108,19 +108,19 @@ go_repository(
version = "v0.3.7",
)

# ANTLR v4.12.0
# ANTLR v4.13.0
go_repository(
name = "com_github_antlr_antlr4_runtime_go_antlr_v4",
importpath = "github.com/antlr/antlr4/runtime/Go/antlr/v4",
sum = "h1:7RFfzj4SSt6nnvCPbCqijJi1nWCd+TqAT3bYCStRC18=",
version = "v4.0.0-20230305170008-8188dc5388df",
name = "com_github_antlr4_go_antlr_v4",
importpath = "github.com/antlr4-go/antlr/v4",
sum = "h1:lxCg3LAv+EUK6t1i0y1V6/SLeUi0eKEKdhQAlS8TVTI=",
version = "v4.13.0",
)

# CEL Spec deps v0.9.0
# CEL Spec deps
go_repository(
name = "com_google_cel_spec",
commit = "dd5373cc157f6325421470139b5d55baed09935a",
importpath = "github.com/google/cel-spec",
commit = "51af45e2b75a8aa2b3108b00f0e91cd172cfbea1",
)

# strcase deps
@@ -134,16 +134,16 @@ go_repository(
# Readline for repl
go_repository(
name = "com_github_chzyer_readline",
commit = "62c6fe6193755f722b8b8788aa7357be55a50ff1", # v1.4
importpath = "github.com/chzyer/readline",
commit = "62c6fe6193755f722b8b8788aa7357be55a50ff1" # v1.4
)

# golang.org/x/exp deps
go_repository(
name = "org_golang_x_exp",
importpath = "golang.org/x/exp",
sum = "h1:+WEEuIdZHnUeJJmEUjyYC2gfUMj69yZXw17EnHg/otA=",
version = "v0.0.0-20220722155223-a9213eeb770e"
version = "v0.0.0-20220722155223-a9213eeb770e",
)

# Run the dependencies at the end. These will silently try to import some
8 changes: 8 additions & 0 deletions cel/BUILD.bazel
Original file line number Diff line number Diff line change
@@ -10,9 +10,12 @@ go_library(
"cel.go",
"decls.go",
"env.go",
"folding.go",
"io.go",
"inlining.go",
"library.go",
"macro.go",
"optimizer.go",
"options.go",
"program.go",
"validator.go",
@@ -56,7 +59,11 @@ go_test(
"cel_test.go",
"decls_test.go",
"env_test.go",
"folding_test.go",
"io_test.go",
"inlining_test.go",
"optimizer_test.go",
"validator_test.go",
],
data = [
"//cel/testdata:gen_test_fds",
@@ -70,6 +77,7 @@ go_test(
"//common/types:go_default_library",
"//common/types/ref:go_default_library",
"//common/types/traits:go_default_library",
"//ext:go_default_library",
"//test:go_default_library",
"//test/proto2pb:go_default_library",
"//test/proto3pb:go_default_library",
Loading