Skip to content
This repository was archived by the owner on Nov 29, 2026. It is now read-only.
This repository was archived by the owner on Nov 29, 2026. It is now read-only.

feat: Uniform type system & type inference #59

Description

@Zffu

Currently, the typing system has multiple stages of "data loss". These losses happen since we change the type struct used in every stage of AstoIR and the AST.

Data loss includes:

  • Loss of field names
  • Array states

A new typing system must be made to ensure and allow:

  • Every type uses the same struct, has the same information as the higher IR layer
  • Value transmutation everywhere (instead of just on constants, variable references or function calls)
  • Variable casting on pointers for example
  • Type inferrence on variables

These changes will allow for the following features:

  • Pointer types
  • Ability to use size specifiers on structs
  • Ability to use type generics on structs
  • Bounds
  • VSCode extension typing information
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions