https://github.com/hellerve/typeinfer
A naive typechecker for zepto programs
https://github.com/hellerve/typeinfer
Last synced: 2 months ago
JSON representation
A naive typechecker for zepto programs
- Host: GitHub
- URL: https://github.com/hellerve/typeinfer
- Owner: hellerve
- Created: 2016-05-06T17:15:12.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2016-05-12T16:58:40.000Z (almost 10 years ago)
- Last Synced: 2025-04-05T22:43:44.313Z (12 months ago)
- Homepage:
- Size: 4.88 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# typeinfer
A simple and naive type inference library for zepto code.
## Usage

```
(load "typeinfer")
(import-all "typeinfer")
(typeinfer:infer-program some-program)
(typeinfer:infer-expression some-expression)
```
## Caveats
This library does not about currying, overloading
or generic functions. If it is determined that
the function works on integers, the typeinferer
will assume this a truth. If later facts disprove that
claim, it will just assume the thing is `:ambiguous`,
which it is.
Also, there are almost no primitives in the initial
environment, so a lot of functions might seem
`:unbound` when in reality they are just a part
of the standard library.
Have fun!