DE-labtory / koa

The koa is a high-level language that has more expressions than the bitcoin script and is simpler and easy to analyze
Apache License 2.0
74 stars 18 forks source link

[compiler] Pop the expression after compiling ONE statement #327

Closed hihiboss closed 5 years ago

hihiboss commented 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.

I think it needs in compileExpressionStatement().