reorganize directory and file structure
This commit is contained in:
parent
1d826ea8d4
commit
48390b8556
99 changed files with 1155 additions and 1629 deletions
|
|
@ -1,14 +1,15 @@
|
|||
import { select, number, input } from '@inquirer/prompts';
|
||||
import { ModulePoint } from "../lib/point.js";
|
||||
import { DefaultMap } from "../util/defaultmap.js";
|
||||
import { pretty } from '../util/pretty.js';
|
||||
import { DefaultMap } from "../lib/util/defaultmap.js";
|
||||
import { pretty } from '../lib/util/pretty.js';
|
||||
import { isFunction } from '../structures/types.js';
|
||||
import { ModuleStd } from '../stdlib.js';
|
||||
import { ModuleStd } from '../lib/stdlib.js';
|
||||
import { Double, GenericType, Int, SymbolT, Type } from "../primitives/types.js";
|
||||
import { eqType } from '../primitives/type.js';
|
||||
import { Top } from "../primitives/types.js";
|
||||
import { assignFn, makeGeneric, onlyOccurring } from '../generics/generics.js';
|
||||
import { prettyT } from '../util/pretty.js';
|
||||
import { assignFn, makeGeneric, onlyOccurring } from '../lib/generics/generics.js';
|
||||
import { prettyT } from '../lib/util/pretty.js';
|
||||
import { genUUID } from '../lib/util/random.js';
|
||||
|
||||
|
||||
// import {emitKeypressEvents} from 'node:readline';
|
||||
|
|
@ -289,7 +290,7 @@ async function createInstance(t) {
|
|||
else if (eqType(t)(SymbolT)) {
|
||||
console.log("Note: you are creating a new Symbol. Even if the description matches that of another symbol (e.g., \"Int\"), a new Symbol will be created that is unique and only equal to itself.");
|
||||
const symbolDescr = await input({message: "enter symbol description:"});
|
||||
return Symbol(symbolDescr);
|
||||
return symbolDescr + '__' + genUUID(16);
|
||||
}
|
||||
else {
|
||||
console.log("no prompt handler for creating new", prettyT(t));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue