fez-lisp 1.6.14 → 1.6.15

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/types.js +4 -0
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "fez-lisp",
3
3
  "description": "Lisp interpreted & compiled to JavaScript",
4
4
  "author": "AT290690",
5
- "version": "1.6.14",
5
+ "version": "1.6.15",
6
6
  "type": "module",
7
7
  "main": "index.js",
8
8
  "keywords": [
package/src/types.js CHANGED
@@ -1,3 +1,5 @@
1
+ import stdT from '../lib/baked/std-T.js'
2
+ import std from '../lib/baked/std.js'
1
3
  import { getReturn, getReturns, getType, getTypes } from './check.js'
2
4
  import {
3
5
  APPLY,
@@ -1446,3 +1448,5 @@ export const filteredDefinedTypes = (program, lib, libT) => {
1446
1448
  return libT.filter((x) => deps.has(x[1][1]))
1447
1449
  }
1448
1450
  export const definedTypes = (T) => fromSourceToType(T)
1451
+ export const withStdDefinedTypes = (ast) =>
1452
+ withCtxTypes(definedTypes(filteredDefinedTypes(ast, std, stdT)))