Skip to content

Implement loops #7

@memburg

Description

@memburg

Loops will be implemented like following:

val i = "0";

loop { // this will be transpiled as "while True:"
    when (eqs(i, "4")) {
        i = add(i, "1");
        next; // this will be transpiled as "continue"
    }
    
    println(i);
    i = add(i, "1");

    when (eqs(i, "10")) {
        out; // this will be transpiled as “break"
    }
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions