Skip to content

Commit

Permalink
Emitter: Fix frame#merge issue, resolve #48
Browse files Browse the repository at this point in the history
  • Loading branch information
ChAoSUnItY committed May 7, 2022
1 parent 0e74c17 commit 3764140
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 1 addition & 1 deletion example/Donut.casc
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ impl Donut {
(12 + 15 * D * (l * h * n + t * m)) as i32,
x + 80 * y,
(8 * ((f * e - c * d * g) * m - c * d * e - f * g - l * d * n)) as i32
if 22 > y && y > 0 {
if 22 > y && y > 0 && x > 0 && 80 > x && D > z[o] {
z[o] = D
b[o] = [char;]{'.', ',', '-', '~', ':', ';', '=', '!', '*', '#', '$', '@'}[Math.max(N, 0)]
}
Expand Down
2 changes: 0 additions & 2 deletions src/main/kotlin/org/casc/lang/emitter/Emitter.kt
Original file line number Diff line number Diff line change
Expand Up @@ -435,8 +435,6 @@ class Emitter(private val preference: AbstractPreference, private val declaratio
is BinaryExpression -> {
when (expression.operator?.type) {
TokenType.DoubleAmpersand, TokenType.DoublePipe -> {
emitBinaryExpressions(methodVisitor, expression.left!!, expression.right!!)

emitAndOrOperators(methodVisitor, expression)
}
TokenType.Greater, TokenType.GreaterEqual, TokenType.Lesser,
Expand Down

0 comments on commit 3764140

Please sign in to comment.