Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Symbol type checking #8

Open
6 tasks
JustSomeCarbon opened this issue Jan 30, 2024 · 0 comments
Open
6 tasks

Symbol type checking #8

JustSomeCarbon opened this issue Jan 30, 2024 · 0 comments

Comments

@JustSomeCarbon
Copy link
Owner

JustSomeCarbon commented Jan 30, 2024

Next is to walk through the ast again to utilize the now populated symbol tables in ensuring type consistency. This step involves looking at what symbols are defined and checking if their assigned type matches the assignment expression type evaluation.

This is one of the largest steps in the milestone and as such will take more time to complete.

  • ensure all variable type definitions match
  • ensure pattern block expressions evaluate to boolean operations
  • ensure all function return values match return type
  • ensure argument types passed into functions match type of parameters of function header definitions
  • ensure structure definition parameters match definition field types
  • ensure list and tuple definition parameters match given list type definition
@JustSomeCarbon JustSomeCarbon added this to the Symbol Table Populate milestone Jan 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant