Im new to kotlin. Im working on compilation of kotlin and it’s intermediate steps involved. I came to know that the major intermediate steps involve lexical analysis, syntax analysis, semantic analysis, IR generation, optimisation and output generation. I need to see how the source code is being modified after each intermediate steps. Initially I thought it’s not possible to save those intermediate files but after some research I found that we can use
kotlinc -Xdump=lexer test.kt
To see the output of lexical analysis. But I can’t find the Xdump option in the compiler. Could you please help me to get over this.