Example: [[] is a perfectly valid Brainfuck program, but the compilation will currently turn this into two while loops opened and one closed, which will be invalid.
Now a user shouldn't be pulling shit like that anyhow...BUT there is the concept of comments in Brainfuck by placing any comment text immediate after a loop in its own loop (because that loop will automatically be skipped). These should be handled properly!
Example:
[[]
is a perfectly valid Brainfuck program, but the compilation will currently turn this into two while loops opened and one closed, which will be invalid.Now a user shouldn't be pulling shit like that anyhow...BUT there is the concept of comments in Brainfuck by placing any comment text immediate after a loop in its own loop (because that loop will automatically be skipped). These should be handled properly!