reorganize directory and file structure
This commit is contained in:
parent
1d826ea8d4
commit
48390b8556
99 changed files with 1155 additions and 1629 deletions
|
|
@ -1,5 +1,7 @@
|
|||
import { parse } from "../parser/parser.js";
|
||||
import { prettyGenT, prettyT } from "../util/pretty.js";
|
||||
import { getDefaultTypeParser }from "../lib/parser/type_parser.js";
|
||||
import { prettyGenT, prettyT } from "../lib/util/pretty.js";
|
||||
|
||||
const parse = getDefaultTypeParser();
|
||||
|
||||
console.log(prettyT(parse("Int"))); // Int
|
||||
|
||||
|
|
@ -12,4 +14,3 @@ console.log(prettyT(parse("#0((Int * #0) + Unit)"))) // #0((Int ⨯ #0) + Unit)
|
|||
console.log(prettyGenT(parse("∀a: #0((a * #0) + Unit"))); // ∀a: #0((a ⨯ #0) + Unit)
|
||||
|
||||
console.log(prettyGenT(parse("∀a,b,c,d: (a*b) + (c*d)"))); // ∀a,b,c,d: ((a ⨯ b) + (c ⨯ d))
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue