I'm wanting to make a change to kotlin.flex, but w...
# compiler
h
I'm wanting to make a change to kotlin.flex, but when I rebuild the project I don't see any generated sources from the .flex file. There are no errors, eithers, because evidently Flex is not being use. How to I trigger this code generation in my IDEA build?
stackoverflow 1
a
You need to run JFlex to generate the updated _JetLexer.java file. If you are using IntelliJ you can install the recommended plugin (banner at the top when opening the .flex file) and then right click the file and 'Run JFlex generator'.
h
Okay... the updated file is now in the "gen" directory. Do I need to copy that back into the lexer directory?
Also, how do I test the modified compiler? It still uses the original one to build with.
a
hmm, for me it automatically updates it, but yes replacing it should work. Once the java file is replaced, rebuilding the project should take the updated file