JSAbrahams / mamba

🐍 The Mamba programming language, because we care about safety
MIT License
85 stars 3 forks source link

WIP Add creation of typing context (First pass) #151

Closed JSAbrahams closed 5 years ago

JSAbrahams commented 5 years ago

Relevant issues

resolve #148 fixes #154

Summary

Build a context with all the classes, fields, and functions. This can be used for type-checking purposes when analysing expressions, such as checking that a function called on an expression indeed belongs to that type.

Need to look further into namespaces. At the moment, no import analysis is done either.

Added Tests

JSAbrahams commented 5 years ago

Closing in favour of a new architecture.