This post is part of the Stack Based Virtual Machines series. In the previous part we have written the ANTLR grammar for an assembler for our virtual machine. In this part, we’ll write the code connected to the ANTLR-generated parser to actually make our assembler work! The code for this part is on GitHub. Main Let’s start - for once! - with the main function and not with an unit test.