DQNEO / babygo

babygo👶 is a small Go compiler made from scratch, which can compile itself. It's going to be the smallest and simplest go compiler in the world.
MIT License
291 stars 20 forks source link

Support iota in const declarations #117

Open DQNEO opened 1 year ago

DQNEO commented 1 year ago

Spec: https://go.dev/ref/spec#Iota

Depends on https://github.com/DQNEO/babygo/issues/116

Ref: iota in minigo https://github.com/DQNEO/minigo/blob/5ab7420fbca2f65d81bc761d5cbe51a2b28953a8/parser.go#L1042-L1071