Is your feature request related to a problem? Please describe.
Extension of #27, the goal is implement if cascade statement when the command use no braces, as follows:
Should be allowed
Sim-C:
if (expression)
if(expression)
cmd
else
cmd
else
cmd
Plus, you should ensure that when if (expresion) is called without braces and followed of else, only and necessary one instruction is between both.
Should NOT be allowed
if (expression)
if(expression)
cmd
cmd
else
cmd
else
cmd
if (expression)
if(expression)
cmd
else
// missing command here
else
cmd
Is your feature request related to a problem? Please describe.
Extension of #27, the goal is implement if cascade statement when the command use no braces, as follows:
Should be allowed
Sim-C:
Plus, you should ensure that when
if (expresion)is called without braces and followed ofelse, only and necessary one instruction is between both.Should NOT be allowed