Bundle
Miscellaneous utilities: a string tokenizer (Parser), a console spinner (Spinner) and a source code formatter (CodeFormatter). Built as misc.obl, not part of lang.obl: compile with -lib misc.
Spinner
Console spinner
Operations
Last # function
Prints the final state
function : Last() ~ NilExample
Spinner->Next();
Spinner->Next();
Spinner->Last();
"done"->PrintLine();Next # function
Prints and advances the spinner to the next state
function : Next() ~ NilExample
for(i := 0; i < 20; i += 1;) {
Spinner->Next();
};
Spinner->Last();