neugram / ng

scripting language integrated with Go
https://neugram.io
BSD 2-Clause "Simplified" License
916 stars 43 forks source link

eval: generate cases in op.go? #237

Open crawshaw opened 6 years ago

crawshaw commented 6 years ago

The file eval/op.go contains a lot of cases for op matching. Ideally there'd be some efficient way to solve this with reflect. But if there isn't, maybe there should be a script for generating those cases.