— mlog tools —

Mlog Labeler

Enter unedited mlog code to add labels

Input
Output


what are labels?

A label is a named jump destination. Instead of hardcoding line numbers, you name a position in your code and jump to it by name. This makes code easier to write and read — no more counting lines when you insert something new.

For example, this:

set i 0 print "frog1" op add i i 1 jump 1 lessThan i 2 print "frog2" printflush message1

can be written as:

set i 0 j1: print "frog1" op add i i 1 jump j1 lessThan i 2 print "frog2" printflush message1