isNull op / Return null for null block sense/NaNs

This commit is contained in:
Anuken
2021-02-08 12:48:39 -05:00
parent 49fe47f1f8
commit 1802aab683
3 changed files with 81 additions and 13 deletions

View File

@@ -637,6 +637,28 @@ public class LStatements{
}
}
//TODO untested
//@RegisterStatement("wait")
public static class WaitStatement extends LStatement{
public String value = "0.5";
@Override
public void build(Table table){
field(table, value, str -> value = str);
table.add(" sec");
}
@Override
public Color color(){
return Pal.logicOperations;
}
@Override
public LInstruction build(LAssembler builder){
return new WaitI(builder.var(value));
}
}
@RegisterStatement("end")
public static class EndStatement extends LStatement{
@Override