FNBBDevs / nolang

MIT License
3 stars 0 forks source link

Create generic type class #26

Closed Mr-Oregano closed 1 year ago

Mr-Oregano commented 1 year ago

Need to create a top-level generic 'type' class to represent nolang types. Currently, all primitive types are directly created as their equivalent python types. This tightly couples the nolang type system with python's type system (something that should be completely invisible to the user). Making a custom type class to represent all types in nolang allows __str__ and other such methods to be defined for printing and prevents any accidental python errors bubbling up from python's type system.