Skip to content

[CORE] Implement basic type checking #2

@0xIcarus

Description

@0xIcarus

Right now, we aren't enforcing type checking during compilation. The idea is to implement a basic type-checking mechanism to ensure type correctness during compilation. This will prevent operations on incompatible types and catch errors before runtime.

TODO:

  • Extend expr.ml to track variable types in expressions and statements
  • Modify the parser to associate types with variables
  • Implement a type-checking function that verifies type consistency during compilation in codegen.ml

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions