#include "builtins/builtins.h"
#include "parse/parse.h"
using namespace goose::parse;
using namespace goose::cir;
namespace goose::builtins
{
void SetupLower( Env& e )
{
// Default implementation of LowerType():
// Do nothing.
RegisterBuiltinFunc< Intrinsic< Value ( Value ) > >( e, e.extLowerType(),
[]( const Context& c, const Value& v )
{
return v;
} );
// Default implementation of LowerValue():
// Do nothing.
RegisterBuiltinFunc< Intrinsic< Value ( Value ) > >( e, e.extLowerValue(),
[]( const Context& c, const Value& v )
{
return v;
} );
}
}