interactive prompt

This commit is contained in:
Joeri Exelmans 2025-03-23 17:46:39 +01:00
parent bc91d9bf39
commit 3596e01c28
9 changed files with 298 additions and 105 deletions

View file

@ -7,5 +7,10 @@ const eq = x => y => x === y;
export const ModuleChar = {l:[
{i: Char, t: Type},
...typedFnType(eq, fnType => fnType({in: Char, out: fnType({in: Char, out: Bool})})),
...typedFnType(eq, fnType =>
fnType
(Char)
(fnType
(Char)
(Bool))),
]};

View file

@ -1,8 +1,7 @@
// to break up dependency cycles, primitive types are defined in their own JS module
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: [] };// Wrapper around function below.
export const Char = { symbol: Symbol('Char') , params: [] };