1
0
forked from GitHub/gf-core

Finish unmarshalling of types. Add mkType et al. Add showType tests, but implementation is just stub.

This commit is contained in:
John J. Camilleri
2021-10-13 16:59:11 +02:00
parent 2686e63e58
commit fc57f94e8a
4 changed files with 177 additions and 31 deletions

View File

@@ -2,8 +2,8 @@
import errno from './errno'
import {
Type,
Hypo,
Type, mkType,
Hypo, mkHypo, mkDepHypo, mkImplHypo,
Expr,
ExprAbs,
ExprApp,
@@ -229,6 +229,10 @@ function readExpr (str: string): Expr {
return ref.readObject(expr) as Expr
}
function showType (context: string[], type: Type): string {
return 'TODO'
}
// ----------------------------------------------------------------------------
// Exposed library API
@@ -242,9 +246,14 @@ export {
readType,
readExpr,
showType,
Type,
mkType,
Hypo,
mkHypo,
mkDepHypo,
mkImplHypo,
Expr,
ExprAbs,
ExprApp,
@@ -266,9 +275,14 @@ export default {
readType,
readExpr,
showType,
Type,
mkType,
Hypo,
mkHypo,
mkDepHypo,
mkImplHypo,
Expr,
ExprAbs,
ExprApp,