progress
This commit is contained in:
parent
6af72e525c
commit
145835ad5d
22 changed files with 153 additions and 90 deletions
|
|
@ -1,5 +1,5 @@
|
|||
import { fnType, typedFnType } from "../structures/types.js";
|
||||
import { Type } from "../type.js";
|
||||
import { Type } from "./types.js";
|
||||
import { Bool } from "./types.js";
|
||||
|
||||
const eqBool = x => y => x === y;
|
||||
|
|
@ -7,7 +7,7 @@ const eqBool = x => y => x === y;
|
|||
export const ModuleBool = {l:[
|
||||
{i: true , t: Bool},
|
||||
{i: false, t: Bool},
|
||||
|
||||
|
||||
{i: Bool , t: Type},
|
||||
|
||||
// Bool -> Bool -> Bool
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
import { typedFnType } from "../structures/types.js";
|
||||
import { Type } from "../type.js";
|
||||
import { Type } from "./types.js";
|
||||
import {Byte, Bool} from "./types.js";
|
||||
|
||||
const eqByte = x => y => x === y;
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
import { typedFnType } from "../structures/types.js";
|
||||
import { Type } from "../type.js";
|
||||
import { Type } from "./types.js";
|
||||
import {Char, Bool} from "./types.js";
|
||||
|
||||
const eq = x => y => x === y;
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
import { typedFnType } from "../structures/types.js";
|
||||
import { Type } from "../type.js";
|
||||
import { Type } from "./types.js";
|
||||
import {Bool, Double} from "./types.js";
|
||||
|
||||
export const addDouble = x => y => x + y;
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
import { typedFnType } from "../structures/types.js";
|
||||
import { Type } from "../type.js";
|
||||
import { Type } from "./types.js";
|
||||
|
||||
import {Bool, Int} from "./types.js";
|
||||
|
||||
|
|
|
|||
|
|
@ -5,3 +5,5 @@ 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: [] };
|
||||
|
||||
export const Type = { symbol: Symbol('Type'), params: [] };
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue