Closed hihiboss closed 5 years ago
Subject compiler
Detail After compiling a statement, the expression which came out in compileStatement() remains in the stack. So, If compileStatemnt() has an expression result, you should pop that expression.
compileStatement()
compileStatemnt()
I think it needs in compileExpressionStatement().
compileExpressionStatement()
Subject compiler
Detail After compiling a statement, the expression which came out in
compileStatement()
remains in the stack. So, IfcompileStatemnt()
has an expression result, you should pop that expression.I think it needs in
compileExpressionStatement()
.