Yars' Revenge on the Atari 2600 used the game code as random input to generate the graphics for the 'safe zone'
42 karma · joined June 20, 2017
Yes, you would need to keep track of the source locations for each node in the AST. There is a nice example in the LLVM Kaleidoscope tutorial here: https://llvm.org/docs/tutorial/LangImpl09.html