this.supportedBuiltinFunctions = builtinFunctions;
this.specialFunctions = specialFunctions;
}
public void defineFunctions(Builder builder) {
final FunTable builtinFunTable = BuiltinFunTable.instance();
// Includes all the keywords form builtin function table
for (String reservedWord : builtinFunTable.getReservedWords()) {
builder.defineReserved(reservedWord);
}
// Add supported builtin functions
for (Resolver resolver : builtinFunTable.getResolvers()) {
if (supportedBuiltinFunctions.contains(resolver.getName())) {
builder.define(resolver);
}
}