Configuration for cel::Compiler to enable the math extension declarations.
| 311 | |
| 312 | // Configuration for cel::Compiler to enable the math extension declarations. |
| 313 | CompilerLibrary MathCompilerLibrary(int version) { |
| 314 | return CompilerLibrary( |
| 315 | kMathExtensionName, |
| 316 | [version](ParserBuilder& builder) { |
| 317 | return AddMathExtensionMacros(builder, version); |
| 318 | }, |
| 319 | [version](TypeCheckerBuilder& builder) { |
| 320 | return AddMathExtensionDeclarations(builder, version); |
| 321 | }); |
| 322 | } |
| 323 | |
| 324 | // Configuration for cel::TypeChecker to enable the math extension declarations. |
| 325 | CheckerLibrary MathCheckerLibrary(int version) { |