Goose  Artifact [43b609dd5e]

Artifact 43b609dd5eb34cf2f542aa54b799fdb2ddfa8f94f651bb0f38cf0e202ed93c9d:

  • File bs/builtins/types/basic.h — part of check-in [bbef786dbb] at 2019-02-03 12:01:08 on branch trunk — Parser: parse decls. (user: achavasse size: 685)

#ifndef EMPATHY_BUILTINS_TYPES_BASIC_H
#define EMPATHY_BUILTINS_TYPES_BASIC_H

namespace empathy::builtins
{
    extern void SetupBasicTypes( Env& e );
}

namespace empathy::ir
{
    template<>
    struct Bridge< void >
    {
        static const Term& Type();
    };

    template<>
    struct Bridge< uint64_t >
    {
        static const Term& Type();
        static Value ToValue( uint64_t x );
        static optional< uint64_t > FromValue( const Value& v );
    };

    template<>
    struct Bridge< string >
    {
        static const Term& Type();
        static Value ToValue( const string& x );
        static optional< string > FromValue( const Value& v );
    };
}

#endif