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

Separate main.go into several files #105

Closed DQNEO closed 1 year ago

DQNEO commented 1 year ago

Example:

DQNEO commented 1 year ago

Experiment 1: https://github.com/DQNEO/babygo/compare/separate-files?expand=1

Separation of main.go and builder.go is not good. builder stuff should remain in main.go

DQNEO commented 1 year ago

Done ! 5c87e2acc441e6d627c26f10bfd3067d17844768...2fde906f4ac12d7431b31d0fccb9bbb035c22180