type-inference-engine

Solid

Implement and test type inference algorithms including Algorithm W and constraint-based inference

AI & Automation 814 stars 53 forks Updated today MIT

Install

View on GitHub

Quality Score: 93/100

Stars 20%
97
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
37
Issue Health 10%
50
License 10%
100
Description 5%
100

Skill Content

# Type Inference Engine ## Purpose Provides expert guidance on implementing type inference algorithms for programming language implementations. ## Capabilities - Algorithm W implementation - Constraint generation and solving - Unification with occurs check - Let-polymorphism (Hindley-Milner) - Principal type computation - Type error diagnosis ## Usage Guidelines 1. **Constraint Generation**: Generate type constraints from expressions 2. **Unification**: Implement unification algorithm 3. **Generalization**: Handle let-polymorphism 4. **Error Messages**: Generate informative type errors 5. **Testing**: Validate inference on test cases ## Tools/Libraries - Language workbenches - Constraint solvers - Type inference libraries

Details

Author
a5c-ai
Repository
a5c-ai/babysitter
Created
4 months ago
Last Updated
today
Language
JavaScript
License
MIT

Related Skills