This commit is contained in:
Joeri Exelmans 2025-03-24 17:28:07 +01:00
parent 6af72e525c
commit 145835ad5d
22 changed files with 153 additions and 90 deletions

View file

@ -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

View file

@ -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;

View file

@ -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;

View file

@ -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;

View file

@ -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";

View file

@ -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: [] };