19 lines
459 B
JavaScript
19 lines
459 B
JavaScript
import { getFnType } from "./function_registry.js";
|
|
import {Type, Function} from "./metacircular.js";
|
|
|
|
export const Typed = Symbol('Typed');
|
|
|
|
const getInst = lnk => lnk.i;
|
|
const getType = lnk => lnk.t;
|
|
|
|
// const Typed_to_Type = {in: Typed, out: Type};
|
|
const Typed_to_Type = getFnType(Typed, Type);
|
|
|
|
export const ModuleTyped = [
|
|
{i: Typed, t: Type},
|
|
|
|
{i: Typed_to_Type, t: Function},
|
|
|
|
{i: getInst, t: Typed_to_Type},
|
|
{i: getType, t: Typed_to_Type},
|
|
];
|