Experimenting with the Kotlin Compiler
summary
Explorer clones the Kotlin repo, sets up multiple JDKs and runs IntelliJ idea with the compiler as a plugin, then adds a new token by adding a soft-keyword modifier for class delegation and follows lexer → resolver → codegen. A small hack—using member-resolution scope in body resolver and generating fields before delegator calls—produces a synthetic delegate field and initializers, compiles and runs. The KEEP proposal route is noted but the live compiler edits actually work.
AI-written summary · about
chapters (5)
- 0:00Start
- 7:08# Kotlin is open source!
- 10:13# The Kotlin Compiler
- 12:54Abstract Syntax Tree
- 33:41Generate Member Initializers








