I’m trying to build a nand2tetris assembler but the ply.lex library in python keep breaking my assembly instructions to different lines
the first thought I had was that I didn’t manage to handle the new line character properly because it keeps throwing the new line character “n” whenever I try to append the instructions for further processing and I tried different ways to resolve it but still no luck