MCPcopy Create free account
hub / github.com/cel-expr/cel-cpp / MathCompilerLibrary

Function MathCompilerLibrary

extensions/math_ext_decls.cc:313–322  ·  view source on GitHub ↗

Configuration for cel::Compiler to enable the math extension declarations.

Source from the content-addressed store, hash-verified

311
312// Configuration for cel::Compiler to enable the math extension declarations.
313CompilerLibrary 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.
325CheckerLibrary MathCheckerLibrary(int version) {

Callers 2

TEST_PFunction · 0.85

Calls 3

CompilerLibraryClass · 0.85
AddMathExtensionMacrosFunction · 0.85

Tested by 1

TEST_PFunction · 0.68