def main(): int {
let escaped: string = "a\"b";
let raw: string = «alpha beta»;
return length(escaped) + length(raw);
}عرف الرئيسية(): عدد {
دع المهرب: نص = "a\"b";
دع الخام: نص = «alpha beta»;
أرجع الطول(المهرب) + الطول(الخام);
}
Run it
With the interpreter, without compiling:
./build/sultanc run examples/en/strings/text.snOr compile it to an executable:
./build/sultanc examples/en/strings/text.sn -o build/example && ./build/example