xp-framework / compiler

Compiles future PHP to today's PHP.
19 stars 0 forks source link

Refactor emitters, extracting reusable rewriters to traits #63

Closed thekid closed 5 years ago

thekid commented 5 years ago

Instead of having the most common implementation inside lang.ast.Emitter and then overwriting inside the specialized emitters in lang.ast.emit, the latter now use traits to compose overwritten functionality.