- [Macro implementations] (macros/src/main/scala)
- Calling macros
- Powerpoint presentation
- Build and run the project with
cleanrun.bat
- See the macros have ouputed something
- Run it it again with
run.bat
- Notice there is less output - it is already compiled so macros did not run
- Look at the decoded bytecode in
Main.class.decoded.txt
- The text file has been loaded in as a String constant see here
- See the generated code for creating the map see here
- You can generate this file with
decode-main.bat
. Note:<path-to-jdk>\bin
must be in PATH
If you do not have sbt installed already you can use java -jar sbt-launch.jar
in place of sbt
.
- Build and run the project with
sbt clean run
- See the macros have ouputed something
- Run it it again with
sbt run
- Notice there is less output - it is already compiled so macros did not run
- Look at the decoded bytecode in
Main.class.decoded.txt
- The text file has been loaded in as a String constant see here
- See the generated code for creating the map see here
- You can generate this file with
sh decode-main.sh
Note: requires a JDK installed.