wyvernlang / wyvern

The Wyvern programming language.
http://wyvernlang.github.io/
GNU General Public License v2.0
556 stars 65 forks source link

adding member function type declarations--now 1+1 can be typed #378

Closed tmoux closed 4 years ago

tmoux commented 4 years ago

I changed the PLUS, etc to be "+", "-" in the parser. This means a bunch of cases for each operator for member function declarations need to be added, though. I'm wondering if the name in bound.Call.name should actually be a Binding instead of a string? Although I'm thinking it would difficult to determine which binding to give it (when constructing the bound.Call expression in binding.wyv), since in the context, there could be multiple bindings to function declarations with the same name.