diet-ng icon indicating copy to clipboard operation
diet-ng copied to clipboard

break and continue statements break live mode

Open schveiguy opened this issue 3 years ago • 1 comments

Live mode outputs strings surrounding all statements. I have some hackish things to fix issues with if statements and return statements.

But two other statements that cannot have output of strings are the break and continue statements. If an extra HTML output is done, then the compiler flags that output as an unreachable statement, even though no HTML will ever be inserted there.

Probably should extend the hack to include these statements.

schveiguy avatar Mar 14 '22 16:03 schveiguy

A general facility of preventing HTML output is probably desirable.

schveiguy avatar Mar 14 '22 16:03 schveiguy