Skip to content
This repository was archived by the owner on Jun 6, 2021. It is now read-only.

New Type Checker: Check Functions Pass #42

Open
7 tasks
Vengarioth opened this issue Jan 22, 2018 · 0 comments
Open
7 tasks

New Type Checker: Check Functions Pass #42

Vengarioth opened this issue Jan 22, 2018 · 0 comments

Comments

@Vengarioth
Copy link
Member

Old code: https://github.com/Vengarioth/xshade/blob/master/src/type_system/type_check.rs#L94-L124

  • Create a pass in passes/ast/type_checking
  • Add function type to symbol table
  • Add function as symbol to the symbol table
  • Type check arguments
  • Type check return type (not if it actually returns the correct type)
  • Set call signature for function type
  • Test the pass
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant