BuiltInTransform implements a compilation transformation over term syntax trees, that substitutes for functors that
map onto Prolog built-ins, an extension of the functor type that implements the built-in.
Holds a mapping from functor names to built-in implementations.
Holds the default built in, for standard compilation and interners and symbol tables.
Initializes the built-in transformation by population the the table of mappings of functors onto their built-in
defaultBuiltIn The default built in, for standard compilation and interners and symbol tables.
Applies a built-in replacement transformation to functors. If the functor matches built-in, a
is created with a mapping to the functors built-in implementation, and the functors
arguments are copied into this new functor. If the functor does not match a built-in, it is returned unmodified.
functor The functor to attempt to map onto a built-in.
- The functor unmodified, or a
replacement for it.
if (builtInClass != null)