v2026.5.3
All Bundles
Bundle Miscellaneous runtime utilities: UUID generation, date string parsing and formatting, command-line parameter handling, network time retrieval, and console spinner animations. Included in lang.obl.

Parser

Utilities for parsing

Operations

CommandParameters # function

Command line parser

function : CommandParameters(args:String[]) ~ Hash<String,String>

Parameters

NameTypeDescription
argsStringcommand line arguments

Return

TypeDescription
Hash<String,String>name/value pairs

Example

args := ["-out=report.txt", "-verbose"];
params := Parser->CommandParameters(args);
out_file := params->Find("-out");
if(out_file <> Nil) {
  out_file->PrintLine();
};

Tokenize # function

Simple tokenizer

function : Tokenize(stream_in:String) ~ Vector<String>

Parameters

NameTypeDescription
stream_inStringsource input

Return

TypeDescription
Vector<String>vector of string tokens

Example

tokens := Parser->Tokenize("foo + bar * 42");
each(tok := tokens) {
  tok->PrintLine();
};