wip
This commit is contained in:
parent
afd78c3b3e
commit
29d20b2273
25 changed files with 369 additions and 469 deletions
|
|
@ -1,6 +1,6 @@
|
|||
import { fnType } from "../metacircular.js";
|
||||
import {Type, Function} from "../metacircular.js";
|
||||
import {Bool} from "./symbols.js";
|
||||
import { fnType } from "../structures/function.js";
|
||||
import { Type } from "../metacircular.js";
|
||||
import { Bool } from "./symbols.js";
|
||||
|
||||
const eqBool = x => y => x === y;
|
||||
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
import { fnType } from "../type_registry.js";
|
||||
import {Type, Function} from "../metacircular.js";
|
||||
import { fnType } from "../structures/function.js";
|
||||
import { Type } from "../metacircular.js";
|
||||
import {Byte, Bool} from "./symbols.js";
|
||||
|
||||
const eqByte = x => y => x === y;
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
import { typedFnType } from "../type_registry.js";
|
||||
import {Type} from "../metacircular.js";
|
||||
import { typedFnType } from "../structures/function.js";
|
||||
import { Type } from "../metacircular.js";
|
||||
import {Char, Bool} from "./symbols.js";
|
||||
|
||||
const eq = x => y => x === y;
|
||||
|
|
|
|||
|
|
@ -1,6 +1,5 @@
|
|||
import { fnType } from "../metacircular.js";
|
||||
import {Type, Function} from "../metacircular.js";
|
||||
|
||||
import { fnType } from "../structures/function.js";
|
||||
import { Type } from "../metacircular.js";
|
||||
import {Bool, Double} from "./symbols.js";
|
||||
|
||||
export const addDouble = x => y => x + y;
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
import { fnType } from "../metacircular.js";
|
||||
import {Type, Function} from "../metacircular.js";
|
||||
import { fnType } from "../structures/function.js";
|
||||
import { Type } from "../metacircular.js";
|
||||
|
||||
import {Bool, Int} from "./symbols.js";
|
||||
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
// to break up dependency cycles, symbols of primitive types have their own JS module
|
||||
// to break up dependency cycles, primitive types are defined in their own JS module
|
||||
|
||||
export const Bool = Symbol('Bool');
|
||||
export const Int = Symbol('Int');
|
||||
export const Double = Symbol('Double');
|
||||
export const Byte = Symbol('Byte');
|
||||
export const Char = Symbol('Char');
|
||||
export const Int = { symbol: Symbol('Int') , params: [] };
|
||||
export const Bool = { symbol: Symbol('Bool') , params: [] };
|
||||
export const Double = { symbol: Symbol('Double'), params: [] };
|
||||
export const Byte = { symbol: Symbol('Byte') , params: [] };
|
||||
export const Char = { symbol: Symbol('Char') , params: [] };
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue