Fundament-Software / Alicorn0

The Alicorn language, currently in development and unstable
Apache License 2.0
5 stars 6 forks source link

Selfhosting syntax typing #87

Closed ErikMcClure closed 5 months ago

ErikMcClure commented 5 months ago

This refactors and adds types to most of alicorn. Some types cannot be resolved, as lua generics are mostly broken, but as much type information as possible is preserved.

Most of the remaining type errors that the annotations raise are either due to dynamic fields that can't be typed properly, a missing pretty-printer function that might have to be added, or legitimate type issues.

I have added comments in all places where I think legitimate type errors are happening.