The exact process is way too complex to explain, but I basically read through each line, check for keywords or statements, and convert it into proper SB syntax. For example, "while (true)" in N# is identified as a WHILE loop, so I take the WHILE keyword and add in whatever's in parenthesis, which happens to be the 'true' keyword. Thus, the compiled output would be "WHILE true"