1
2
3
4
5
6
7
8
9
10
11
|
#ifndef EMPATHY_SEMA_UNIFY_H
#define EMPATHY_SEMA_UNIFY_H
namespace empathy::sema
{
using UniGen = Generator< pair< Term, UnificationContext > >;
// Perform one unification pass, or two if holes need to be substituted.
UniGen FullUnify( const Term& lhs, const Term& rhs, const Context& context );
// If substitution is needed, perform substitution on lhs and rhs and then
|
|
|
|
|
1
2
3
4
5
6
7
8
9
10
11
|
#ifndef GOOSE_SEMA_UNIFY_H
#define GOOSE_SEMA_UNIFY_H
namespace goose::sema
{
using UniGen = Generator< pair< Term, UnificationContext > >;
// Perform one unification pass, or two if holes need to be substituted.
UniGen FullUnify( const Term& lhs, const Term& rhs, const Context& context );
// If substitution is needed, perform substitution on lhs and rhs and then
|