zach-r-hughes / MindustryCompiler

C-style compiler for Mindustry.
12 stars 0 forks source link

If statement conditional operators inversed #8

Closed quyteriyaki closed 2 years ago

quyteriyaki commented 2 years ago

Description: As title states, when creating an if statement with a single condition, the operator used is inverted

Steps to reproduce: Insert the sample code snippet:

if (1 != 2) println("true")
else println("false")

Expected: The first line in the output is jump 4 equal 1 2 Actual: The first line in the output is jump 4 notEqual 1 2

Note: Should be a simple fix, but need to check with whatever LineClass.DoWhileLoop is.

quyteriyaki commented 2 years ago

Nvm I'm a clown